cell address

G

Guest

Hello, Could somebody please help me with the following


I have a row of numbers and the letter x. the numbers are always sequential
except when an x marks a non working day.

A B C D E F G H
I J K
ROW1 x 1 2 3 4 5 x x 6 7 8
ROW2

In Row 2 I would like to get the cell address of the previous cell that does
not have an x in Row1.

Eg. Cell I2 would return the address of cell F2
Cell D2 would return the address of cell C2

I am going to embed this cell address in another formula.
 
B

Bob Phillips

=ADDRESS(1,MAX(IF($A$1:H$1<>"x",COLUMN(A:H))))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
G

Guest

sorry my mistake, i actually want the value in the cell that your formula
returns not the address as previously requested.
 
B

Bob Phillips

=INDEX(1:1,,MAX(IF($A$1:H$1<>"x",COLUMN(A:H))))

still an array formula

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
B

Bob Phillips

Bit late, I responded two hours earlier.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 

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