Concatenate two date

Lisa P NYC

New Member
Joined
Feb 26, 2020
Messages
16
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Can someone please help me...it's driving me crazy?

I have 2 columns that contain dates. I am getting the data for those two columns from 2 other sheets. (Formatted as dates on these sheets) There are NEVER two dates in the same row. I want to combine the information in the two columns into one separate column of dates. I need to use that column for a formula.

I first tried to concatenate the two cells =concatenate(A1,B1) didn't work
Then I tried =Text(A1, "mm/dd/yy")&Text(B1, "mm/dd/yy") This gives me the date and 01/00/00 for whichever column is blank. So it is either before the date or after the date depending if the date is in the first or second column.

All three columns are formatted to date. How do I combine the two columns and just show the date in the new column? The blank column seems to be the culprit.

I have searched Google, and YouTube and I just can't find an answer. Hoping that someone here can help.

Thanks - Lisa
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
How about
Excel Formula:
=max(a1,b1)
 
Upvote 0
Fluff this is great, thank you. Can I ask you an additional question please? What if both rows in the column are empty? How do I stop it from returning the 1/0/00 ?
 
Upvote 0
How about
Excel Formula:
=iferror(1/(1/max(a1,b1)),"")
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 1

Forum statistics

Threads
1,223,888
Messages
6,175,212
Members
452,618
Latest member
Tam84

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