Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Help needed with a formula for dates in excel 2007

I need help with a formula for dates in excel 2007

If Pay Date is from the 1st to the 15th of the month then Remit Date would
be the 25th of the same month.
If Pay Date is after the 15th, the Remit Date would be the 10th of the
following month.

a1= Pay Date b1=Remit Date
01-04-10 01-25-10
01-18-10 02-10-10
02-15-10 02-25-10
02-26-10 03-10-10, etc

This is what I have so far, it works for Jan, but not Feb or Mar.

=IF(Wages_2010[[#This Row],[Pay
Date]]<=DATE(2010,1,15),DATE(2010,1,25),DATE(2010,MONTH( 1)+1,10))

I need something that will work for the entire year, without having to
change the formula every month.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Help needed with a formula for dates in excel 2007

=DATE(YEAR(A1),MONTH(A1)+(DAY(A1)15),10+(DAY(A1)< 16)*15)


"dloc" wrote:

I need help with a formula for dates in excel 2007

If Pay Date is from the 1st to the 15th of the month then Remit Date would
be the 25th of the same month.
If Pay Date is after the 15th, the Remit Date would be the 10th of the
following month.

a1= Pay Date b1=Remit Date
01-04-10 01-25-10
01-18-10 02-10-10
02-15-10 02-25-10
02-26-10 03-10-10, etc

This is what I have so far, it works for Jan, but not Feb or Mar.

=IF(Wages_2010[[#This Row],[Pay
Date]]<=DATE(2010,1,15),DATE(2010,1,25),DATE(2010,MONTH( 1)+1,10))

I need something that will work for the entire year, without having to
change the formula every month.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Help needed with a formula for dates in excel 2007

Perfect, thank you!

"Teethless mama" wrote:

=DATE(YEAR(A1),MONTH(A1)+(DAY(A1)15),10+(DAY(A1)< 16)*15)


"dloc" wrote:

I need help with a formula for dates in excel 2007

If Pay Date is from the 1st to the 15th of the month then Remit Date would
be the 25th of the same month.
If Pay Date is after the 15th, the Remit Date would be the 10th of the
following month.

a1= Pay Date b1=Remit Date
01-04-10 01-25-10
01-18-10 02-10-10
02-15-10 02-25-10
02-26-10 03-10-10, etc

This is what I have so far, it works for Jan, but not Feb or Mar.

=IF(Wages_2010[[#This Row],[Pay
Date]]<=DATE(2010,1,15),DATE(2010,1,25),DATE(2010,MONTH( 1)+1,10))

I need something that will work for the entire year, without having to
change the formula every month.

Thanks

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
Help needed with creating a Formula in Excel 2007 please ? Gerry1234567 Excel Worksheet Functions 11 December 9th 08 09:26 PM
Formula needed to calculate difference between Two dates and times Abee New Users to Excel 2 September 18th 08 06:48 AM
Formula Needed to Compare Dates and return a running total Cmonroe Excel Worksheet Functions 3 June 8th 06 08:54 PM
FORMULA NEEDED TO COUNT DAYS IN EXCEL BETWEEN DATES Rhonda1 Excel Worksheet Functions 4 January 31st 06 12:13 AM
formula needed to track dates event happened ilmeaz Excel Worksheet Functions 1 November 15th 05 02:52 AM


All times are GMT +1. The time now is 12:56 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"