#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 95
Default Array formula ?

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


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 364
Default Array formula ?

Take a look here for this sort of thing:
http://www.cpearson.com/excel/noblanks.htm

"rdwj" wrote in message
...
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




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 95
Default Array formula ?

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.

"Stephen" wrote:

Take a look here for this sort of thing:
http://www.cpearson.com/excel/noblanks.htm

"rdwj" wrote in message
...
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





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
3 Array Formula Shazam Excel Discussion (Misc queries) 5 September 24th 07 08:14 PM
meaning of : IF(Switch; Average(array A, array B); array A) DXAT Excel Worksheet Functions 1 October 24th 06 06:11 PM
Array Formula [email protected] Excel Discussion (Misc queries) 2 June 7th 06 08:55 PM
Array formula Marcelo Excel Worksheet Functions 3 May 24th 06 09:05 PM
Array Formula - using LEFT("text",4) in formula Andrew L via OfficeKB.com Excel Worksheet Functions 2 August 1st 05 02:36 PM


All times are GMT +1. The time now is 03:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"