Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / December 2007

Tip: Looking for answers? Try searching our database.

Array formula ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rdwj - 20 Dec 2007 14:35 GMT
The problem : the user generates an input list (col A numbered by row 1,2,3
etc, col B = entry time, col C = leave time). The numbered rows refer to kids
(entering school) but not every kid comes in. So, the list has completed rows
as well as blank rows:
1    8:00   15:00
2  
3    9:00    11:00
4

The user wants to generate a list WITHOUT the empty rows. Obviously easily
done with Visual Basic, but I question if this can be done with array
formula's.

Starting with Ingrids advise on
http://users.telenet.be/ingrid/excel/matrix.htm#tekst  (thanks !) I created
the array
=ROW(INDIRECT("1:"&COUNT(A1:A4))) which gives me {1,2,3,4}
=OFFSET($B$1,ROW(INDIRECT("1:"&COUNT(A1:A4)))-1,0) subsequently gives {8:00,
0, 9:00, 0}
but I can't get rid of the zero's in between.....

Who has clever idea's???

RDWJ
Stephen - 20 Dec 2007 14:56 GMT
Take a look here for this sort of thing:
http://www.cpearson.com/excel/noblanks.htm

> The problem : the user generates an input list (col A numbered by row
> 1,2,3
[quoted text clipped - 25 lines]
>
> RDWJ
rdwj - 20 Dec 2007 16:10 GMT
Stephen - thanks for the tip, took me a while to understand the full formula
but got it sorted & managed to adjust to suit the need. Excellent. Txs.

> Take a look here for this sort of thing:
> http://www.cpearson.com/excel/noblanks.htm
[quoted text clipped - 28 lines]
> >
> > RDWJ
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.