determine the price based on the code

stereogenic

New Member
Joined
May 12, 2011
Messages
3
Hi All

I have hundred customer data, i have only 5 item code, i need to display price automaticly based on my data, some customer have 2 item code

example:
Customer | CODE ITEM 1 | CODE ITEM 2 | Price
John A B
Mike B
Joane C
Brad D

something like :
if A and E = price 1
if C and D = price 2
etc..

i try to search in forum for similiar case, i haven't found it yet, or may be my i put wrong search key, Please assist.

thank you
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
May be this:
Code:
=SUMIFS(D:D,A:A,"John",B:B;">0",C:C,">0")
 
Upvote 0
Type into H3 cell:
Code:
=SUM(IFERROR(VLOOKUP(D3;$B$18:$C$21;2;FALSE);0)+
  SUM(IFERROR(VLOOKUP(E3;$B$18:$C$21;2;FALSE);0)+
  SUM(IFERROR(VLOOKUP(F3;$B$18:$C$21;2;FALSE);0)+
  SUM(IFERROR(VLOOKUP(G3;$B$18:$C$21;2;FALSE);0)))))
 
Upvote 0
Waw it's working! I thought it's only one simple line :laugh:

thanks a lot mate! ;)

Type into H3 cell:
Code:
=SUM(IFERROR(VLOOKUP(D3;$B$18:$C$21;2;FALSE);0)+
  SUM(IFERROR(VLOOKUP(E3;$B$18:$C$21;2;FALSE);0)+
  SUM(IFERROR(VLOOKUP(F3;$B$18:$C$21;2;FALSE);0)+
  SUM(IFERROR(VLOOKUP(G3;$B$18:$C$21;2;FALSE);0)))))
 
Upvote 0

Forum statistics

Threads
1,224,548
Messages
6,179,445
Members
452,915
Latest member
hannnahheileen

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