ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   cell address (https://www.excelbanter.com/excel-worksheet-functions/69000-cell-address.html)

ellebelle

cell address
 
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.


Bob Phillips

cell address
 
=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)

"ellebelle" wrote in message
...
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.




ellebelle

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

"Bob Phillips" wrote:

=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)

"ellebelle" wrote in message
...
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.





Bob Phillips

cell address
 
=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)

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

"Bob Phillips" wrote:

=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)

"ellebelle" wrote in message
...
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.







ellebelle

cell address
 
pls forget this, i have worked it out. thanks anyway.

"ellebelle" wrote:

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

"Bob Phillips" wrote:

=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)

"ellebelle" wrote in message
...
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.





Bob Phillips

cell address
 
Bit late, I responded two hours earlier.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"ellebelle" wrote in message
...
pls forget this, i have worked it out. thanks anyway.

"ellebelle" wrote:

sorry my mistake, i actually want the value in the cell that your

formula
returns not the address as previously requested.

"Bob Phillips" wrote:

=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)

"ellebelle" wrote in message
...
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.








All times are GMT +1. The time now is 05:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com