Comparing Day of Week with Date from Previous Years

Glasgowsmile

Active Member
Joined
Apr 14, 2018
Messages
280
Office Version
  1. 365
Platform
  1. Windows
Good day,

I'm having a struggle trying to figure out how to do something regarding DOW and Dates.

For example, in the dataset I have Sunday, August 1s 2021 has the number 100 and I want to compare that against the first Sunday in August 2019, not against the 1st (date) itself because that is a Thursday and the data is different.

I'm not sure how I would go about that?

Is there a formula for this type of issue?
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
If you are simply trying to get the date of the 1st Sunday 2 years prior, how about
Excel Formula:
=WORKDAY.INTL(EDATE(A2,-24)-1,1,"1111110")
where A2 holds the date
 
Upvote 0
If you are simply trying to get the date of the 1st Sunday 2 years prior, how about
Excel Formula:
=WORKDAY.INTL(EDATE(A2,-24)-1,1,"1111110")
where A2 holds the date
Would this be dynamic?

Meaning, in this example I needed the Sunday but then I'll also need to know what day of the month the first Monday was during that year. Additionally, I would need to be dynamic for any year that comes up (back to 2017), not just 2019 & 2021.

Currently I've taken to just using help columns to do the dates for each year and an IF statement to the correct column.
 
Upvote 0
Would this be dynamic?
No it just answers your original question.
If you need it to more then you will need to clearly explain what is needed and supply some data showing expected results.
 
Upvote 0

Forum statistics

Threads
1,214,423
Messages
6,119,398
Members
448,892
Latest member
amjad24

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