Sum with condition

dado6612

Well-known Member
Joined
Dec 4, 2009
Messages
591
Hi to all
I made a table which from users inputs calculate daily growth of skill.
Each 250 points he get reward
I made a formula which will say is 250 points reached by this:
=IF(ROUNDUP(A1/250;0)>ROUNDUP(A2/250;0);"Yes";"No")
(maybe there is simpler formula)

Now I want in column B number of days between two rewards
ex.
Daily growth is 16.5
day 1 - 16.5 skill points
day 2 - 33
.....
day 15 - 247.5
day 16 - 264 - Day of reward
next reward is at day 31 and so on
Basically I want in same row to show number of day passed since last reward till next one
so, in B17 it would be 16
B32 15 and so on..

Hope you understand and know how to help
Thanks
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
You are asking something very confusing here ..."show number of day passed since last reward till next one" ... is that :

a) show number of days passed since last reward

or

b) show number of days till next reward

?
 
Upvote 0
a) show number of days passed since last reward
But now you gave me idea to use b) show number of days till next reward also
if you can to help in both cases
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,834
Members
452,947
Latest member
Gerry_F

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