Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic MATCH function range 1

Status
Not open for further replies.

MeGustaXL

Technical User
Aug 6, 2003
1,055
GB
Hi,

In a table of data, I'm using INDEX-MATCH to return a value from the Header_Row, based on the column of a Target_Value. With a fixed Search_Row, the formula is:

=INDEX(Header_Row,1,MATCH(Target_Value,Search_Row,-1)+1) This works perfectly. [thumbsup]

But, the table has 10 rows, with Names in column A7 to A17 and numbers in the range C7 to AB17.

How can I make the reference Search_Row dynamic, determined by the chosen Name?

Chris

Someday I'll know what I'm donig...damn!

 
Something like the following:

=INDEX(Header_Row,MATCH(Target_Value,OFFSET(B6,MATCH(Chosen_Name,Names,0),0,1,Columns(Header_Row)),-1))

(where Names in your example is range A7:A17)
 
Hi strongm, I'm sorry I didn't reply sooner, but we were sidetracked to another project and now off for Christmas. I'll try it out during the break and get back to you ASAP OK?
Thanks for helping, and have a merry Christmas and Happy New year 😊

Chris

Someday I'll know what I'm donig...damn!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top