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
 

Some videos you may like

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
Joined
Jun 17, 2005
Messages
7,764
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
Joined
Jun 20, 2002
Messages
7,984
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
Joined
Jul 10, 2006
Messages
452
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
Joined
Jun 20, 2002
Messages
7,984

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
Joined
Jul 10, 2006
Messages
452
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
Joined
Jun 20, 2002
Messages
7,984

ADVERTISEMENT

What are your tabs named?
 

bsnapool

Active Member
Joined
Jul 10, 2006
Messages
452
My tabs are named 1,2,3, up intil 51 to indicate every week of the year.
 

bsnapool

Active Member
Joined
Jul 10, 2006
Messages
452
My tabs are named 1,2,3, up intil 52 to indicate every week of the year.
 

Oaktree

MrExcel MVP
Joined
Jun 20, 2002
Messages
7,984
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")
 

Watch MrExcel Video

Forum statistics

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

This Week's Hot Topics

Top