Formula to grab last two digits of year not working for some users

ExceL0ver

New Member
Joined
Apr 12, 2023
Messages
35
Office Version
  1. 365
Platform
  1. Windows
  2. MacOS
Hi all,

I have the formula below which is used to generate a project code, based on data in columns B, C, and E. Column E contains dates in the format dd/mm/yyyy, and the formula is meant to grab just the last two digits of the year. The formula works perfectly fine for me, however when other users use the same spreadsheet, the format changes so rather than having the two digits of the year, the project code has "YY" in place of this. Then when I click on the cell containing the formula and press enter, the format then changes back to the desired format. Could anyone suggest why this is happening, and what I should do to fix it?

=IF(OR(ISBLANK(B10),ISBLANK(C10),ISBLANK(E10)),"",B10&"-"&TEXT(E10,"YY")&"EN"&(TEXT(Y10,"000")))

Thanks
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Perhaps you could try YEAR rather than TEXT:
Excel Formula:
RIGHT(YEAR(E10),2)
 
Upvote 0
Solution
Could anyone suggest why this is happening
Sounds like they are using a foreign language version of Excel.
For instance, instead of dd-mm-yyyy the French would use jj-mm-aaaa.
 
Upvote 0
Sounds like they are using a foreign language version of Excel.
For instance, instead of dd-mm-yyyy the French would use jj-mm-aaaa.
Thanks Fluff, I think this may be why because they are based in another country. Is there anything I can do to ensure compatibility for all users?
 
Upvote 0
Have you tried what Georgiboy suggested?
 
Upvote 0
You are welcome, glad you have it sorted 👍
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,952
Members
449,095
Latest member
nmaske

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