I want to know the formula for a problem

krishco

New Member
Joined
Apr 8, 2015
Messages
2
Dear Sir,
I have a problem
I want a formula for the problem
Problem is: In a cell I have number of days (the days btw 2 dates)
Keeping that as reference:
I have 3 slabs:
slab 1 : if the days are more than 5 and less than or equal 10 the number of days should display in a cell next to the slab amount and multiply by slab 1 amount Rs.2000 ( the other 2 slabs should be zero)
Slab 2 : if the days are more than 10 and less than or equal 15 the number of days should display in a cell next to the 2nd slab and multiply by slab 2 amount Rs.8000 ( the other 2 slabs should be zero)
Slab 3 : if the days are more that 15 and less than or equal to 20 the number of days should display in a cell next to the 3rd slab and multiply by Slab 3 amount Rs.12000 ( the other 2 slabs should be zero)

Regards,
Murali Krishna
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Welcome to the Forum.

How's this?


Excel 2010
ABCDEFG
1# DaysSlab1 AmtSlab2 AmtSlab3 Amt
26100200,000200 300 
3121002001,600,000300
4201002003003,600,000
Sheet5
Cell Formulas
RangeFormula
C2=IF(AND($A2>5,$A2<=10),$B2*2000,"")
E2=IF(AND($A2>10,$A2<=15),$D2*8000,"")
G2=IF(AND($A2>14,$A2<=20),$F2*12000,"")
 
Last edited:
Upvote 0
Typing error. G2 should be: =IF(AND($A2>15,$A2<=20),$F2*12000,"")

By the way, you didn't say what should happen if the days were >20
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,818
Messages
6,181,151
Members
453,021
Latest member
Justyna P

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