Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I create a formula that will do YTD calculations?

I am trying to determine how to write a formula that allows me to calculate
YTD earnings but I cannot figure how to get the year-to-date to work. I know
how to get the number of weeks from one date to another (for example
8/1/05-4/12/06 = 255 days or 36.43 weeks). My issue is that I want the
formula to count only the weeks YTD 1/1/06-4/12/06. I want the formula to
know that if my begin date is in a prior year to only look at the current
years weeks.

Any assistance would be appreciated. I cannot seem to find an easy solution.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I create a formula that will do YTD calculations?


hi!

assuming that the start date is in A1 & end date is in B1, enter
in C1: =(B1-A1)/7 and format C1 as Number.

-via135




Compliance Crazed Wrote:
I am trying to determine how to write a formula that allows me t
calculate
YTD earnings but I cannot figure how to get the year-to-date to work.
know
how to get the number of weeks from one date to another (for example
8/1/05-4/12/06 = 255 days or 36.43 weeks). My issue is that I want the
formula to count only the weeks YTD 1/1/06-4/12/06. I want the formul
to
know that if my begin date is in a prior year to only look at th
current
years weeks.

Any assistance would be appreciated. I cannot seem to find an eas
solution


--
via13
-----------------------------------------------------------------------
via135's Profile: http://www.excelforum.com/member.php...fo&userid=2672
View this thread: http://www.excelforum.com/showthread.php?threadid=52744

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 510
Default How do I create a formula that will do YTD calculations?

Hi,

With the same assumptions as via135, in cell C1 :
=IF(YEAR(A1)<YEAR(B1),(B1-(DATE(YEAR(B1),1,1)))/7,(B1-A1)/7)

HTH
Carim

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
Calculations formula Eric Svatik Excel Discussion (Misc queries) 6 September 25th 07 10:12 PM
Formula for Asset calculations Frances C[_2_] Excel Worksheet Functions 0 August 25th 07 10:00 PM
Multiple Calculations in a Formula kjguillermo Excel Discussion (Misc queries) 2 October 11th 06 01:29 AM
Calculations Using the =IF formula ChesireCat Excel Worksheet Functions 3 March 3rd 05 03:13 AM
Countif Formula with 2 calculations Belinda Excel Discussion (Misc queries) 7 November 26th 04 02:55 PM


All times are GMT +1. The time now is 03:58 PM.

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

About Us

"It's about Microsoft Excel"