Matchmatical Formula in Cell based on a selection from a dropdown

MrHydrant1857

New Member
Joined
Mar 29, 2019
Messages
35
Hi all,
I have an excel sheet that has a dropdown with different selections (Products) in it and based on that selection a certain cell generates a preset number from a table. I have then another cell before that where I can enter a number manually. finally I have a cell with a formula in it that takes the preset number multiplied by the number that is manually entered and outputs the answer. the trick is that if the manually entered number is 3 or below then it doesn't execute the equation, which I want to happen. so my question/problem is, I have certain products that require a different formula than the one being used. How do I get my formula cell to generate the correct formula based off my product selection? I have written examples below as it is hard for me to explain.

Product A selected:
(manually entered number) 3 / (Preset number) 32.50 / (Formula: =MAX(((B22-3)*2)*E22,0) ) *Cell is Blank

Product B selected:
(manually entered number) 3 / (Preset number) 32.50 / (Formula: =MAX(((B22-1)*2)*E22,0) ) *Cell returns: 130.00
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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