• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

text function not showing correct day

jb

Member
Hi Helpers,

I am entering dates in dd/mm/yyyy format in column B. Format of this column is text. I am using text function to display day in column C.

So, far it was working perfectly. But today, when I entered date 02/06/2024, it has started showing TUE in place of SUN.

I found the reason that it is considering 02 as Month and 06 as Day. If I change it to 06/02/2024 it shows SUN.

It is very weird behaviour. I want to enter date in dd/mm/yyyy format only. I don't know what to do.

Kindly help.
 

Attachments

  • test_date.xlsx
    8.3 KB · Views: 3
What formula are you using? You've not included it in the sample file. Please check that your locale in Excel is NOT set to US (File > Options > Language - needs to be set as UK). Also check your Windows date/time settings for the same.

My locale is all set to UK and it works fine for me.

=TEXT(B17,"ddd")

AliGW on MS365 Beta Channel (Windows 11) 64 bit

A
B
C
D
E
4
112/06/2023MonMon
5
213/06/2023TueTue
6
314/06/2023WedWed
7
415/06/2023ThuThu
8
516/06/2023FriFri
9
617/06/2023SatSat
10
718/06/2023SunSun
11
12
13
16029/05/2024WedWed
14
16130/05/2024ThuThu
15
16231/05/2024FriFri
16
16301/06/2024SatSat
17
16402/06/2024TueSun
Sheet: Sheet1
 
  • Like
Reactions: jb
What formula are you using? You've not included it in the sample file. Please check that your locale in Excel is NOT set to US (File > Options > Language - needs to be set as UK). Also check your Windows date/time settings for the same.

My locale is all set to UK and it works fine for me.

=TEXT(B17,"ddd")

AliGW on MS365 Beta Channel (Windows 11) 64 bit


A
B
C
D
E
4
112/06/2023MonMon
5
213/06/2023TueTue
6
314/06/2023WedWed
7
415/06/2023ThuThu
8
516/06/2023FriFri
9
617/06/2023SatSat
10
718/06/2023SunSun
11
12
13
16029/05/2024WedWed
14
16130/05/2024ThuThu
15
16231/05/2024FriFri
16
16301/06/2024SatSat
17
16402/06/2024TueSun

Sheet: Sheet1
Thank you so much. I changed settings and it works fine now. Thanks again.
 

jb

Your I am entering dates in dd/mm/yyyy format in column B. Format of this column is text.

Is there any reason ... why that B-column is text?

Would it be more normal - that it should be formatted as date before entering dates?
 
Back
Top