CONCAT which includes Text in one cell and a date (in YYYY) format in the second source cell

LeighMacKay7

New Member
Joined
Oct 11, 2022
Messages
34
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
  2. Web
Hi, everyone.

I am trying to concatenate two cells, which are formatted differently.

> The first cell (GW2), is TEXT.
> The second cell (GX2) is a custom DATE in the format of "yyyy"
An example answer is: "Bachelor's Degree" in cell GW2, and the year "2014" in cell GX2.

When I use the concat or concatenate functions.
=CONCAT(GW2&", "&GX2)
It returns "Bachelor's Degree, 45789" How do I change the format of 45789 to just be 2014. in a single cell, I know I can go to Custom and change it to "yyyy". But in the concatenated cell, this doesn't seem to work.
When I want it to return "Bachelor's Degree, 2014".

Any advice/suggestions, would be welcome.

Thanks in advance
Leigh
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Don't worry everyone.

I have managed to figure it out.

Answer is as follows
=GW2&", "&TEXT(GX2,"yyyy")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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