Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Weekending Date w/Less Than 3 days Assoc. with Prior Month

I'm using Excel 2003. I have a table of week ending dates for each week of
the year. Assume the week ends on Friday of each week. I'd like a formula
to associate each week ending date with a month of the year. But if the last
week of the month has 4 days or more, count it in the current or ending
month. If the last week has 3 or less days associate it with the upcoming
month.

For instance, week ending Friday 3-Jul-2009, has four days in June and
should be classified as a June week. Week ending 4-Sep-2009 should be
classified in September. I've researched cpearson.com and many of the
suggested functions with no luck so far.

Many Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Weekending Date w/Less Than 3 days Assoc. with Prior Month

Not real clear what you want.

This will return the month name based on your criteria.

A1 = some date

=TEXT(IF(DAY(A1)<=3,A1-DAY(A1),A1),"mmmm")

--
Biff
Microsoft Excel MVP


"MoneyMan" wrote in message
...
I'm using Excel 2003. I have a table of week ending dates for each week
of
the year. Assume the week ends on Friday of each week. I'd like a
formula
to associate each week ending date with a month of the year. But if the
last
week of the month has 4 days or more, count it in the current or ending
month. If the last week has 3 or less days associate it with the upcoming
month.

For instance, week ending Friday 3-Jul-2009, has four days in June and
should be classified as a June week. Week ending 4-Sep-2009 should be
classified in September. I've researched cpearson.com and many of the
suggested functions with no luck so far.

Many Thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Weekending Date w/Less Than 3 days Assoc. with Prior Month

Please excuse the lack of clarity in my question. However, you hit the nail
exactly on the head. The formula does exactly what is required.

"T. Valko" wrote:

Not real clear what you want.

This will return the month name based on your criteria.

A1 = some date

=TEXT(IF(DAY(A1)<=3,A1-DAY(A1),A1),"mmmm")

--
Biff
Microsoft Excel MVP


"MoneyMan" wrote in message
...
I'm using Excel 2003. I have a table of week ending dates for each week
of
the year. Assume the week ends on Friday of each week. I'd like a
formula
to associate each week ending date with a month of the year. But if the
last
week of the month has 4 days or more, count it in the current or ending
month. If the last week has 3 or less days associate it with the upcoming
month.

For instance, week ending Friday 3-Jul-2009, has four days in June and
should be classified as a June week. Week ending 4-Sep-2009 should be
classified in September. I've researched cpearson.com and many of the
suggested functions with no luck so far.

Many Thanks




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Weekending Date w/Less Than 3 days Assoc. with Prior Month

Good guess on my part! Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"MoneyMan" wrote in message
...
Please excuse the lack of clarity in my question. However, you hit the
nail
exactly on the head. The formula does exactly what is required.

"T. Valko" wrote:

Not real clear what you want.

This will return the month name based on your criteria.

A1 = some date

=TEXT(IF(DAY(A1)<=3,A1-DAY(A1),A1),"mmmm")

--
Biff
Microsoft Excel MVP


"MoneyMan" wrote in message
...
I'm using Excel 2003. I have a table of week ending dates for each
week
of
the year. Assume the week ends on Friday of each week. I'd like a
formula
to associate each week ending date with a month of the year. But if
the
last
week of the month has 4 days or more, count it in the current or ending
month. If the last week has 3 or less days associate it with the
upcoming
month.

For instance, week ending Friday 3-Jul-2009, has four days in June and
should be classified as a June week. Week ending 4-Sep-2009 should be
classified in September. I've researched cpearson.com and many of the
suggested functions with no luck so far.

Many Thanks






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default Weekending Date w/Less Than 3 days Assoc. with Prior Month

Hello,

Good guess, Biff, but why not just
=TEXT(A1-3,"mmmm")
then :-)

Regards,
Bernd


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Weekending Date w/Less Than 3 days Assoc. with Prior Month

why not just
=TEXT(A1-3,"mmmm")


Yeah, that'll work.

--
Biff
Microsoft Excel MVP


"Bernd P" wrote in message
...
Hello,

Good guess, Biff, but why not just
=TEXT(A1-3,"mmmm")
then :-)

Regards,
Bernd



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default Weekending Date w/Less Than 3 days Assoc. with Prior Month

Hello,

=MONTH(A1)-(DAY(A1)<4)
will give you the month as a number.

Regards,
Bernd
  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default Weekending Date w/Less Than 3 days Assoc. with Prior Month

=MONTH(A1-3)
seems to be better.
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
Count Days more than 180 days prior to today Gregory Day Excel Worksheet Functions 4 March 28th 08 10:16 PM
Dates - Need to display date one month prior to user-entered date brettopp Excel Worksheet Functions 13 December 3rd 07 05:58 PM
How to calculate a date: first day of the month after 60 days Claudia Excel Discussion (Misc queries) 12 June 28th 07 05:10 AM
Weekending date issue mgkaam Excel Discussion (Misc queries) 1 January 31st 07 06:46 AM
Date arithmetic: adding 1 month to prior end of month date manxman Excel Worksheet Functions 2 July 14th 06 09:29 PM


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