+ Reply to Thread
Results 1 to 13 of 13

How to remove limitation of VLOOKUP

  1. #1
    Registered User
    Join Date
    06-12-2018
    Location
    india
    MS-Off Ver
    2013
    Posts
    93

    How to remove limitation of VLOOKUP

    Hi All,
    Good day.. hope you are doing well.
    Could you please check the attached file where vlookup finds the first value from row, But if i need 2nd row value how it is possible.

    Thank You,
    Attached Files Attached Files

  2. #2
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: How to remove limitation of VLOOKUP

    You could use:

    =LOOKUP(2,1/($A$2:$A$5=I9)/(INDEX($B$2:$D$5,,MATCH(J9,$B$1:$D$1,0))<>""),INDEX($B$2:$D$5,,MATCH(J9,$B$1:$D$1,0)))

    If you have more than one value per country/city combination, it will return the last one.

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: How to remove limitation of VLOOKUP

    How to remove limitation of VLOOKUP

    you can use PowerQuery

    Power Query for
    see green table

  4. #4
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: How to remove limitation of VLOOKUP

    =iferror(indirect(text(aggregate(15,6,(row(rng)*10000+column(rng))/($a$2:$a$5=i9)/($b$1:$d$1=j9)/(rng<>""),countifs($i$9:i9,i9,$j$9:j9,j9)),"r0000c0000"),),"")

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,984

    Re: How to remove limitation of VLOOKUP

    Maybe a simpler approach:

    =SUMPRODUCT(($A$2:$A$5=I9)*($B$1:$D$1=J9)*($B$2:$D$5<>"")*$B$2:$D$5)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Registered User
    Join Date
    06-12-2018
    Location
    india
    MS-Off Ver
    2013
    Posts
    93

    Re: How to remove limitation of VLOOKUP

    Hi Sandy
    Very Impressive.. I want to learn this, But Hows

  7. #7
    Registered User
    Join Date
    06-12-2018
    Location
    india
    MS-Off Ver
    2013
    Posts
    93

    Re: How to remove limitation of VLOOKUP

    Quote Originally Posted by sandy666 View Post
    How to remove limitation of VLOOKUP
    Very Impressive.. I want to learn this, But Hows
    Last edited by AliGW; 07-17-2018 at 06:15 AM.

  8. #8
    Registered User
    Join Date
    06-12-2018
    Location
    india
    MS-Off Ver
    2013
    Posts
    93

    Re: How to remove limitation of VLOOKUP

    Thank you..

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: How to remove limitation of VLOOKUP


  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,418

    Re: How to remove limitation of VLOOKUP

    Quote Originally Posted by Merrysa View Post
    Hi Sandy
    Very Impressive.. I want to learn this, But Hows
    Here's how to do it (Sandy will probably want you to work it out for yourself, but I think Power Query solutions need some explanation for the uninitiated):

    1. Select cells A1:D5.
    2. On the Data ribbon, click on From Table/Range (fourth icon from the left in the Get & Transform section).
    3. In the PQ editor that appears, go to the Transform tab and from the Unpivot Column drop-down, choose Unpivot Other Columns.
    4. Go to the Home ribbon and select Close & Load To from the Close & Load drop-down (extreme left). Choose the cell where you want your table to appear.

    All done!

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    E
    F
    G
    H
    I
    1
    Country City 1 City 2 City 3 Country Attribute Value
    2
    USA
    200
    400
    USA City 1
    200
    3
    USA
    500
    USA City 2
    400
    4
    Canada
    985
    USA City 3
    500
    5
    Canada
    858
    785
    Canada City 1
    985
    6
    Canada City 2
    858
    7
    Canada City 3
    785
    Sheet: Sheet1
    Attached Files Attached Files
    Last edited by AliGW; 07-17-2018 at 06:32 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  11. #11
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to remove limitation of VLOOKUP

    Quote Originally Posted by Glenn Kennedy View Post
    Maybe a simpler approach:

    =SUMPRODUCT(($A$2:$A$5=I9)*($B$1:$D$1=J9)*($B$2:$D$5<>"")*$B$2:$D$5)
    Neat!

    As ever the good old SUMPRODUCT comes to the rescue!

    Nice to see it's not gone out of fashion. I suspect, as here, it's used in ways its designers never really imagined.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  12. #12
    Registered User
    Join Date
    06-12-2018
    Location
    india
    MS-Off Ver
    2013
    Posts
    93

    Re: How to remove limitation of VLOOKUP

    @AliGW Thanks Alot ....!!!!!!
    Really helpful
    Last edited by AliGW; 07-17-2018 at 07:50 AM. Reason: Unnecessary quotation removed.

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,418

    Re: How to remove limitation of VLOOKUP

    You're welcome!

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. [SOLVED] VLookup limitation
    By ah359 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-21-2016, 10:04 AM
  2. [SOLVED] Vlookup limitation
    By Garen in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-10-2014, 12:57 AM
  3. VLOOKUP Limitation?
    By tuph in forum Excel General
    Replies: 2
    Last Post: 03-13-2007, 05:27 PM
  4. VLOOKUP Limitation and Solution?
    By KL Cheong in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-01-2006, 10:00 AM
  5. VLOOKUP Problem (limitation)?
    By SnotRockit in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-07-2005, 11:06 AM
  6. [SOLVED] vlookup limitation
    By Ankur in forum Excel General
    Replies: 4
    Last Post: 08-24-2005, 02:05 PM
  7. VLookup limitation?
    By Murtaza in forum Excel General
    Replies: 1
    Last Post: 08-02-2005, 09:05 AM

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