Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
kvail
 
Posts: n/a
Default if the value of a cell in a range is not blank, then return the v.

I need to return the value of a cell in a range that is not blank..

A B C D E
1 5 (return 5 in e1)
2 3 (return 3 in e2)
3 4 (return 4 in e3)
4 (return " " in e4)
  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

Put this in E1

=IF(COUNT(A1:D1),INDEX(A1:D1,MATCH(1,--(ISNUMBER(A1:D1)),0)),"")

enter it witrh ctrl + shift & enter
copy it down

why would you want to putr a space in the cell as
opposed to a blank ""?


Regards,

Peo Sjoblom



"kvail" wrote:

I need to return the value of a cell in a range that is not blank..

A B C D E
1 5 (return 5 in e1)
2 3 (return 3 in e2)
3 4 (return 4 in e3)
4 (return " " in e4)

  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

Is it always numeric input?

If yes, I'd just use:

=if(count(a1:d1)=0,"",max(a1:d1))

(and copy down)

kvail wrote:

I need to return the value of a cell in a range that is not blank..

A B C D E
1 5 (return 5 in e1)
2 3 (return 3 in e2)
3 4 (return 4 in e3)
4 (return " " in e4)


--

Dave Peterson
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
Custom format that shows blank cell if another cell is empty Zdenek Moravec Excel Discussion (Misc queries) 1 March 25th 05 12:45 PM
Formula to return ADDRESS of cell in range that meets criteria Christie Excel Worksheet Functions 1 March 5th 05 12:13 AM
View and Cell Sum Range Dewayne Excel Discussion (Misc queries) 4 December 29th 04 04:23 PM
Lookup with search range start based on position of last blank lin rcmodelr Excel Worksheet Functions 0 November 14th 04 07:32 AM
VLookup resulting in a blank cell... KempensBoerke Excel Worksheet Functions 1 October 28th 04 09:57 PM


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

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"