If / and lookup

drluke

Active Member
Joined
Apr 17, 2014
Messages
314
Office Version
  1. 365
Platform
  1. Windows
Attempting to lookup by product from a data table arranged like:

310032003300
Cust A25125.2610.261000.00
Cust B80589.6713.593000.00
Cust C90625.7119.995600.00
Cust D100228.148.569000.00

<tbody>
</tbody>

I need to be able to lookup the value of sales for product codes (col C-E) if the customer code in col B is xx:

Prod CodeC CodeValue
3100100228.14
3300803000.00

<tbody>
</tbody>

Any advise appreciated.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
ok, assuming the values to lookup are in A9 (3100) and in B9(100) and the table you posted to find the value is in A1:E5.
Code:
=INDEX($B$1:$E$5,MATCH(B9,$B$1:$B$5,0),MATCH(A9,$B$1:$E$1,0))
 
Upvote 0

Forum statistics

Threads
1,215,013
Messages
6,122,694
Members
449,092
Latest member
snoom82

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top