Excel help please

Associate
Joined
6 Feb 2004
Posts
1,333
Location
Toon
Hi there

I think this should be fairly simple if you know how (hope so)

I am just trying to make a simple spreadsheet to keep track of the families finances. As part of this I want to be able to calculate how many days until payday, and divide my disposable income by these number of days, so we know how much we have per day.

Bearing in mind I get paid on the 25th of the month, how can I get excel to do this? So for instance, if it is the 29th of Nov, I want Excel to be able to work out that it is 26 days until payday.

Thanks in advance :)
 
Changed my mind, think you may need this one in case your in december as it'll try to create 13 months:

=IF(MONTH(TODAY()=12),IF(DAY(TODAY())>=25,DATE(YEAR(TODAY())+1,MONTH(TODAY())-11,25)-TODAY(),DATE(YEAR(TODAY()),MONTH(TODAY()),25)-TODAY()),IF(DAY(TODAY())>=25,DATE(YEAR(TODAY()),MONTH(TODAY())+1,25)-TODAY(),DATE(YEAR(TODAY()),MONTH(TODAY()),25)-TODAY()))
 
Changed my mind, think you may need this one in case your in december as it'll try to create 13 months:

=IF(MONTH(TODAY()=12),IF(DAY(TODAY())>=25,DATE(YEAR(TODAY())+1,MONTH(TODAY())-11,25)-TODAY(),DATE(YEAR(TODAY()),MONTH(TODAY()),25)-TODAY()),IF(DAY(TODAY())>=25,DATE(YEAR(TODAY()),MONTH(TODAY())+1,25)-TODAY(),DATE(YEAR(TODAY()),MONTH(TODAY()),25)-TODAY()))

I don't think you need to allow for 13 months, Excel seems to automatically take care of it.

A simpler version

=DATE(YEAR(TODAY()),MONTH(TODAY())+(DAY(TODAY())>25),25)-TODAY()
 
Tomsk - That looks cool. One little error though. The first 25 is actually written "2 5" in your post. You need to remove the space and then it works. I just copied and pasted your formula into Excel and it didn't work. I wrote your formula out again myself and I think the space is the only problem, otherwise really cool. :)
 
I couldn't get rid of the space by editing my post. You can see another space has also appeared when I quoted wonder_lander's formula. I figured you woukd realise the extra space wasn't supposed to be there. ;)

I blame a forum bug. :p
 
Back
Top Bottom