corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Excel Help


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Excel Help
AndyKent
Member

Registered: 3rd Sep 05
User status: Offline
   5th Oct 07 at 18:43   View User's Profile U2U Member Reply With Quote

I need to get excel to calculate the number of months remaining from today, to a given month in the future. Anyone know how? I've searched the functions on Excel and got confused and google wasn't much help either.

Anyone know?
Ian
Site Administrator

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Online
5th Oct 07 at 21:02   View Garage View User's Profile U2U Member Reply With Quote

MONTH() will give you month number, ie. Jan is 1, Feb is 2.

YEAR() gives you year as four digits, which you could subtract from YEAR(NOW()) and multiply it by 12 and add it to your MONTH() result.

You got example data?
AndyKent
Member

Registered: 3rd Sep 05
User status: Offline
6th Oct 07 at 10:07   View User's Profile U2U Member Reply With Quote

Not really got any data, just a future date but I kinda I got round it in a complicated way with....

=ROUND(((DATE(2008,9,1)-TODAY())/30),0)

That equation works out the number of days since Epoch for today and september the 1st next year, takes one away from the other to give the number of days between today and next september.

It then divides the remaining days by 30 to get 11ish - the ROUND() sorts this into a whole number.

At the moment thats correct as there are eleven whole months left until next september but I think its a bit un-accurate because of the division by 30 as not every month has 30 obviously....
AndyKent
Member

Registered: 3rd Sep 05
User status: Offline
6th Oct 07 at 10:22   View User's Profile U2U Member Reply With Quote

Crap, just realised what you meant.

So I do....

=(future month+(12*number of years)-current month)

so for this months to Sept 08 it would be...

=((9+(12*1))-10)

which is written as

=((MONTH(F8)+(12*(YEAR(F8)-YEAR(TODAY())))-MONTH(TODAY())))

Got there eventually, cheers

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
Help needed again ...Trotty can you help Red_Corsa Geek Day 17 1677
21st Mar 03 at 00:15
by Red_Corsa
 
Any MS Excel experts Steve Geek Day 11 1299
4th Jun 04 at 14:19
by blebo
 
is there a program that...... chris_uk Geek Day 6 1902
16th Jun 05 at 00:47
by Dan B
 
Excel help and making my life easier Melville Geek Day 9 976
26th Oct 06 at 14:17
by Melville
 
Microsoft Excel Kathryn W Geek Day 7 1279
3rd Aug 07 at 12:12
by RyanSxi
 

Corsa Sport » Message Board » Off Day » Geek Day » Excel Help 29 database queries in 0.0092599 seconds