Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Cello
 
Posts: n/a
Default Formula to find first, second, third etc. value (range)


I got a specific range, lets say A1:A4. The cells could either be empty
or include a number.

I need a formula which finds the first cell that is not empty in range
A1:A4 (and shows the value of the first not empty cell). This formula
should be located in cell B1.

Then cell B2 should find the second not-empty cell in range A1:A4 and
so on.

Thanks in advance guys. I'd rather not use macros for this one.


--
Cello
------------------------------------------------------------------------
Cello's Profile: http://www.excelforum.com/member.php...o&userid=18981
View this thread: http://www.excelforum.com/showthread...hreadid=393305

  #2   Report Post  
Domenic
 
Posts: n/a
Default


Try...

B1, copied down:

=IF(ROWS($B$1:B1)<=COUNT($A$1:$A$4),INDEX($A$1:$A$ 4,SMALL(IF($A$1:$A$4<"",ROW($A$1:$A$4)-ROW($A$1)+1),ROWS($B$1:B1))),"")

...confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

Hope this helps!

Cello Wrote:
I got a specific range, lets say A1:A4. The cells could either be empty
or include a number.

I need a formula which finds the first cell that is not empty in range
A1:A4 (and shows the value of the first not empty cell). This formula
should be located in cell B1.

Then cell B2 should find the second not-empty cell in range A1:A4 and
so on.

Thanks in advance guys. I'd rather not use macros for this one.



--
Domenic
------------------------------------------------------------------------
Domenic's Profile: http://www.excelforum.com/member.php...o&userid=10785
View this thread: http://www.excelforum.com/showthread...hreadid=393305

  #3   Report Post  
Cello
 
Posts: n/a
Default


This seems to work perfectly! Thanks! Couldn't have done it without you.


--
Cello
------------------------------------------------------------------------
Cello's Profile: http://www.excelforum.com/member.php...o&userid=18981
View this thread: http://www.excelforum.com/showthread...hreadid=393305

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
Need formula to find and sum values in a different spreadsheet Watercolor artist Excel Worksheet Functions 3 June 13th 05 03:41 PM
Formula to find cell with data on a row Steved Excel Worksheet Functions 5 June 10th 05 09:17 PM
Find and Replace Formula Links Werner Rohrmoser Excel Worksheet Functions 0 June 9th 05 12:13 PM
Can't find the right lookup formula for this bankscl Excel Worksheet Functions 4 March 28th 05 06:27 PM
IF & VLOOKUP FORMULA taxmom Excel Worksheet Functions 3 March 2nd 05 03:35 PM


All times are GMT +1. The time now is 05:29 AM.

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

About Us

"It's about Microsoft Excel"