Issue getting Data from another Sheet Trying to Use Xlookup and Multiple Lookup Values

Anonymous
2025-05-16T12:50:57+00:00

I am trying to extract a serial number based on a two locations.

I have another sheet that I can extract and am hoping to extract it in order to update every once in a while.

Here is the formula I am trying.

=XLOOKUP((('Inventory'!I6:I1040="A5")*('Inventory'!D6:D1040="B3")),'Inventory'!A6:I1040,'Inventory'!G6:G1040)

For the first Cell I am trying to check for A5 and B3 in another sheet (Inventory)

It is giving a #Value error and I cannot find where I am going wrong

Microsoft 365 and Office | Excel | Other | 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
{count} votes

3 answers

Sort by: Most helpful
  1. Andreas Killer 144K Reputation points Volunteer Moderator
    2025-05-16T13:31:25+00:00

    We need to see your (sample) file.
    Why a sample file is important for troubleshooting. How to do it. - Microsoft Community

    The article also contains a link to a macro that you can use to anonymize your data.

    Andreas.

    0 comments No comments
  2. Rich~M 20,355 Reputation points Volunteer Moderator
    2025-05-16T13:50:35+00:00

    What I can gather from your formula is that you are looking in the Inventory sheet to get a result from Column G. You have the Lookup Array as Column A, but your Lookup Value and Lookup Array are a problem.

    Your Lookup Value in the formula is using a multiplication logic which produces either 1 or 0 which I am sure is not what you have in Column A of the Inventory sheet. Here are two guesses at how to write the formula, but without seeing the data layout in your Inventory sheet it is just a guess.

    Here is my guess at a sample Inventory sheet.

    If you are trying to get the result from Column G if Column I matches A5 and Column D matches B3, use this formula entered below in B5.

    =XLOOKUP(1,(Inventory!I6:I1040=A5)*(Inventory!D6:D1040=B3),Inventory!G6:G1040)

    If you are trying to combine the data in A5 and B3 to look that up in Column A, use this formula shown in B5 below.

    =XLOOKUP(A5&B3,Inventory!A6:A1040,Inventory!G6:G1040)

    If this is not sufficient to solve your issue, please reply with more detail and paste in data that can be copied into Excel with any sensitive data removed.

    1 person found this answer helpful.
    0 comments No comments
  3. Anonymous
    2025-05-19T14:27:39+00:00

    This solved my issue thanks!!

    =XLOOKUP(1,(Inventory!I6:I1040=A5)*(Inventory!D6:D1040=B3),Inventory!G6:G1040)

    This was what I was looking for thanks.

    0 comments No comments