Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Aviator
 
Posts: n/a
Default Back Dating (Counting Backwards)

I was trying to use the following formula to come up with a date 40 work days
prior to the date specified in cell AN2. The following formula works great
except I work 4X10's (Mon - Thur) and this formaula is counting Friday.

=IF(AN2="","",WORKDAY(AN2+(WEEKDAY(AN2)=5),-40,holidays))

Is there a variation of this formula that will do the same thing except just
count Mon thru Fri?

Or is there a better formula that will take care of my problem?

Thank you,

Aviator
  #2   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Aviator,

Simplest would be to add every Friday to your list of holidays....

HTH,
Bernie
MS Excel MVP

"Aviator" wrote in message
...
I was trying to use the following formula to come up with a date 40 work

days
prior to the date specified in cell AN2. The following formula works great
except I work 4X10's (Mon - Thur) and this formaula is counting Friday.

=IF(AN2="","",WORKDAY(AN2+(WEEKDAY(AN2)=5),-40,holidays))

Is there a variation of this formula that will do the same thing except

just
count Mon thru Fri?

Or is there a better formula that will take care of my problem?

Thank you,

Aviator



  #3   Report Post  
Aviator
 
Posts: n/a
Default

That is not going to work in this situation. Do you have any other ideas?



"Bernie Deitrick" wrote:

Aviator,

Simplest would be to add every Friday to your list of holidays....

HTH,
Bernie
MS Excel MVP

"Aviator" wrote in message
...
I was trying to use the following formula to come up with a date 40 work

days
prior to the date specified in cell AN2. The following formula works great
except I work 4X10's (Mon - Thur) and this formaula is counting Friday.

=IF(AN2="","",WORKDAY(AN2+(WEEKDAY(AN2)=5),-40,holidays))

Is there a variation of this formula that will do the same thing except

just
count Mon thru Fri?

Or is there a better formula that will take care of my problem?

Thank you,

Aviator




  #4   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Aviator,

The only other alternative is to roll your own function using VBA. But why
can't you add Fridays to your list of holidays? You could make up your own
list that includes holidays and name it something else.....

HTH,
Bernie
MS Excel MVP

"Aviator" wrote in message
...
That is not going to work in this situation. Do you have any other ideas?



"Bernie Deitrick" wrote:

Aviator,

Simplest would be to add every Friday to your list of holidays....

HTH,
Bernie
MS Excel MVP

"Aviator" wrote in message
...
I was trying to use the following formula to come up with a date 40

work
days
prior to the date specified in cell AN2. The following formula works

great
except I work 4X10's (Mon - Thur) and this formaula is counting

Friday.

=IF(AN2="","",WORKDAY(AN2+(WEEKDAY(AN2)=5),-40,holidays))

Is there a variation of this formula that will do the same thing

except
just
count Mon thru Fri?

Or is there a better formula that will take care of my problem?

Thank you,

Aviator






  #5   Report Post  
Myrna Larson
 
Posts: n/a
Default

Assuming you mean "just count Mon thru THU" instead of "Mon thru Fri", one
quick fix would be to simply add all of the Fridays to your list of holidays.
Then the formula is just

=IF(AN2="","",WORKDAY(AN2,-40,Holidays))

Otherwise, you would need a custom VBA function, which will definitely
recalculate more slowly. That could be a concern if you use the function a lot
on the worksheet.

On Wed, 9 Feb 2005 09:05:14 -0800, "Aviator"
wrote:

I was trying to use the following formula to come up with a date 40 work days
prior to the date specified in cell AN2. The following formula works great
except I work 4X10's (Mon - Thur) and this formaula is counting Friday.

=IF(AN2="","",WORKDAY(AN2+(WEEKDAY(AN2)=5),-40,holidays))

Is there a variation of this formula that will do the same thing except just
count Mon thru Fri?

Or is there a better formula that will take care of my problem?

Thank you,

Aviator




  #6   Report Post  
Myrna Larson
 
Posts: n/a
Default

Exactly WHY won't it work? Holidays is simply a list of days off in addition
to Saturdays and Sundays.

On Wed, 9 Feb 2005 09:43:05 -0800, "Aviator"
wrote:

That is not going to work in this situation. Do you have any other ideas?



"Bernie Deitrick" wrote:

Aviator,

Simplest would be to add every Friday to your list of holidays....

HTH,
Bernie
MS Excel MVP

"Aviator" wrote in message
...
I was trying to use the following formula to come up with a date 40 work

days
prior to the date specified in cell AN2. The following formula works

great
except I work 4X10's (Mon - Thur) and this formaula is counting Friday.

=IF(AN2="","",WORKDAY(AN2+(WEEKDAY(AN2)=5),-40,holidays))

Is there a variation of this formula that will do the same thing except

just
count Mon thru Fri?

Or is there a better formula that will take care of my problem?

Thank you,

Aviator





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
From HTML back to XLS? Dtruelove Excel Discussion (Misc queries) 2 February 9th 05 01:09 PM
Change cell back color on click Dave Peterson Excel Discussion (Misc queries) 0 January 24th 05 10:50 PM
Excel 2003 back to Excel 2002 Pete Carr Excel Discussion (Misc queries) 3 December 27th 04 08:11 AM
Outlook 2003 demo back to Outlook XP Pete Carr Excel Discussion (Misc queries) 1 December 22nd 04 08:04 AM
Roll back to previous date Jay Excel Worksheet Functions 2 December 3rd 04 03:35 PM


All times are GMT +1. The time now is 08:34 AM.

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"