if statement - Challenging Formula in excel to calculate successive remainder -


i trying find formula work out allowance amount based on time has taken task completed.

here example, in cell:

a1: have allowance value of 150 (which not change)

b1: have time has taken task performed

c1: want formula return value based on criteria below

criteria 1: 6hrs or less return 20% of allowance =if(and(b1>=0.01,b1<=5.99),a1*0.2,"")

criteria 2: between 6hrs , 12hrs, return 50% of allowance =if(and(b1>=6,b1<=11.99),a1*0.5,"")

criteria 3: between 12hrs , 24hrs, return 100% of allowance =if(and(b1>=12,b1<=23.99),a1*1,"")

criteria 4: first 24hrs, 100% of allowance , each successive 12hrs add 50% of allowance (on top of 100% first 24hrs)

if possible 1 formula cover criterias c1 cell. can see, have formula first 3 criterias not last one.

it great if can help. many in advance :)

ab

i replaced false condition in each if statement next criteria. if first 3 criteria false assumes on 24 hours , runs criteria 4.

=if(and(b1>=0.01,b1<=5.99),a1*0.2, if(and(b1>=6,b1<=11.99),a1*0.5, if(and(b1>=12,b1<=23.99),a1*1, a1*1+a1*roundup((b1-24)/12,0)/2))))


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -