arrays
Microsoft Office Training verified by visa - mastercard securecode about microsoft training company london ukadd this page to your favourites/bookmarksAdd to favourites
view a printable version of this pagePrintable version
email this page to somebodyEmail this page
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel Training and help » Arrays

Arrays

The UK's most regular instructor-led training courses.
Training information: microsoft-excel-courses · Microsoft+excel+training · Microsoft Excel Training
See also · excel-courses-london · excel courses in london · excel microsoft training

resolvedResolved · Low Priority · Version 2003

Arrays

Sally has attended:
Excel Advanced course

by - delegate Sally [1 post] (2008 Apr 25 Fri, 14:19) replyReply

What is the purpose of an array? I've looked them up online and I am not sure what they are for, can they help in reducing the size of files?

Excel Advanced 1 day course
Version Date Location Places
available
Book Next place rate:
Card Invoice
2007 2008 Jul 9 Wed Bloomsbury 0 FULL    
2003/XP 2008 Jul 9 Wed Bayswater 2 book now £195 £205
2003/XP 2008 Jul 16 Wed Tooting 0 FULL    
2003/XP 2008 Jul 16 Wed Bloomsbury 1 book now £235 £240
2003/XP 2008 Jul 18 Fri Southwark 4 book now £224 £235
2003/XP 2008 Jul 23 Wed Southwark 0 FULL    
Full Schedule: See all 143 Excel Advanced course dates.
Bookings currently available until 24th November 2009.

RE: Arrays

by - trainer Carlos gold contributer[360 posts] (2008 Jun 11 Wed, 09:48) replyReply

Hi Sally

In computer terms an array is a data structure consisting of elements that are accessed by indexing.

So Arrays make it possible to refer to a series of variables by the same name and to use an index to tell them apart.

This helps create smaller and simpler code by using loops that deal efficiently with any number of cases by using the index number. This usually speeds up the running of the program.

Arrays are useful when you must store a number of values of the same type, but you do not know how many, or you do not want to create individual variables to store them all.

The indexing in an array by default begins at 0 so declaring an array as

Dim SalesYear(5) as Integer


will allow you to store 6 years (0 t0 5)

Then in the code SalesYear(3) will return the value stored in that section of the array. This is refered to a Static array

You can also program a dynamic array. I this case you define the array but not the size. This can be defined later as seen below:

Dim SalesYear as Integer

ReDim SalesYear (1 To 20)


NB You can change the size of a dynamic array, but not the data type

Hope this helps

Regards

Carlos


Related articles

· What's Better Than the Help Function in Excel? Microsoft Training
· Advanced Excel Training - takes you to the next level
· Crazy Things People Have Done With Excel
· Excel Advanced Courses Ease the Frustration of Learning Complex Tasks
· Excel Macros for the Non-Programmer

Please browse our web site to find out more about
microsoft-excel-courses and other Microsoft training courses.

Excel tip:

Autosum shortcut key

press ALT + =

View all Excel hints and tips

Institute of IT Training - Accredited Training Provider Institute of IT Training - Accredited Training Provider Prodigy Platinum Learning Partner Microsoft Office Specialist Authorised Testing Centre

Microsoft Registered Partner
microsoft office
ms office project server

Association of Computer Trainers Valid HTML 4.01 Transitional
Valid CSS Markup

secure online payments - visa - mastercard

Mini sitemap. These are the main areas of our web site. Full sitemap.

Training by application Main information pages See also

Access courses
DreamWeaver courses
Excel courses
MS Project courses
Outlook courses
PowerPoint courses
VBA courses
Word courses
(more...)

Public scheduled courses
On-site training
Closed company courses

Microsoft Office training
Pricing and availability
Training schedule
Training venues

Access training
Dreamweaver training
Excel training
MS Project training
PowerPoint training

London Computer Training
Computer Training London

Microsoft Access training
Microsoft Excel training
Microsoft Project training
Microsoft Outlook training
Microsoft Powerpoint training
Microsoft Word training

Time Management Course London

Interested in Access training? Please see the following pages:
microsoft access courses · microsoft training access course
microsoft+access+training · access courses in london

Training Information
AddThis Social Bookmark Button What's this?
Add to Del.icio.us Add to Facebook Add to Digg Add to Reddit Add to Google Add to Yahoo Add to Diigo Add to Mr. Wong Add to Linkarena Add to Power Oldie Add to Folkd Add to Jumptags Add to Upchuckr Add to Simpy Add to StumbleUpon Add to Slashdot Add to Netscape Add to Furl Add to Spurl Add to Blinklist Add to Blogmarks Add to Technorati Add to Newsvine Add to Blinkbits Add to Ma.Gnolia Add to Smarking Add to Netvouz