Microsoft excel date format-not changing at all

%3CLINGO-SUB%20id%3D%22lingo-sub-1704713%22%20slang%3D%22en-US%22%3EMicrosoft%20excel%20date%20format-not%20changing%20at%20all%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1704713%22%20slang%3D%22en-US%22%3E%3CP%3EI%20download%20an%20excel%20file(.xls)%20format%20from%20a%20particular%20portal%20that%20has%20been%20designed%20by%20the%20IT%20developers%20in%20my%20company.%20the%20downloaded%20excel%20sheet%20displays%20a%20date%20format%20which%20cannot%20be%20changed%20at%20any%20cost.%20i%20have%20tried%20custom%20format%2C%20text%20to%20columns%2Cshort%20date..%20every%20possible%20method..%20even%20used%20formulas%20like%26nbsp%3B%3C%2FP%3E%3CP%3E%3DTEXT(H2%2C%22YYYY-MM-DD%22)%2C%20but%20to%20no%20avail.%20There%20are%20basically%202%20excel%20data%20sheets%20from%202%20different%20portals%20that%20need%20to%20be%20matched%2C%20and%20for%20matching%20the%20data%20sheets%2C%20the%20date%20formats%20of%20the%202%20data%20sheets%20should%20match%20as%20well%20along%20with%20the%20additional%20criterias.%20And%20this%20is%20a%20problem%20which%20has%20surfaced%2Conly%20on%20my%20Windows%20excel%202010%20version.%20Please%20help.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1704713%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExcel%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1704732%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20excel%20date%20format-not%20changing%20at%20all%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1704732%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F806112%22%20target%3D%22_blank%22%3E%40lotusana003%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAs%20variant%20you%20have%20texts%2C%20not%20dates%2C%20but%20better%20to%20check%20sample%20file%20with%20few%20records.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1704747%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20excel%20date%20format-not%20changing%20at%20all%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1704747%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F806112%22%20target%3D%22_blank%22%3E%40lotusana003%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20values%20are%20probably%20text%20instead%20of%20dates.%20Could%20you%20attach%20a%20small%20sample%20workbook%20without%20sensitive%20information%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1704840%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20excel%20date%20format-not%20changing%20at%20all%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1704840%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F806112%22%20target%3D%22_blank%22%3E%40lotusana003%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20values%20are%20text%20indeed.%20You%20can%20convert%20each%20of%20the%20columns%20to%20'real'%20dates%20as%20follows%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ESelect%20a%20column%20with%20dates%2C%20e.g.%20A2%3AA158.%3C%2FLI%3E%0A%3CLI%3EOn%20the%20Data%20tab%20of%20the%20ribbon%2C%20click%20'Text%20to%20Columns'.%3C%2FLI%3E%0A%3CLI%3EClick%20'Next%20%26gt%3B'%20then%20'Next%20%26gt%3B'%20again.%3C%2FLI%3E%0A%3CLI%3EIn%20Step%203%2C%20select%20YMD%20from%20the%20Date%20dropdown.%3C%2FLI%3E%0A%3CLI%3EClick%20Finish.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22S3538.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F221599i876E95520FCE3EFC%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22S3538.png%22%20alt%3D%22S3538.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EYou%20should%20now%20be%20able%20to%20compare%20the%20dates.%3C%2FP%3E%0A%3CP%3E%E2%80%83%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1705033%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20excel%20date%20format-not%20changing%20at%20all%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1705033%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F806112%22%20target%3D%22_blank%22%3E%40lotusana003%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThat's%20exactly%20as%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F127945%22%20target%3D%22_blank%22%3E%40Hans%20Vogelaar%3C%2FA%3E%26nbsp%3Bsaid.%20It%20works%20column%20by%20column%20(you%20can't%20apply%20wizard%20at%20once%20for%20more%20than%20one%20column).%20And%20you%20have%20different%20source%20format%20in%20new%20and%20old%20sheets.%20In%20attached%20file%20I%20converted%20for%20Column%20A%20only%3C%2FP%3E%0A%3CP%3Eold%20sheet%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20376px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F221607i9593764D0A320CAF%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3Enew%20sheet%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20344px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F221609i8836230C196D70D9%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1704796%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20excel%20date%20format-not%20changing%20at%20all%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1704796%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20sending%20an%20excel%20sheet%20with%20only%20the%20date%20columns%20for%20the%20new%20and%20old%20data%20sheet.%20Basically%20I%20have%20to%20concatenate%20each%20of%20the%20cells%20and%20then%20match%20the%20final%20concatenated%20data%20using%20the%20%22IF%22%20statement.%20But%20since%20the%20date%20formats%20for%20both%20the%20sheets%20differ%2C%20so%20the%20end%20result%20is%20a%20mismatch.%20Please%20have%20look..%20I%20was%20wondering%20if%20had%20something%20to%20do%20with%20the%20settings%20of%20my%20Windows%20Excel.%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F127945%22%20target%3D%22_blank%22%3E%40Hans%20Vogelaar%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1737076%22%20slang%3D%22en-US%22%3ERe%3A%20Microsoft%20excel%20date%20format-not%20changing%20at%20all%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1737076%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F806112%22%20target%3D%22_blank%22%3E%40lotusana003%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIt%20works%2C%20please%20check%20attached.%20Hard%20to%20say%20what%20was%20wrong%20in%20your%20case.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1737140%22%20slang%3D%22de-DE%22%3ESubject%3A%20Microsoft%20excel%20date%20format-not%20changing%20at%20all%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1737140%22%20slang%3D%22de-DE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F806112%22%20target%3D%22_blank%22%3E%40lotusana003%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%20class%3D%22%22%3EWhat%20the%20previous%20ones%2C%20who%20very%20well%20known%20of%20the%20subject%20-%20Excel%2C%20told%20you%20is%20absolutely%20correct.%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%3EJust%20add%20the%20columns%20to%20the%20format%20where%20you%20wanted%2C%20as%20I%20understood.%3C%2FSPAN%3E%20%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%3EIf%20this%20is%20not%20what%20you%20are%20asking%20for%2C%20please%20ignore%20my%20message.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22tlid-translation%20translation%22%3E%3CSPAN%3E%3CSPAN%20class%3D%22%22%3EHave%20a%20nice%20day.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22%22%3ENikolino%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22alt-edited%22%3EI%20know%20that%20I%20know%20nothing%20(Socrates)%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

I download an excel file(.xls) format from a particular portal that has been designed by the IT developers in my company. the downloaded excel sheet displays a date format which cannot be changed at any cost. i have tried custom format, text to columns,short date.. every possible method.. even used formulas like 

=TEXT(H2,"YYYY-MM-DD"), but to no avail. There are basically 2 excel data sheets from 2 different portals that need to be matched, and for matching the data sheets, the date formats of the 2 data sheets should match as well along with the additional criterias. And this is a problem which has surfaced,only on my Windows excel 2010 version. Please help.

29 Replies

@lotusana003 

As variant you have texts, not dates, but better to check sample file with few records.

@lotusana003 

The values are probably text instead of dates. Could you attach a small sample workbook without sensitive information?

I am sending an excel sheet with only the date columns for the new and old data sheet. Basically I have to concatenate each of the cells and then match the final concatenated data using the "IF" statement. But since the date formats for both the sheets differ, so the end result is a mismatch. Please have look.. I was wondering if had something to do with the settings of my Windows Excel. @Hans Vogelaar 

@lotusana003 

The values are text indeed. You can convert each of the columns to 'real' dates as follows:

  • Select a column with dates, e.g. A2:A158.
  • On the Data tab of the ribbon, click 'Text to Columns'.
  • Click 'Next >' then 'Next >' again.
  • In Step 3, select YMD from the Date dropdown.
  • Click Finish.

S3538.png

You should now be able to compare the dates.

I tried that, but it's the dates are not matching.. @Hans Vogelaar 

I ma sending a sample file with the dates. Please have a look. @Sergei Baklan 

@lotusana003 

That's exactly as @Hans Vogelaar said. It works column by column (you can't apply wizard at once for more than one column). And you have different source format in new and old sheets. In attached file I converted for Column A only

old sheet:

image.png

new sheet:

image.png

 

Dear Sir,

The date format in the old data sheet can be changed, the date format in the new data sheet is creating problems. If you could perform concatenation in each of the sheets using the formula-

=CONCATENATE(A2,B2,C2,TEXT(D2,"YYYY-MM-DD"),TEXT(E2,"YYYY-MM-DD"),F2,TEXT(G2,"YYYY-MM-DD"),TEXT(H2,"YYYY-MM-DD"),I2,J2,K2,L2,M2,N2,O2,P2,Q2,R2). I am sending the worksheet where I have performed a calculation. Please have a look,I basically want to match the date formats  ,@Sergei Baklan 

@lotusana003 

I'm sorry, but I didn't find where is the formula from the post within workbooks. It has lot of sheets and different columns, not clear to what and which formula you'd like to apply. To illustrate just couple of records in one sheet will be enough.

 

If you apply formula like TEXT(D2,"YYYY-MM-DD") for the D2 which has text value, it will do nothing. You may simply use D2, result will be the same. If you'd like to present the text in another format, first you shall convert it to date (aka number) and after that use TEXT() with new format. You may convert entire column first, or within formula. If in your locale default date format is the same as in text, you may use TEXT(VALUE(D2),"YYYY-MM-DD"). If not, first parse the text and convert to date then, like TEXT(DATE(RIGHT(D2,4),LEFT(D2,2),MID(D2,4,2)),"YYYY-MM-DD")

 

 

 

 

sheet tab-new data sheet.
it displays columns that have dates from the new sheet.I have used the formula "=CONCATENATE(TEXT(A2,"YYYY-MM-DD"),TEXT(B2,"YYYY-MM-DD"),TEXT(C2,"YYYY-MM-DD"))".
The date format does not change.
the column labeled new concat- displays concatenated data for all the 3 cells.

Sheet tab-old data sheet
it displays the columns that have date formats from the old data sheet.
I have used the same formula "=CONCATENATE(TEXT(A2,"YYYY-MM-DD"),TEXT(B2,"YYYY-MM-DD"),TEXT(C2,"YYYY-MM-DD"))".
the column labeled old concat- displays concatenated data for all the 3 cells.


Sheet tab-result:the old concatenated data and new concatenated data are placed side by side.
then the condition is applied: =IF(A2=B2,1,0).
All the results are displaying 0, even though the dates are same, but formats are different.

My aim is to match the results, i.e to bring the output as 1.
Please help me to do so.

 

@Sergei Baklan 

@lotusana003 

Look, if you use formula like

=CONCATENATE(TEXT("a","YYYY-MM-DD"),TEXT("b","YYYY-MM-DD"),TEXT("c","YYYY-MM-DD"))

it returns exactly the same as

=CONCATENATE("a","b""c")

i.e. "abc". TEXT() function changes nothing in value if it is text, doesn't matter which format do you use. In the file practically all data are texts in form of dates. Dates in Excel are sequential integers where 1 is equal to Jan 01, 1900. You may apply any format to the text "07/28/2020", Excel will keep it as text "07/28/2020".  But if you enter in any cell number 44040 and apply to it "YYYY-MM-DD"  format, it will be shown as date 2020-07-28. Behind it's still will be number, not text.

 

Thus first you shall convert texts to dates as it was explained earlier. With that you may concat without any formatting if only you need to have strings to compare, like

image.png

Dear Sir,

 

I am trying to apply text to columns on the New Data Tab of the excel sheet that i have sent- but it is not being converted to dates.
I have used the exact method-: select column of the excel sheet>Data tab on the ribbon>Text to columns>Next>Next>choose YMD>Finish,
I even selected the columns one at a time. The data on the New Data Excel Tab  hasn't shown any change. Can you please confirm if something is wrong with the dates on the New Data Tab

 

@Sergei Baklan 

@lotusana003 

It works, please check attached. Hard to say what was wrong in your case.

@lotusana003 

 

What the previous ones, who very well known of the subject - Excel, told you is absolutely correct.

Just add the columns to the format where you wanted, as I understood.

 

If this is not what you are asking for, please ignore my message.

 

Have a nice day.

Nikolino
I know that I know nothing (Socrates)

Dear Sir,

Could you please send a screen shot of this settings window on your computer. This is the screen shot of the settings on my computer. I don't know whether there is any issue in the settings because of which the date formats are not changing. 

 

lotusana003_0-1601646240675.png

 

@Sergei Baklan 

Take a look at Sergei' second post, second image again.
You must make sure it is MDY
The rows with failed conversions in your exempe files have “days” that are bigger than 12 so I guess you used DMY.

@lotusana003 , I have exactly the same settings. Perhaps you have texts instead of dates.

@lotusana003 

In your case it shall be not YMD, but MDY. Here is format of origin, to the one you'd like to have.

Hello Mr. Baklan, as far as I have seen the first two columns in the worksheet with the date have a nomenclature Africaans, maybe that is the problem?
... that the first two columns have a different bit scheme than the third.

Nikolino