Looking for an faster formula to calculate the weeknum for fiscal year

Norty

New Member
Joined
Dec 27, 2017
Messages
6
Hi all,

I have an formula today that I use to calculate the FY week number. The problem is that with my table, 80k+ rows and expanding, this is a very slow process.

Does anyone have an suggestion on how to speed up this formula?

Code:
[COLOR=#333333]=WEEKNUM(A2,1)-26+IF(MONTH(A2)<7,52,0)[/COLOR]
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
If you copy paste special > values the first 78K, then you formula only needs to work on the current 2K odd as the rest will be static
 
Upvote 0
If you copy paste special > values the first 78K, then you formula only needs to work on the current 2K odd as the rest will be static

That was interesting.. I see how this should speed everything up, but it didn't. Even when I changed all 80k rows to be static the sheet(that consist of a big table) still takes a long time to calculate every time I make a change.

So the problem must be with the formulas that refers to the this table. I'll have to look into them instead.

Thanks for your help =)
 
Upvote 0
so now look for volatile functions, things that recalculate every time you update like NOW() that supports other cells
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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