Suppose that, in the Sales Transactions database, we wish to find the customer ID associated with a
Question:
Suppose that, in the Sales Transactions database, we wish to find the customer ID associated with a specific transaction code. Refer back to Figure 2.8 or the Excel workbook. Suppose that we enter the transaction code in cell K2, and want to display the customer ID in cell K4.
Use the formula in cell K4:
INDEX(A4:A475,MATCH(K2,D4:D475,0),1)
Here, the MATCH function is used to identify the row number in the table range that matches the transaction code exactly, and the INDEX function uses this row number and column 1 to identify the associated customer ID.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Question Posted: