+ Reply to Thread
Results 1 to 4 of 4

Vlookup when column varies

  1. #1
    Registered User
    Join Date
    12-27-2019
    Location
    London, England
    MS-Off Ver
    Excel for Mac
    Posts
    1

    Vlookup when column varies

    Hi all!

    I want to search for a particular number in a table. The first column is a unique letter, and in the row containing that letter is a series of numbers.

    What formula can i use to find a particular number in this table when it could be in any row, and return the letter in the first column?

    Screen Shot 2019-12-27 at 16.17.15.png

    Thanks for the help!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    47,174

    Re: Vlookup when column varies

    Welcome to the forum.

    How to attach your workbook: instructions in the banner at the top of the page.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Sadly... in lockdown, but based in Ireland.
    MS-Off Ver
    µSoft Office 365. Learning Excel all over again!!
    Posts
    29,938

    Re: Vlookup when column varies

    Hi. Adapt this to the range of cells in yoru real sheet:


    =INDEX($B:$B,MAX(INDEX(($C$4:$L$18=$O4)*ROW($C$4:$L$18),0)))
    Glenn



  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,904

    Re: Vlookup when column varies

    Here is another one

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    v B C D E F G
    1
    2 Enter Number 33
    3 Letter is: D
    4
    5 C 85 51 17
    6 S 34 26 13 22
    7 P 55 39 11
    8 D 65 33 7
    9 B 35 21 14
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 16
    Last Post: 05-17-2017, 02:00 PM
  2. [SOLVED] Sum column where column depth varies
    By rmg08057 in forum Excel General
    Replies: 4
    Last Post: 07-14-2015, 08:48 PM
  3. Copy Specific Rows with Column that Varies
    By Jarvin24 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-15-2014, 02:05 AM
  4. Replies: 3
    Last Post: 04-21-2013, 02:17 AM
  5. Set Print area when ending column varies
    By jbrown1968 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-24-2012, 03:32 PM
  6. Vlookup, using mid range and pulling back another column but the cell value varies
    By isatsam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-20-2011, 05:40 PM
  7. Replies: 2
    Last Post: 02-15-2010, 09:59 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1