Auto comments if dates match

cpereznj

New Member
Joined
Nov 27, 2012
Messages
19
Hi everyone, is there a way to add comments based on dates? I have a file with three sheets. The first is called "2018" and is used as a calendar for year 2018 and other data. The second is called "2019" and is used as a calendar for year 2019 and other data. The last one is called "'Events" and it contains a list of special events.
We need to add comments if the dates in the "2018" and "2019" worksheets match date dates in the "Events" worksheet. The comments should be placed in the corresponding "Day" column. The comment should be the event name in column A of the "Events" worksheet.
Thank you for the help.

2018 and 2019 Sample. It contains all the months and days in the year
ABCDEFGHI
JanuaryFebruaryMarch
DayDateCountDayDateCountDateDateCount
Mon1Thu1Thu1
Tue2Fri2Fri2
Wed3Sat3Sat3
Thu4Sun4Sun4
Fri5Mon5Mon5
Sat6Tue6Tue6
Sun7Wed7Wed7
Mon8Thu8Thu8
Tue9Fri9Fri9
Wed10Sat10Sat10

<tbody>
</tbody>


Events Sample. There are approximately 50 events
ABCD
Name201820192020
Event 11/1/181/1/191/1/20
Event 22/1/182/1/192/1/20
Event 33/1/183/1/193/1/20
Event 44/1/184/1/194/1/20
Event 55/1/185/1/195/1/20

<tbody>
</tbody>
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hi,

Could you please clarify what you mean? In this case, you'd like cell A4 in the Calendar sheet to indicate something based on cell B3 in the Events sheet?

Michael
 
Last edited:
Upvote 0
Michael,

The following is a list of comments and their corresponding cells.
"Events" A3 - Event 1 should be placed in "2018" A3. This is because the date in "2018" B3 matches the date in "Events" B3.
"Events" A4 - Event 2 should be placed in "2018" D3. This is because the date in "2018" E3 matches the date in "Events" B4.
"Events" A5 - Event 3 should be placed in "2018" G3. This is because the date in "2018" H3 matches the date in "Events" B5 and so forth.

Hope this clarifies your question. Thank you for the quick reply.

Cesar
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,818
Members
449,049
Latest member
cybersurfer5000

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