Chain of IF conditions

riverspree16

New Member
Joined
Aug 6, 2021
Messages
5
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
Searching and trial and error have not gotten me anywhere, so hopefully, I can get a tip as to whether something is wrong with my formula, or if I'm using the wrong kind of formula(s) altogether. I'm working with a series of billing codes, and one has a different rate of calculation than the rest. This wouldn't be a big deal, except this code actually has two alternative rates - depending on the amount of money involved. I'll attach a picture trying to show what I mean, and write it out here. Sidenote, I can get two of them to work together, but nothing past that. Not sure if it's possible to have this sort of setup, but thanks in advance! :cool:

Excel Formula:
=IF(NOT(B2="AR"),C2*0.1, IF(AND(B2="AR",C2<=9999),C2*0.08, IF(AND(B2="AR",C2>=10000),C2*0.05)))

So if not an AR code, just times by 10%, if an AR code and its less than $10,000 times by 8%, and if an AR code and more than $10,000 times by 5%.

FormQues.JPG


TLDR: I want a way to combine these three:
Excel Formula:
=IF(NOT(B2="AR"),C2*0.1)
Excel Formula:
=IF(AND(B2="AR",C2<=9999),C2*0.08)
Excel Formula:
=IF(AND(B3="AR",C2>=10000),C2*0.05)
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Doesn't this do it more simply? Or is something missing in your info? Or Marcelo's which is even shorter.

Book1
ABC
21000CR10000
316AR200
430CR300
540CR400
6600AR12000
7720AR9000
Sheet1
Cell Formulas
RangeFormula
A2:A7A2=IF(B2<>"AR",C2*0.1,IF(C2<=9999,C2*0.08,C2*0.05))
 
Upvote 0
Doesn't this do it more simply? Or is something missing in your info? Or Marcelo's which is even shorter.

Book1
ABC
21000CR10000
316AR200
430CR300
540CR400
6600AR12000
7720AR9000
Sheet1
Cell Formulas
RangeFormula
A2:A7A2=IF(B2<>"AR",C2*0.1,IF(C2<=9999,C2*0.08,C2*0.05))
Theirs was shorter but this worked just as well in case anyone is looking for something similar ^^ Ty!
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,245
Members
448,555
Latest member
RobertJones1986

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