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

#### bsnapool

##### Active Member
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

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.

#### njimack

##### Well-known Member
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"

#### Oaktree

##### MrExcel MVP
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?

#### bsnapool

##### Active Member
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??

#### Oaktree

##### MrExcel MVP

ADVERTISEMENT

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.

#### bsnapool

##### Active Member
Oaktree, thanks for your reply..

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???

Any ideas on this?

#### Oaktree

##### MrExcel MVP

ADVERTISEMENT

What are your tabs named?

#### bsnapool

##### Active Member
My tabs are named 1,2,3, up intil 51 to indicate every week of the year.

#### bsnapool

##### Active Member
My tabs are named 1,2,3, up intil 52 to indicate every week of the year.

#### Oaktree

##### MrExcel MVP
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")

Replies
2
Views
34
Replies
2
Views
44
Replies
1
Views
35
Replies
1
Views
33
Replies
3
Views
30

Threads
1,108,624
Messages
5,523,966
Members
409,547
Latest member
AW2020