Combining IF formulas with Calcs

janema

Board Regular
Joined
Nov 28, 2022
Messages
117
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2011
  5. 2010
Platform
  1. Windows
  2. Mobile
I need help figuring out how to pull in a formula into my current calculation and IF formula. The formula in the cell is currently is written as follows:

=IF(MAX(AJ13,AM13)=0,"",MAX(AJ13,AM13))

It is looking at the value in the two columns and the result is the higher amount.

What I am trying to accomplish is to subtract that result by 5% or 7% if the cell F13 contains particular text.

In essence:

If cell F13 = "A4H" then I want the the result to minus 5%, but if cell F13 = "TZZ" then I want it to minus 7%, otherwise I want it just calc as shown in the first formula above.

Is this even possible? I have been struggling on this for days. :(


1697582873378.png
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
You could try something like this
Excel Formula:
=LET(a,MAX(AJ13,AM13),IF(a=0,"",IF(F13="A4H",0.95*a,IF(F13="TZZ",0.93*a,a))))
 
Upvote 0
Solution

Forum statistics

Threads
1,216,027
Messages
6,128,367
Members
449,444
Latest member
abitrandom82

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