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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
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,215,087
Messages
6,123,050
Members
449,092
Latest member
ikke

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