Vlookup in reverse???? Column heading needed.

philobr

Active Member
Joined
Oct 17, 2005
Messages
280
Hi there,
I have 20 columns of numbers (which have been formated as text to display leading 0)

I have separate list of numbers in one column, formatted in the same way.

Is there a way to do a reverse lookup, ie look in this range and give me the column heading?????
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Try using Index and Match...

=INDEX(A1:Z1,MATCH(somevalue,A10:Z10,0))

That will find somevalue in Row 10, and return corresponding value from Row 1

Hope that helps.
 
Upvote 0
This is what I added:
=INDEX($G$7:$AR$7,MATCH(A8,$G$8:$AR$57,0))

The header rows are in $G$7:$AR$7

I got an #N/A thrown back.

There is a value in column G that matches A8 in fact, its the first entry
 
Upvote 0
So the value in A8 could be anywhere within G8:AR57?

Will there be only 1 match for A8 in that range, or could there be multiple?
If there are multiple, which one do you want?
 
Upvote 0
Yes, the value in A8 could be anywhere in the lookup_array.

There should only be one instance in the lookup_array, I dont mind getting an error if there are multiple values because thats a different issue.
 
Upvote 0
With no duplicates in the array, try

=INDEX(G7:AR7,SUMPRODUCT((G8:AR57=A8)*COLUMN(G8:AR57))-COLUMN(G8:AR57)+1)


If there are duplicates, this will return the one in the leftmost column
=INDEX(G7:AR7,MIN(IF(G8:AR57=A8,COLUMN(G8:AR57)))-COLUMN(G8:AR57)+1)

The 2nd one is an array formula that must be entered with CTRL + SHIFT + ENTER
 
Upvote 0
Nice how to get all the Headings (2nd Row) matching value (0 in 4th row of the sheet) in a desired cell with comma seperation Jai
 
Upvote 0

Forum statistics

Threads
1,224,603
Messages
6,179,850
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top