Condtional formulae

srinath tantri

New Member
Joined
Dec 10, 2017
Messages
12
Hello all,

I have a project to work on where i am unaware and failed to get output i am looking for. Can anyone look into the below description with condtions and help me with a code which would fulfil this.

For example:

B7 = Receipt amount
E7 = Claim amount.


Claim amount= If Receipt amount<=35000 then the value in Claim amount=100% of Receipt amount ---(Condtion 1)

=
If Receipt amount>35000 & Receipt amount<=90000
until 35000 the value in Claim amount=100% + Receipt amount>35000 & Receipt amount<=90000 =70% ----- (Condtion 2)

Ex : Receipt amount= 89000
Claim amount = 35000=100%
= 54000=70%
= 100%+70%
Claim amount = 35000(100%)+ 37800(70%)
= 72800


= If Receipt amount>90000 until 35000 the value in Claim amount=100% + Receipt amount>35000 & Receipt amount<=90000 =70%. ---(Conditon 3)
Receipt amount exceeding 90000=0%

Ex : Receipt amount = 95000
Claim amount = 35000 = 100%
= 55000 = 70%
= 5000 = 0%
= 100%+ 70% + 0%
Claim amount = 35000(100%)+ 38500 (70%) + 0
Claim amount = 73500

I woulld really appreciate in advance for helping me out in resolving this.

Thank you so much,

Hope you all have a great rest of the day!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Have a nice day ;)

=IF(B7<=35000,B7,IF(AND(B7>35000,B7<90000),0.7*(B7+15000),IF(B7>=90000,7350)))
 
Last edited by a moderator:
Upvote 0
I think the last number in the formula above should be 73500. However, an alternative to consider:


Book1
BCDE
6Receipt AmountClaim amount
72000020000
88900072800
99500073500
Sheet1
Cell Formulas
RangeFormula
E7=MIN($B7,35000)+MAX(0,MIN($B7-35000,55000))*0.7


WBD
 
Upvote 0
I think the last number in the formula above should be 73500. However, an alternative to consider:


Book1
BCDE
6Receipt AmountClaim amount
72000020000
88900072800
99500073500
Sheet1
Cell Formulas
RangeFormula
E7=MIN($B7,35000)+MAX(0,MIN($B7-35000,55000))*0.7


WBD

Oh yes, it is! Thanks ;) BTW, you formula looks nice and clean :)

Let me write down again:
=IF(B7<=35000,B7,IF(AND(B7>35000,B7<90000),0.7*(B7+15000),73500))
 
Last edited by a moderator:
Upvote 0
Took me a while to figure out that 70% of 50000 = 35000 ;-)

FWIW, you can drop the AND() in the second part since if B7 is not <=35000, it follows that it must be >35000:

Code:
=IF(B7<=35000,B7,IF(B7<=90000,0.7*(B7+15000),73500))

WBD
 
Upvote 0
Took me a while to figure out that 70% of 50000 = 35000 ;-)

FWIW, you can drop the AND() in the second part since if B7 is not <=35000, it follows that it must be >35000:

Code:
=IF(B7<=35000,B7,IF(B7<=90000,0.7*(B7+15000),73500))

WBD

Ahh you are right! :-D
 
Last edited by a moderator:
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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