IF formula ques

D

Diane

I'm trying to make a formula which will recognize if the cell above is empty
to use the cell above that one, then the cell above the second one, etc., and
finally if all cells have values in them to take the first one above the one
your working in. I've come up with the following formula and it works fine if
the G35 is emtpy, it finds G34. But if both G35 & G34 are empty it doesn't
find G33. Can anyone help me?
=IF(G35="",G34,IF(G34="",G33,IF(G33="",G32,G35)))
 
G

Gary''s Student

This assumes that you are looking for numbers:

=LOOKUP(99^99,G1:G35) will return the contents of G35 if it is not blank.
Otherwise it will return the first non-blank number above G35
 

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