Counting Formula Needed

BrettOlbrys1

Board Regular
Joined
May 1, 2018
Messages
128
Office Version
  1. 365
Platform
  1. Windows
Hello again. I'm back for another question on this same topic. I want to assign the number "1" to the CURRENT WEEK and it needs to be a WHOLE number, not a number with decimals because I am looking for an exact match to "1". The problem I have run into is that I have a range of weekly dates starting from 1/4/21 through 1/2/23 (each week range is 7 days greater than the previous week) and it is assigning "1" to the week of 2/1/21, not 1/31/22. The formula I have is:

=IFERROR(CHOOSE((WEEKNUM(CY5,2)-WEEKNUM(TODAY(),2)+2),0,1,2),"")

Row 5 contains the range of dates.

I tried another formula, but it gives me decimals across the assigned numbers, but I need whole numbers to do a match: =(CY5-TODAY())/7+1

What formula do I need that will assign a "1" to the current week where the "1" or whatever number (-1, 0, 1, 2, 3, etc.) will be WHOLE numbers?

Thanks

Brett
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
It's not clear what you mean by "current week", as your two formulae aren't consistent.

But perhaps this, where TODAY() is Thurs 3 Feb?

Cell Formulas
RangeFormula
B2:B26B2=1+INT((A2-TODAY())/7)
A3:A26A3=1+A2
 
Upvote 0

Forum statistics

Threads
1,214,629
Messages
6,120,630
Members
448,973
Latest member
ChristineC

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