+ Reply to Thread
Results 1 to 3 of 3

Combine two Vlookups

  1. #1
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Question Combine two Vlookups

    Hi,

    Is possible to combine two Vlookups ?


    Basically, I have two VLOOKUPS i.e.
    Please Login or Register  to view this content.
    =VLOOKUP(A2,'Data'!B:L,11,0)
    Please Login or Register  to view this content.
    and
    Please Login or Register  to view this content.
    =VLOOKUP(B2,'Data'!A:L,12,0)
    Please Login or Register  to view this content.
    which are using the fields ‘Ref’ and ‘Project Number’ which looks up the value ‘Project Type’ from the ‘Data’ tab in column ‘L’.

    I need to combine these two Vlookups as not every record has a ‘Ref’ and ‘Project Number’ in order to ensure I capture the ‘Project’ Type’.

    Currently I have two lookup columns i.e. ‘C’ and ‘D’ on the ‘Master’ tab and the in column ‘E’ use a MAX formulae to populate the ‘Project Type’. My problem here is the ‘Project Type’ can be either 0, 1, 2, 3 or 4 and this formula pulls through any null values as 0 and also display #N/A. Please see attached file ‘VLOOKUP DATA.xlsx’

    Any assistance would be great appreciated

    Many thanks in advance

    Regards

    Rob
    Attached Files Attached Files
    Rob

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Combine two Vlookups

    Does this work?

    =IFERROR(VLOOKUP(A2,'Data'!B:L,11,0),IFERROR(VLOOKUP(B2,'Data'!A:L,12,0),"ID & Project Number not on file")

    Some of your Project Numbers are duplicated in the Master file but have different IDs.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Contributor
    Join Date
    02-09-2004
    Location
    Cardiff - Wales - UK
    MS-Off Ver
    2013
    Posts
    475

    Re: Combine two Vlookups

    Sprecial-K

    EXCELLENT !!

    Many thanks

    Regards

    Rob

+ 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 multi workbooks into one master workbook but I want to combine only sheet 3
    By Goodstart14 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-31-2013, 12:22 AM
  2. Combine sheets using vlookups and pivots?
    By A1A in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 12-09-2013, 05:42 AM
  3. [SOLVED] Combine 2 worksheets & Do Multiple Column VLookups
    By gdoode23 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-28-2013, 03:13 PM
  4. [SOLVED] Using Combine macro to combine multiple worksheets - need to modify to paste formulas
    By DLSmith in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2012, 09:07 AM
  5. Possible to combine multiple VLOOKUPs?
    By benolsen in forum Excel General
    Replies: 2
    Last Post: 10-18-2011, 11:08 AM
  6. SUM VLOOKUPs
    By djones13 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-27-2011, 02:50 PM
  7. 2 vlookups?
    By Nunzii in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-23-2011, 12:04 PM
  8. Replies: 1
    Last Post: 12-15-2009, 10:03 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