Excel: how to force it to recognize a date on multiple cells












0















I have a bunch of cells (coming from a CSV file) containing text like:



Dec 29, 2018
Dec 30, 2018


I have already applied the desired format to these cells, so that they are displayed like this:



29-Dec-2018
30-Dec-2018


Problem: Excel does not automatically recognize the dates / apply the date format.
I need to do F2 then Enter on each cell for it to be displayed as I want.



How can I automatically force Excel to apply the format on the whole range of cells ? (I hope there's a smarter way than a macro...)










share|improve this question























  • Are you opening the CSV file directly with Excel or are you importing it into a tab in an Excel workbook?

    – Excellll
    Jan 11 at 17:30











  • Two easy ways could achieve this: 1) use the format painter tool - Copy from one cell and apply to the ones you have imported 2) Use formulas (DAY, MONTH,YEAR functions) and reassemble the date to your desired format

    – Eric F
    Jan 11 at 17:33











  • @Excellll I opened the CSV.

    – Sébastien
    Jan 14 at 9:37











  • @EricF 1/ Does not work. The cell format is already correct, it's just that it's not applied as long as the text is not recognized as a date 2/ Is not applicable as the date is not recognized

    – Sébastien
    Jan 14 at 9:39
















0















I have a bunch of cells (coming from a CSV file) containing text like:



Dec 29, 2018
Dec 30, 2018


I have already applied the desired format to these cells, so that they are displayed like this:



29-Dec-2018
30-Dec-2018


Problem: Excel does not automatically recognize the dates / apply the date format.
I need to do F2 then Enter on each cell for it to be displayed as I want.



How can I automatically force Excel to apply the format on the whole range of cells ? (I hope there's a smarter way than a macro...)










share|improve this question























  • Are you opening the CSV file directly with Excel or are you importing it into a tab in an Excel workbook?

    – Excellll
    Jan 11 at 17:30











  • Two easy ways could achieve this: 1) use the format painter tool - Copy from one cell and apply to the ones you have imported 2) Use formulas (DAY, MONTH,YEAR functions) and reassemble the date to your desired format

    – Eric F
    Jan 11 at 17:33











  • @Excellll I opened the CSV.

    – Sébastien
    Jan 14 at 9:37











  • @EricF 1/ Does not work. The cell format is already correct, it's just that it's not applied as long as the text is not recognized as a date 2/ Is not applicable as the date is not recognized

    – Sébastien
    Jan 14 at 9:39














0












0








0


1






I have a bunch of cells (coming from a CSV file) containing text like:



Dec 29, 2018
Dec 30, 2018


I have already applied the desired format to these cells, so that they are displayed like this:



29-Dec-2018
30-Dec-2018


Problem: Excel does not automatically recognize the dates / apply the date format.
I need to do F2 then Enter on each cell for it to be displayed as I want.



How can I automatically force Excel to apply the format on the whole range of cells ? (I hope there's a smarter way than a macro...)










share|improve this question














I have a bunch of cells (coming from a CSV file) containing text like:



Dec 29, 2018
Dec 30, 2018


I have already applied the desired format to these cells, so that they are displayed like this:



29-Dec-2018
30-Dec-2018


Problem: Excel does not automatically recognize the dates / apply the date format.
I need to do F2 then Enter on each cell for it to be displayed as I want.



How can I automatically force Excel to apply the format on the whole range of cells ? (I hope there's a smarter way than a macro...)







microsoft-excel






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 11 at 17:21









SébastienSébastien

4322619




4322619













  • Are you opening the CSV file directly with Excel or are you importing it into a tab in an Excel workbook?

    – Excellll
    Jan 11 at 17:30











  • Two easy ways could achieve this: 1) use the format painter tool - Copy from one cell and apply to the ones you have imported 2) Use formulas (DAY, MONTH,YEAR functions) and reassemble the date to your desired format

    – Eric F
    Jan 11 at 17:33











  • @Excellll I opened the CSV.

    – Sébastien
    Jan 14 at 9:37











  • @EricF 1/ Does not work. The cell format is already correct, it's just that it's not applied as long as the text is not recognized as a date 2/ Is not applicable as the date is not recognized

    – Sébastien
    Jan 14 at 9:39



















  • Are you opening the CSV file directly with Excel or are you importing it into a tab in an Excel workbook?

    – Excellll
    Jan 11 at 17:30











  • Two easy ways could achieve this: 1) use the format painter tool - Copy from one cell and apply to the ones you have imported 2) Use formulas (DAY, MONTH,YEAR functions) and reassemble the date to your desired format

    – Eric F
    Jan 11 at 17:33











  • @Excellll I opened the CSV.

    – Sébastien
    Jan 14 at 9:37











  • @EricF 1/ Does not work. The cell format is already correct, it's just that it's not applied as long as the text is not recognized as a date 2/ Is not applicable as the date is not recognized

    – Sébastien
    Jan 14 at 9:39

















Are you opening the CSV file directly with Excel or are you importing it into a tab in an Excel workbook?

– Excellll
Jan 11 at 17:30





Are you opening the CSV file directly with Excel or are you importing it into a tab in an Excel workbook?

– Excellll
Jan 11 at 17:30













Two easy ways could achieve this: 1) use the format painter tool - Copy from one cell and apply to the ones you have imported 2) Use formulas (DAY, MONTH,YEAR functions) and reassemble the date to your desired format

– Eric F
Jan 11 at 17:33





Two easy ways could achieve this: 1) use the format painter tool - Copy from one cell and apply to the ones you have imported 2) Use formulas (DAY, MONTH,YEAR functions) and reassemble the date to your desired format

– Eric F
Jan 11 at 17:33













@Excellll I opened the CSV.

– Sébastien
Jan 14 at 9:37





@Excellll I opened the CSV.

– Sébastien
Jan 14 at 9:37













@EricF 1/ Does not work. The cell format is already correct, it's just that it's not applied as long as the text is not recognized as a date 2/ Is not applicable as the date is not recognized

– Sébastien
Jan 14 at 9:39





@EricF 1/ Does not work. The cell format is already correct, it's just that it's not applied as long as the text is not recognized as a date 2/ Is not applicable as the date is not recognized

– Sébastien
Jan 14 at 9:39










1 Answer
1






active

oldest

votes


















1














Use the replace tool.




  1. Select the column with the Date

  2. Replace (Its CTRL+U in PTBR, but CTRL+F in US version)

  3. Replace something with itself (Are all the dates 2018? Replace 2018 with 2018 or 20 with 20)


By doing this, Excel will run on every cell replacing the value with itself, effectively updating the value on the cell. It will identify it is a date and it should work. If it doesn't, try formatting the cells with a General type and trying again.






share|improve this answer


























  • Nice trick, does the job. I wish Excel would offer a cleaner way to achieve this, though.

    – Sébastien
    Jan 14 at 9:40











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1393251%2fexcel-how-to-force-it-to-recognize-a-date-on-multiple-cells%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Use the replace tool.




  1. Select the column with the Date

  2. Replace (Its CTRL+U in PTBR, but CTRL+F in US version)

  3. Replace something with itself (Are all the dates 2018? Replace 2018 with 2018 or 20 with 20)


By doing this, Excel will run on every cell replacing the value with itself, effectively updating the value on the cell. It will identify it is a date and it should work. If it doesn't, try formatting the cells with a General type and trying again.






share|improve this answer


























  • Nice trick, does the job. I wish Excel would offer a cleaner way to achieve this, though.

    – Sébastien
    Jan 14 at 9:40
















1














Use the replace tool.




  1. Select the column with the Date

  2. Replace (Its CTRL+U in PTBR, but CTRL+F in US version)

  3. Replace something with itself (Are all the dates 2018? Replace 2018 with 2018 or 20 with 20)


By doing this, Excel will run on every cell replacing the value with itself, effectively updating the value on the cell. It will identify it is a date and it should work. If it doesn't, try formatting the cells with a General type and trying again.






share|improve this answer


























  • Nice trick, does the job. I wish Excel would offer a cleaner way to achieve this, though.

    – Sébastien
    Jan 14 at 9:40














1












1








1







Use the replace tool.




  1. Select the column with the Date

  2. Replace (Its CTRL+U in PTBR, but CTRL+F in US version)

  3. Replace something with itself (Are all the dates 2018? Replace 2018 with 2018 or 20 with 20)


By doing this, Excel will run on every cell replacing the value with itself, effectively updating the value on the cell. It will identify it is a date and it should work. If it doesn't, try formatting the cells with a General type and trying again.






share|improve this answer















Use the replace tool.




  1. Select the column with the Date

  2. Replace (Its CTRL+U in PTBR, but CTRL+F in US version)

  3. Replace something with itself (Are all the dates 2018? Replace 2018 with 2018 or 20 with 20)


By doing this, Excel will run on every cell replacing the value with itself, effectively updating the value on the cell. It will identify it is a date and it should work. If it doesn't, try formatting the cells with a General type and trying again.







share|improve this answer














share|improve this answer



share|improve this answer








edited Jan 11 at 19:17

























answered Jan 11 at 18:58









MoacirMoacir

20415




20415













  • Nice trick, does the job. I wish Excel would offer a cleaner way to achieve this, though.

    – Sébastien
    Jan 14 at 9:40



















  • Nice trick, does the job. I wish Excel would offer a cleaner way to achieve this, though.

    – Sébastien
    Jan 14 at 9:40

















Nice trick, does the job. I wish Excel would offer a cleaner way to achieve this, though.

– Sébastien
Jan 14 at 9:40





Nice trick, does the job. I wish Excel would offer a cleaner way to achieve this, though.

– Sébastien
Jan 14 at 9:40


















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1393251%2fexcel-how-to-force-it-to-recognize-a-date-on-multiple-cells%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How do I know what Microsoft account the skydrive app is syncing to?

When does type information flow backwards in C++?

Grease: Live!