prob in IF then else statement

R

RYNNER

I have two worksheets, namely HATAK and DEADLOAD.. im formulating my HATAK
worksheet, heres my formula in cell C8
=IF(DEADLOAD!A20="","",DEADLOAD!A20).... my problem is, what if DEADLOAD!A20
is blank and A21(A21 instead of A20) has a value, and I want the result to be
on cell C8.. and if A21 is followed with a value at A22, I want the result to
be on cell C9.. Hope you get what I mean... thanks....
 
B

Bob Phillips

=INDEX(A:A,MIN(IF(A20:A30<>"",ROW(A20:A30))))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

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

Similar Threads


Top