+ Reply to Thread
Results 1 to 12 of 12

Combine 2 VLOOKUPs to give results in same cell

  1. #1
    Registered User
    Join Date
    06-26-2013
    Location
    Kent
    MS-Off Ver
    Office 365 - Excel
    Posts
    15

    Combine 2 VLOOKUPs to give results in same cell

    Hi everyone

    Are you able to help, im using a vlookup to return text in a coloumn on a different tab if there is a match based on a cell in my main working tab.

    This currently looks at my August tab but I would also like it to return any text from a previous month too i.e a July tab

    My curren formula here works for one return

    =VLOOKUP('Current Extract'!F6, 'August 2020'!F:V,16,FALSE)

    But I need something like this, can someone help how to merge 2 VLOOKUPs as I'm getting an error 😢

    =VLOOKUP('Current Extract'!F6, 'August 2020'!F:V,16,FALSE)&VLOOKUP('Current Extract'!F6, 'July 2020'!F:V,16,FALSE)

    Any ideas?

  2. #2
    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,817

    Re: Combine 2 VLOOKUPs to give results in same cell

    Administrative Note:

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)
    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.

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Combine 2 VLOOKUPs to give results in same cell

    Waiting on OP to make Mod Changes
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Valued Forum Contributor PeteABC123's Avatar
    Join Date
    09-21-2012
    Location
    Chicago, IL
    MS-Off Ver
    MS Office 365 ver 2202
    Posts
    1,104

    Re: Combine 2 VLOOKUPs to give results in same cell

    Hi Jamieandjo:
    It might be that your selected table range is 17 columns, and you want to bring in the result in the 16th column. Is 16 or 17 the desired column? Might be hosing your result.

    Pete

  5. #5
    Registered User
    Join Date
    06-26-2013
    Location
    Kent
    MS-Off Ver
    Office 365 - Excel
    Posts
    15

    Re: Combine 2 VLOOKUPs to give results in same cell

    ht tps:/ /ww w. mrexcel.c om/board/t hread s/combine-2- vlo okups-to-give-returns-in-same-ce ll.114 4551/

  6. #6
    Registered User
    Join Date
    06-26-2013
    Location
    Kent
    MS-Off Ver
    Office 365 - Excel
    Posts
    15
    Quote Originally Posted by PeteABC123 View Post
    Hi Jamieandjo:
    It might be that your selected table range is 17 columns, and you want to bring in the result in the 16th column. Is 16 or 17 the desired column? Might be hosing your result.

    Pete
    Hi Pete, the return data is always in coloumn 17 of the the tabs. So what I need is it to took at the two tabs and return the commentary from both if there is a bit on the first reference 👍

  7. #7
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Combine 2 VLOOKUPs to give results in same cell

    Hi Pete, the return data is always in coloumn 17 of the the tabs. So what I need is it to took at the two tabs and return the commentary from both if there is a bit on the first reference
    but the range you list in your formulas is only going over 16 columns - to column U.
    VLOOKUP('Current Extract'!F6, 'August 2020'!F:V,16,FALSE)
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  8. #8
    Registered User
    Join Date
    06-26-2013
    Location
    Kent
    MS-Off Ver
    Office 365 - Excel
    Posts
    15
    Quote Originally Posted by Sam Capricci View Post
    but the range you list in your formulas is only going over 16 columns - to column U.
    VLOOKUP('Current Extract'!F6, 'August 2020'!F:V,16,FALSE)
    Sorry I meant 16!!!

  9. #9
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Combine 2 VLOOKUPs to give results in same cell

    it works fine for me, can you post a small sample workbook with expected results?
    I changed tab names to match yours and it worked fine for me.
    =VLOOKUP('current extract'!F6,'August 2020'!F:V,16,FALSE)&VLOOKUP('current extract'!F6,'July 2020'!F:V,16,FALSE)

  10. #10
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Combine 2 VLOOKUPs to give results in same cell

    of course it does depend on what you are looking to pull. Also if you are only going over 16 columns then you just need this...
    =VLOOKUP('current extract'!F6,'August 2020'!F:U,16,FALSE)&VLOOKUP('current extract'!F6,'July 2020'!F:U,16,FALSE)

  11. #11
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Combine 2 VLOOKUPs to give results in same cell

    you know, posting a simple workbook with as few as three examples, one you are looking up in current extract, one in Aug 2020 with "matching value" in col F and the value to return in col U, same in July 2020 tab and showing the error you are getting would go a long way to helping us figure out what is going on.

  12. #12
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Combine 2 VLOOKUPs to give results in same cell

    My guess is you need to wrap your two VLOOKUPs in IFERROR like so and maybe add a TRIM
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If that doesn't work, perhaps upload an example workbook

+ 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] Combine two Vlookups
    By robertguy in forum Excel General
    Replies: 2
    Last Post: 06-29-2017, 06:15 AM
  2. [SOLVED] Formula in Cell causing my comparitor code to give false results
    By Minksta in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-25-2016, 06:26 PM
  3. formula to combine like cell and results
    By bacardi510 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-07-2014, 07:18 PM
  4. Combine sheets using vlookups and pivots?
    By A1A in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 12-09-2013, 05:42 AM
  5. [SOLVED] Multiple Vlookups & Join results in one cell
    By dpk1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-24-2013, 05:05 AM
  6. Possible to combine multiple VLOOKUPs?
    By benolsen in forum Excel General
    Replies: 2
    Last Post: 10-18-2011, 11:08 AM
  7. Match one cell for another AND give results
    By krayziez in forum Excel General
    Replies: 4
    Last Post: 06-03-2006, 10:25 PM

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