Date formula

Sawdeeka01

New Member
Joined
Mar 31, 2020
Messages
37
Office Version
  1. 365
Hi,

I am hoping you could assist me please. I have a data set that I need to manipulate and automate for ease of use moving forward. Below is a snippet of what I am working with.

Essentially, I need to take the 'QH Comm Date' (column A) and keep the DD/MM but change the YYYY to 2023 in the 'Anniversary Date' (column B). So the Anniversary date for A2 would be recorded as 30/09/2023 in B2. This would allow me to have an accurate recording in 'Days Until Anniversary Date' (column C), which is a formula counting the difference between 'Days Until Anniversary Date' and 'Today's Date' (column D).

Is this something you could assist me with? I am sorry I did look over existing posts but I really don't know what to even call what I am trying to achieve. I appreciate your time and effort,

Regards,

Roxanne :)

1675648758783.png
 

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.
Try this formula in B2. Where I have A15 in the formula (twice) put the last cell in column A that has a date.

Excel Formula:
=DATE(2023,MONTH(A2:A15),DAY(A2:A15))
 
Upvote 0
Solution
Try this formula in B2. Where I have A15 in the formula (twice) put the last cell in column A that has a date.

Excel Formula:
=DATE(2023,MONTH(A2:A15),DAY(A2:A15))
Hi Peter,

Thank you for your prompt response and suggestions. I have applied that formula and included the last cell that the date is recorded on the main data set however it is returning #SPILL!
 
Upvote 0
Hi Peter,

Thank you for your prompt response and suggestions. I have applied that formula and included the last cell that the date is recorded on the main data set however it is returning #SPILL!
Its working now, thank you so much!!!
 
Upvote 0
You're welcome. Glad to help. As you have discovered, the formula only needs to go in a single cell. :)
 
Upvote 0

Forum statistics

Threads
1,223,630
Messages
6,173,454
Members
452,514
Latest member
cjkelly15

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