I am trying to get price from one sheet to another, based on 2 criteria

Bruce Thurston 0 Reputation points
2024-05-12T02:18:59.7433333+00:00

I am trying to use xlookup that I need to meet two conditions, and then look up a list and apply a value for the answer.

SHEET 1

           A                                   B                        ANSWER CELL             ANSWER SHOULD BE

S/LDP WORLD?88.00T1PATRICKS?0.00S/LPATRICKS?35.00

SHEET 2

S/LPATRICKS77.40DP WORLD88.00HUTCHINSONS35.00

I am trying to first ensure the cell has S/L if it does then I am trying to look at the location and then put in the cell value of that location from the 2nd sheet.

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,541 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Barry Schwarz 2,191 Reputation points
    2024-05-12T02:48:35.03+00:00

    The following formula does what you describe. Enter in row 1 of sheet1 and copy for the other two rows.

    =IF(A1<>"S/L","not interested",VLOOKUP(B1,sheet2!A$1:A$3,2,FALSE))

    0 comments No comments

  2. Bruce Thurston 0 Reputation points
    2024-05-12T05:56:44.84+00:00

    "C:\Users\rsabr\OneDrive - movez.com.au\Desktop\TEST BILLING.xlsx"

    The formula is not working., I have copied the path to the spread sheet


  3. Emi Zhang-MSFT 22,551 Reputation points Microsoft Vendor
    2024-05-13T01:24:59.31+00:00

    Hi,

    I created a sample:

    User's image User's image

    I enter the formula in Sheet1 ANSWER SHOULD BE Column:

    =SUMPRODUCT((A2=Sheet2!$A$1)*(Sheet2!$A$2:$A$4=Sheet1!B2),Sheet2!$B$2:$B$4)

    Just checking in to see if the information was helpful. Please let us know if you would like further assistance.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments