Excel Magic Trick 479: Reverse Two Way Lookup - Robust Formula for Duplicate Situations
March 7th, 2010 by
See a robust formula that can handle any duplicate situation when doing a Reverse Two Way Lookup. See how to extract column and row headers when the lookup values are data inside the table and there are many duplicate lookup values. This Array Formula uses the functions, IF, OR, COLUMNS, INT, MOD, SMALL, INDEX, COLUMN, ROW, COLUMNS. This amazing trick comes from donkeyote and pgc01 at the Mr Excel Message Board. This video is an improvement on the formula as seen in video Excel Magic Trick #149.5: Reverse 2-Way Lookup w duplicates. The amazing concept in the video comes from the fact that we have duplicate lookup values and we must return the column and row headers in a specific order. The conceptual trick that will be used is to create a table of numbers in the same shape as the lookup table values and each number will contain both the column number and row number for the lookup value. We will multiply the column numbers by 10^5 then add the row numbers to get a single number that will have information about the column and row index numbers. Absolutely a must see conceptual trick if you want to master Reverse two way lookup! Reverse Two Way Lookup When Duplicates are Present.
This entry was posted on Sunday, March 7th, 2010 at 3:23 am and is filed under Reverse Phone Look UP. You can follow any responses to this entry through the RSS 2.0 feed. Responses are currently closed, but you can trackback from your own site.






March 7th, 2010 at 3:23 am
I don’t understand…
For date and time, see video 478
March 7th, 2010 at 3:23 am
I guess if i was changing it to time using this formula, i would have to change the custom number format?
March 7th, 2010 at 3:23 am
Yes. But video 478 is an easier formula that works for dates and times only.
March 7th, 2010 at 3:23 am
Will this formula work for dates and times
March 7th, 2010 at 3:23 am
It took me a long time to understand it also!!
March 7th, 2010 at 3:23 am
Wow! Talk about a mega-formula! I’m going to have to study this one for a bit…