Share via

Using VLOOKUP, IFS, ISERROR together

Anonymous
2025-03-02T00:00:59+00:00

I am trying to compare 1 table of data (workbook 1) with another (workbook 2) by using a combination of VLOOKUP, IFS, ISERROR formula

Check "Office1" in one workbook, comparing if it’s an exact match to Office 2 (on another workbook), then return data that is in column "Name Age Country 2" and put it in "Name Age Country 1"

OR comparing Office 1 if it’s an exact match to Office 2, but the "Name Age County 2" is blank, return word "NO DATA" in "Name Age Country 1"
OR comparing Office 1 if it’s an exact match to Office 2, but the "Name Age County 2" has no match, return "N/A" in "Name Age Country 1"

WORKBOOK 1 *What IFS, ISERROR, VLOOKUP formula can be entered in "Name Age Country 1" column in Workbook 1 to show the result below.

Office 1 Name Age Country 1
Warner Brothers George Clooney - 60 - USA
Universal NO DATA
HBO N/A
Netflix Brad Pitt - 54 - France
Disney Matt Damon - 53 - USA

WORKBOOK 2

Office 2 Name Age Country 2
Warner Brothers George Clooney - 60 - USA
Disney Matt Damon - 53 - USA
Paramount Toby McGuire - 35 - Italy
Universal
Netflix Brad Pitt - 54 - France
Microsoft 365 and Office | Excel | For education | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Ashish Mathur 101.8K Reputation points Volunteer Moderator
    2025-03-02T03:39:42+00:00

    You are welcome. It works fine as seen in the image that i posted. I cannot say what error you are committing.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2025-03-02T03:12:01+00:00

    Thank you but I couldn't make it work.

    It's actually on two separate worksheets (see images below of each worksheet). How does the formula change?

    I tried to do it and unfortunately it resulted in each coming back "#VALUE!" so my formula below is off.

    =IF(XLOOKUP(Table1[[#Headers],[Office 1]],Table2[#Headers],"N/A")="","No Data",XLOOKUP(Table1[[#Headers],[Office 1]],Table2[#Headers],"N/A"))

    Was this answer helpful?

    0 comments No comments
  3. Ashish Mathur 101.8K Reputation points Volunteer Moderator
    2025-03-02T01:41:33+00:00

    Hi,

    In cell B2, enter this formula and drag down

    =IF(XLOOKUP(A2,$A$14:$A$18,$B$14:$B$18,"N/A")="","No Data",XLOOKUP(A2,$A$14:$A$18,$B$14:$B$18,"N/A"))

    Hope this helps.

    Was this answer helpful?

    0 comments No comments