Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default 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.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default 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.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Using a formula result to reference a row

Thanks, works great

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Return a cell reference as a result of an IF formula Larry G Excel Discussion (Misc queries) 1 December 19th 09 04:38 PM
How to return a cell reference as result of a formula Bruce Williams Excel Worksheet Functions 2 February 18th 09 04:12 AM
Advanced formula - Return result & Show Cell Reference of result Irv Excel Worksheet Functions 7 May 6th 06 03:36 AM
How to replace a function with its result or resulting reference in a formula? Dmitry Kopnichev Excel Worksheet Functions 5 October 13th 05 12:15 PM
copying a formula, the reference adjusts, but the result does not chezoo Excel Discussion (Misc queries) 1 January 12th 05 01:51 AM


All times are GMT +1. The time now is 02:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"