Is there a formulae which will work out what weeks numbers..

bsnapool

Active Member
Joined
Jul 10, 2006
Messages
452
go into the month? For e.g.

If I had a numbers from 1 - 52, this would work out what month this should go into?

E.g

1 > Jan
2 > Jan
3 > Jan
4 > Jan
5 > Feb

Hope this explains it enough, thanks in advance for your help..

Andrew
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
This seems to work, but you should fully test it before implementing it...

Code:
=DATE(YEAR(TODAY()),ROUNDUP(A1*12/52,0),1)

EDIT: You'll need to format the cells containing the formulae as "mmm" or "mmmm"
 
Upvote 0
There is an important thing you'll have to decide:

How do you decide which month a split week goes with? (e.g. if your week starts on Sunday, the 5th week will be 1/29 through 2/4. Does this go with January or February?)

Maybe you associate each week with the month of the Friday of that week or something?
 
Upvote 0
Thanks for both of your replies... Sorry late replying but only just in.

njimack

This formulae does work, is there anyway to do this from the 1st weekending sunday in April? Also is there any way instead of referring to A1,A2,A3 etc to do this by the tab number 1,2,3,4,5, etc???

Oaktree

This is a very good comment, but I was going to do this once I had the formulae.

I am trying to get the formulae to work from the financial year Arp - Apr

For week ending Sunday, I know that there will be some disprepancies, but I think just a rounded figure will be good enough...

Any other suggestions??
 
Upvote 0
Assuming your month would go with the month of Wednesday of the week, try:

=TEXT("1/4/2006"+(A1-1)*7,"mmmm") where A1 has a number between 1 and 52 (1/4/2006 was the first Wednesday of 2006).

Choose 1/5/2006 for the cutoff to be Thursday, etc.

For your fiscal year, use whatever date is the first Wednesday or whatever day and follow the same logic.
 
Upvote 0
Assuming your tab is named just the number (as opposed to "week 52" or something like that), try:

=TEXT("1/4/2006"+(REPLACE(CELL("filename",A1),1,SEARCH("]",CELL("filename",A1)),"")-1)*7,"mmmm")
 
Upvote 0

Forum statistics

Threads
1,213,531
Messages
6,114,172
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top