Dummy Excel

Well-known Member
Joined
Sep 21, 2005
Messages
1,004
Office Version
  1. 2019
  2. 2010
  3. 2007
Platform
  1. Windows
Hi All,
I have a formula which has nearly 2yrs worth of data
Code:
=WEEKNUM(TODAY())

issue i have is that means there are nearly 2 of every week. How can i determine in my formula to look at current year only?


thanks
Samuel
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Details will depend but something along the lines of:

=year(today())=year(cell_with_a_date_in)

?
 
Upvote 0
sorry i shouldve been a little clearer with my OP
i need the year and weeknumber to be incorporated for my formula
so my actual formula is;
Code:
=COUNTIFS(Historical!$A:$A,A9,Historical!$I:$I,WEEKNUM(TODAY())-1)

hope that makes more sense
 
Upvote 0
Which column on the "Historical" sheet contains the year or date?
 
Upvote 0
column E in Historical has the date ie dd/mm/yyyy
thanks
Sam
 
Upvote 0
How about
=COUNTIFS(Historical!$A:$A,A9,Historical!$I:$I,WEEKNUM(TODAY())-1,Historical!$E:$E,">="&DATE(YEAR(TODAY()),1,1),Historical!$E:$E,"<="&DATE(YEAR(TODAY()),12,31))
 
Upvote 0

Forum statistics

Threads
1,214,924
Messages
6,122,293
Members
449,077
Latest member
Rkmenon

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