Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
salooha
 
Posts: n/a
Default Rolling up to the correct Month Dilemma


Hi there,
I have been trying out different methods for this dilemma for a long
time, I am trying to create a logic that can look at a billing start
cycle and billing end cycle dates and compare the days between the two
then assign a month based on the one with the most days.

here is an example, lets say the billing cycle starts 12/18/05 and ends
1/19/06, now the logic should look at this and determine that it is the
month of Jan 06. I created the formula below:


Code:
--------------------
if(day(eomonth(startcycleday,0)-day(startcycleday)day(endcycleday),month(startcyc le),month(endcycle))
--------------------


now the problem I faced, a flaw in this formula is suppose I have a
cycle starting 11/30/2005 and ending on 1/1/2006, the logic above will
look at this and determine that it is the month of january 2006 however
this is not true, it should be the month of december. also say the
number of days in the start date and the numbers of days in the end
date are equal, the logic will probably choose whichever month.

my head has been spinning for the last few months.

any help would be greatly appreciated.

thanks a lot, you can also contact me at


--
salooha


------------------------------------------------------------------------
salooha's Profile:
http://www.excelforum.com/member.php...o&userid=14612
View this thread: http://www.excelforum.com/showthread...hreadid=510783

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula for calculating a rolling 12 month average in excel? Jeff Excel Discussion (Misc queries) 1 December 9th 05 09:11 PM
How do I set up 12-month rolling month cells in excel? jbh Excel Discussion (Misc queries) 2 November 30th 05 08:12 PM
3 month rolling chart Shanin Charts and Charting in Excel 4 September 2nd 05 06:40 PM
Month Year Date Format Jamie Excel Worksheet Functions 2 February 7th 05 06:43 PM
How do I set up a rolling spread sheet for a six month roll out? Mitutoyo:) Excel Worksheet Functions 1 December 2nd 04 03:44 PM


All times are GMT +1. The time now is 04:27 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"