formula to display Last Week, This Week

pcorpz

Active Member
Joined
Oct 29, 2004
Messages
324
=IF(H2<TODAY()-14,"Old",IF(H2<TODAY()-7,"Last Week", "This Week"))

I found this formula and my only issue is that I want the week to start from Monday to Sunday.. for last week and this week.
 
Last edited:

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Something like this function.


Excel 2013/2016
AB
1DateWeek Starting Monday
2Thursday, August 08, 2019Monday, August 05, 2019
Sheet1
Cell Formulas
RangeFormula
B2=A2-WEEKDAY(A2,2)+1
 
Upvote 0
Or try

=IF(WEEKNUM(TODAY(),2)=WEEKNUM(H3,2),"This Week",IF(WEEKNUM(TODAY()-7,2)=WEEKNUM(H3,2),"Last Week"))
 
Upvote 0
Or try

=IF(WEEKNUM(TODAY(),2)=WEEKNUM(H3,2),"This Week",IF(WEEKNUM(TODAY()-7,2)=WEEKNUM(H3,2),"Last Week"))

Phuoc, this works!! I was trying to accomplish to write this. Thanks so much!!
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,716
Members
448,985
Latest member
chocbudda

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