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

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

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
8,015
Office Version
  1. 365
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
8,015
Office Version
  1. 365

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
8,015
Office Version
  1. 365

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
8,015
Office Version
  1. 365
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")
 

Forum statistics

Threads
1,141,220
Messages
5,705,091
Members
421,378
Latest member
CarlosDuran

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
Top