ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Using a formula result to reference a row (https://www.excelbanter.com/excel-programming/333636-using-formula-result-reference-row.html)

f1capsicum

Using a formula result to reference a row
 
I have a spread sheet like the following


Item A 0
Item B 0 2
Item C 0 4 5
Item D 0 2 5 7
Item E 1 6 7 8


If I type in a value 'Item C' I can use the match and index functions
to find out which row Item C is on.
Using this row value I should be able to search the row to find out
which column contains 0.


Does anyone know how I can use the result from the first formula in the

second formula. An example would be good.


Bernie Deitrick

Using a formula result to reference a row
 
With your Item values in column A:

=MATCH(0,OFFSET(1:1,MATCH("Item C",A:A,FALSE)-1,0),FALSE)

will return the column # for the 0 in the row with Item C. "Item C" can also be replaced by a cell
reference.

HTH,
Bernie
MS Excel MVP


"f1capsicum" wrote in message
oups.com...
I have a spread sheet like the following


Item A 0
Item B 0 2
Item C 0 4 5
Item D 0 2 5 7
Item E 1 6 7 8


If I type in a value 'Item C' I can use the match and index functions
to find out which row Item C is on.
Using this row value I should be able to search the row to find out
which column contains 0.


Does anyone know how I can use the result from the first formula in the

second formula. An example would be good.




f1capsicum

Using a formula result to reference a row
 
Thanks, works great



All times are GMT +1. The time now is 07:26 PM.

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