concatenate with date

normpam

Active Member
Joined
Oct 30, 2002
Messages
355
A1 B1 C1
01/02/2022 Inv 5210 =B1&" - "&A1 this formula will give me the value in B1 and the numeric equivalent of the date in A1. If I put an apostrophe in front of the date, I can get
Inv 5210 - 01/02/2022. Is there any other way to put the cells together without using the apostrophe? I tried formatting the dates in Column A
to Text, but didn't help......
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Not sure if your date is d/m/y or m/d/y but adjust the date format in a formula like this.

22 02 02.xlsm
ABC
11/02/2022Inv 5210Inv 5210 - 01/02/2022
concat date
Cell Formulas
RangeFormula
C1C1=B1&" - "&TEXT(A1,"dd/mm/yyyy")


BTW, I suggest that you update your Account details (click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

Edit: You could also avoid one concat by including the dash in the date format:
Excel Formula:
=B1&TEXT(A1," - dd/mm/yyyy")
 
Upvote 0
Assuming your date order is dd/mm/yyyy, then try this...

=B1&TEXT(A1," - dd/mm/yyyy")
 
Upvote 0
Sorry Rick, you may have actually posted while I was adding my edit. :biggrin:
 
Upvote 0

Forum statistics

Threads
1,214,869
Messages
6,122,015
Members
449,060
Latest member
LinusJE

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