Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Mr Excel & excelisfun Trick 7: Reverse Lookup VBA or Formula?

Loading...

Sign in or sign up now!
10,110
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 23, 2009

See Mr Excel and excelisfun complete a Reverse Lookup (find value inside table and then retrieve Column and Row header. Mr Excel uses Excel VBA code (Macro) and excelisfun uses a formula with INDEX, IF, SMALL, MATCH, TEXT, CHAR and COLUMNS functions.

INDEX and MATCH magic

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (ExcelIsFun)

  • hi Mike,

    sorry for the very late reply, thanks for the tip. tricks no.478 and 479 is the way to go. Love it.

  • @ronguiller2 , cool! I am glad thatthose help!

  • hi Mike,

    awesome video, I never thought it was possible to do a reverse lookup for column headers and row headers, however I've noticed something. for truck no.4 you've extracted 8:00 AM on both cells instead of an 8:00 am and an 11:00 am. could it be that both data coming from the same column had somehow confused the formula?

  • @ronguiller2 , see this video that has a more robust formula:

    Excel Magic Trick 479: Reverse Two Way Lookup - Robust Formula for Duplicate Situations

    or

    Excel Magic Trick 478: Reverse Two Way Lookup For Date and Time Column and Row Headers

  • I think Bills way wins!!!!!!!

  • Cool!

see all

All Comments (22)

Sign In or Sign Up now to post a comment!
  • Awesome. I like the VBA solution.

    Although... the name Reverse Index would have been closer to what the Formula does.

  • Phew! lost me there. Great to see two giants of Xcel/VBA together in one clip.

    Great job guys!

    I used to be OK with basic and could dimension arrays,nest loops, call subs on variables etc but VBA is really challenging me now. Don't know yet what commands will follow each other and getting lots compile & syntax probs.

  • I made two newer videos that show more robust formulas that can handle all duplicate situations:

    Excel Magic Trick 479: Reverse Two Way Lookup - Robust Formula for Duplicate Situations

    Excel Magic Trick 478: Reverse Two Way Lookup For Date and Time Column and Row Headers

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more