#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default Should be easy

=IF(AND(A4="4/12/2006",A4<="9/12/2006"),"49")

This should show next week as 'Week 49' but doesn't. I want to add another
three IF to this string so that I can get the month sorted out in Week order?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Should be easy

Hi

Why not just the weeknum function?
=WEEKNUM(A1)

For this to work you need Analysis Toolpak. ToolsAddinsClick Analysis
Toolpak.

--
Regards

Roger Govier


"Michell Major" wrote in
message ...
=IF(AND(A4="4/12/2006",A4<="9/12/2006"),"49")

This should show next week as 'Week 49' but doesn't. I want to add
another
three IF to this string so that I can get the month sorted out in Week
order?



  #3   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Should be easy

=IF(AND(A4="4/12/2006",A4<="9/12/2006"),"49")

Try it as:
=IF(AND(A4=--"4/12/2006",A4<=--"9/12/2006"),49)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Michell Major" wrote:
=IF(AND(A4="4/12/2006",A4<="9/12/2006"),"49")

This should show next week as 'Week 49' but doesn't. I want to add another
three IF to this string so that I can get the month sorted out in Week order?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,069
Default Should be easy

Have you looked the Weeknum function?

"Michell Major" wrote:

=IF(AND(A4="4/12/2006",A4<="9/12/2006"),"49")

This should show next week as 'Week 49' but doesn't. I want to add another
three IF to this string so that I can get the month sorted out in Week order?

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 329
Default Should be easy

Hi Michell Major,

=INT((A4-DATE(YEAR(A4),1,1))/7+1)
returns '49' for "3/12/2006"=A4<="9/12/2006" - a span of 7 days/1 week.

I don't understand the bit about the month, though.

Cheers
PS: 31/12/2006 will be the 1st day in week 53.

--
macropod
[MVP - Microsoft Word]


"Michell Major" wrote in message
...
=IF(AND(A4="4/12/2006",A4<="9/12/2006"),"49")

This should show next week as 'Week 49' but doesn't. I want to add

another
three IF to this string so that I can get the month sorted out in Week

order?




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default Should be easy

max thanks, but see Roger's answer too. Regards


"Max" wrote:

=IF(AND(A4="4/12/2006",A4<="9/12/2006"),"49")


Try it as:
=IF(AND(A4=--"4/12/2006",A4<=--"9/12/2006"),49)
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Michell Major" wrote:
=IF(AND(A4="4/12/2006",A4<="9/12/2006"),"49")

This should show next week as 'Week 49' but doesn't. I want to add another
three IF to this string so that I can get the month sorted out in Week order?

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 34
Default Should be easy

Roger

Fantastic!

Dan

"Roger Govier" wrote:

Hi

Why not just the weeknum function?
=WEEKNUM(A1)

For this to work you need Analysis Toolpak. ToolsAddinsClick Analysis
Toolpak.

--
Regards

Roger Govier


"Michell Major" wrote in
message ...
=IF(AND(A4="4/12/2006",A4<="9/12/2006"),"49")

This should show next week as 'Week 49' but doesn't. I want to add
another
three IF to this string so that I can get the month sorted out in Week
order?




  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 329
Default Should be easy

Hi Michell Major,

One thing to be aware of if other people are likely to use this workbook on
other systems is that they'll need to have the Analysis Toolpak installed
too, otherwise the WEEKNUM function won't work for them and they'll get no
warnings about it, either.

Cheers

--
macropod
[MVP - Microsoft Word]


"Michell Major" wrote in message
...
Roger

Fantastic!

Dan

"Roger Govier" wrote:

Hi

Why not just the weeknum function?
=WEEKNUM(A1)

For this to work you need Analysis Toolpak. ToolsAddinsClick Analysis
Toolpak.

--
Regards

Roger Govier


"Michell Major" wrote in
message ...
=IF(AND(A4="4/12/2006",A4<="9/12/2006"),"49")

This should show next week as 'Week 49' but doesn't. I want to add
another
three IF to this string so that I can get the month sorted out in Week
order?






  #9   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Should be easy

No prob. Go with Roger's much more apt response. Me?, was just focusing on
getting your attempt to work "as-is" <g
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Michell Major" wrote in message
...
max thanks, but see Roger's answer too. Regards



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
Should be a easy How do I Dan Hale New Users to Excel 9 August 29th 06 08:53 AM
easy way to delete all rows with no text in them? george edgar New Users to Excel 2 May 13th 06 07:54 PM
Easy question? Page numbers ATC Excel Discussion (Misc queries) 1 February 1st 06 04:27 AM
OsCommerce - Easy Populate Script - CSV/TXT Conversion Problem. PriceTrim Excel Discussion (Misc queries) 3 July 5th 05 05:27 PM
new user with easy question? not easy for me speakeztruth New Users to Excel 5 June 3rd 05 09:40 PM


All times are GMT +1. The time now is 11:27 AM.

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"