Value depends on several conditions: VLOOKUP, SUMIFS or another function?

Darko11

New Member
Joined
Oct 19, 2014
Messages
3
I have a counting table w/several columns (in Google Sheets):

1725780540287.png


So far, the price depends on single condition (Product), with VLOOKUP function

=((C2<>"free sample")*VLOOKUP(B2,Sheet2!B$2:C$4,2,FALSE))

Sheet2 contains:

1725780683721.png


This gives me price for every Payment Method except for Free sample (where price is 0 since it is free).

I'd like that Price depends on Product, Payment Mathod and Client.

eg. Wholesale will have one price for Product A when paying with cash (2€) and different when using card (3€).

Hope I made it clear enough.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Hello
Your request is not logical.
Why would the price also depend on the client?
Logical would be:
-Different products have different prices
-And if payed with different payment methods then a charge is added
 
Upvote 0

Forum statistics

Threads
1,221,566
Messages
6,160,525
Members
451,655
Latest member
rugubara

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