Need data result in last cell of array that contains blank cells

S

smesurfer

Example:

A1=200
B1=300
C1=400
D1=[blank]
E1=[blank]
F1=[blank]
G1=(last cell from above that contains data...i.e. C1)

I'm a bit of an Excel novice so could really use a little help.

Thanks!
 
R

Ron Coderre

Assuming that range will only contain numbers,
try something like this:

=LOOKUP(10^99,A1:F1)

or...if you want to avoid an error when there are no numbers:
=IF(COUNT(A1:F1),LOOKUP(10^99,A1:F1),"")

Does that help?
***********
Regards,
Ron

XL2003, WinXP
 
S

smesurfer

Ron, your first recommendation worked perfectly.

THANK YOU!

Ron Coderre said:
Assuming that range will only contain numbers,
try something like this:

=LOOKUP(10^99,A1:F1)

or...if you want to avoid an error when there are no numbers:
=IF(COUNT(A1:F1),LOOKUP(10^99,A1:F1),"")

Does that help?
***********
Regards,
Ron

XL2003, WinXP


smesurfer said:
Example:

A1=200
B1=300
C1=400
D1=[blank]
E1=[blank]
F1=[blank]
G1=(last cell from above that contains data...i.e. C1)

I'm a bit of an Excel novice so could really use a little help.

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top