table lookup trouble

kev959

New Member
Joined
Nov 18, 2008
Messages
34
I am trying to lookup a value in a table using 2 conditions:

a b c
fred 20 20 20
mary 5 1 1
jane 5 5 8
stan 11 12 10

Based on the the "name" column I need to retrieve the appropriate rate for that customer based on a transaction type A, B, or C. Previously before MARY I could use the formula below. Now with MARY I need to upgrade this. For some reason, maybe its the parathensis, I cannot edit the formula. This is what I used previously:
=IF(OR(F2="B",F2="A"),VLOOKUP(D2,$T$2:$V$14,2,FALSE),VLOOKUP(D2,$T$2:$V$14,3,FALSE))

Any help is greatly appreciated!
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

Forum statistics

Threads
1,190,657
Messages
5,982,137
Members
439,757
Latest member
85Sarah2005

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
Top