13 periods in a year gives periode 14

DB73

Board Regular
Joined
Jun 7, 2022
Messages
102
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
  5. 2010
  6. 2007
Platform
  1. Windows
  2. Mobile
  3. Web
Hi peeps,

i'm trying to solve a little problem

i use the following formula to get a period number from a date;
VBA Code:
=ALS.FOUT(INTEGER(([@[Wk nr.]]+3)/4);"")

in english; =IFERROR(INT......

i want just 13 periods but it gives 14 :unsure::rolleyes:🤪

1673514071953.png


do i need another formula, maybe from colomn A, from a date, or just adjust my formula?

I've been searching for a couple of hours on the big www and tried other formulas which i could find, but it didn't seems to work for me.
maybe someone got a solution for me..

i think its because it gives week 53 in colomn J, which normaly should be week 52.
apparently some years have 53 weeks
i use this formula for that;
VBA Code:
=ISO.WEEKNUMMER([@Datum])

i also tried ;
VBA Code:
=WEEKNUMMER([@Datum];1)
1673514790872.png

then Januari is correct but December gives still period 14

thanks in advance
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Try This
Excel Formula:
=ALS.FOUT(INTEGER(([@[Wk nr.]]-1+3)/4);"")
 
Upvote 0
What period should wk53 be?
If it should be 13 then how about
Excel Formula:
=MIN(INT(([@[Wk nr.]]-1)/4)+1,13)
 
Upvote 0

Forum statistics

Threads
1,215,641
Messages
6,125,986
Members
449,276
Latest member
surendra75

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