Date replacement without changing time in same cell

charliehickman0923

New Member
Joined
Dec 21, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I can't find an answer to this question, sorry if it's buried somewhere in threads.

I want to just change the date in a cell without changing the time: EX: my cell looks like this but with different times: 12/29/2020 07:00 . I want to change to 01/05/2021 07:00 I only want to change the date in each cell and not the time.

The only way I found to use the Replace function is when the cell has a text format. My format is a custom format: mm/dd/yyyy hh:mm so the replace function doesn't find any matches.

does this make sense, and is there an easy way to do this that I'm missing?

THANK YOU!
 

Some videos you may like

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
52,833
Office Version
  1. 365
Platform
  1. Windows
Hi & welcome to MrExcel.
Assuming the date is in A2 how about
Excel Formula:
=A2+7
 
Solution

charliehickman0923

New Member
Joined
Dec 21, 2020
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi & welcome to MrExcel.
Assuming the date is in A2 how about
Excel Formula:
=A2+7
I feel really silly not seeing that, but it totally works. I have different dates, they aren't always a week apart but I can calculate how many days apart they are and use this simple formula. For this particular project it works. THANKS!!!
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
52,833
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,364
Messages
5,595,722
Members
414,013
Latest member
tnobbs

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
Top