Multiple ifs at once?

  • Thread starter Thread starter Legacy 488112
  • Start date Start date
  • Tags Tags
    if ""
Status
Not open for further replies.
L

Legacy 488112

Guest
Hello,
I'm really confused with powerpoint, I basically want to create a table that will automatically assign the price depending on the country I select and the type of the product, I don't want to enter the price manually everytime and I don't really know what to do..

I have dropdowns for the country and the type but I have no clue how to do the IFs without there being 30 million ifs.. :/
I have another list with the countries and the type (I changed the values to something random) so lets say the Beer costs 20$ in the US (our cost being 10$) but in the NL it costs 10$ (our cost being 5$ there)
1642685686928.png

Book1 (version 1).xlsb
ABCDEF
5IDNAMECOUNTRYQTYTYPE1 PCS PRICE
6#01USA60COKE18,00 €
7#02USACOKE
8#03USACOKE
9#04USACOKE
10#05USACOKE
11#06USACOKE
12#07USACOKE
13#08USACOKE
14#09USACOKE
15#10USACOKE
16#11USACOKE
17#12USACOKE
18#13USACOKE
19#14USACOKE
20#15USACOKE
21#16USACOKE
22#17USACOKE
23#18USACOKE
24#19USACOKE
25#20USACOKE
MAIN
Cells with Data Validation
CellAllowCriteria
C6:C25List=INDIRECT("COUNTRY[COUNTRY]")
E6:E25List=INDIRECT("TYPE[TYPE]")
 

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
I found the VBA editor but it will only let me put in 2 cells to have in the function, not 3 :/
 
Upvote 0
Alright,
I literally paid someone for a solution so for those looking here:

=IFERROR(VLOOKUP($D7; Options!$C$7:$F1000;@ SWITCH(F7; "Snack"; 2; "Coke"; 3; "Beer"; 4); 0); 0)
 
Upvote 0
Solution
Status
Not open for further replies.

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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