I am getting an error as #NAME? while opening CSV File in excel 2016












1















I am facing problem in Excel.



When I am opening my CSV file in Excel 2016 then I am getting #NAME? error



The formula I am using before converting the CSV file is:



=concatenate("+",substitute("A2"," ","+"))


and the output I am getting XLSX file as +ab+c



where A2 has value as ab c



But when I converting the same file into CSV and reopen the file then the output will change and gives as #NAME?



Please help me out from this problem.










share|improve this question

























  • Comments are not for extended discussion; this conversation has been moved to chat.

    – Samuel Liew
    Nov 25 '18 at 3:53
















1















I am facing problem in Excel.



When I am opening my CSV file in Excel 2016 then I am getting #NAME? error



The formula I am using before converting the CSV file is:



=concatenate("+",substitute("A2"," ","+"))


and the output I am getting XLSX file as +ab+c



where A2 has value as ab c



But when I converting the same file into CSV and reopen the file then the output will change and gives as #NAME?



Please help me out from this problem.










share|improve this question

























  • Comments are not for extended discussion; this conversation has been moved to chat.

    – Samuel Liew
    Nov 25 '18 at 3:53














1












1








1








I am facing problem in Excel.



When I am opening my CSV file in Excel 2016 then I am getting #NAME? error



The formula I am using before converting the CSV file is:



=concatenate("+",substitute("A2"," ","+"))


and the output I am getting XLSX file as +ab+c



where A2 has value as ab c



But when I converting the same file into CSV and reopen the file then the output will change and gives as #NAME?



Please help me out from this problem.










share|improve this question
















I am facing problem in Excel.



When I am opening my CSV file in Excel 2016 then I am getting #NAME? error



The formula I am using before converting the CSV file is:



=concatenate("+",substitute("A2"," ","+"))


and the output I am getting XLSX file as +ab+c



where A2 has value as ab c



But when I converting the same file into CSV and reopen the file then the output will change and gives as #NAME?



Please help me out from this problem.







excel excel-formula






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 21 '18 at 13:40









a_horse_with_no_name

296k46451546




296k46451546










asked Nov 21 '18 at 10:50









ArvindArvind

114




114













  • Comments are not for extended discussion; this conversation has been moved to chat.

    – Samuel Liew
    Nov 25 '18 at 3:53



















  • Comments are not for extended discussion; this conversation has been moved to chat.

    – Samuel Liew
    Nov 25 '18 at 3:53

















Comments are not for extended discussion; this conversation has been moved to chat.

– Samuel Liew
Nov 25 '18 at 3:53





Comments are not for extended discussion; this conversation has been moved to chat.

– Samuel Liew
Nov 25 '18 at 3:53












1 Answer
1






active

oldest

votes


















0














Summary of my exchanges with OP in comments section.



I see basically three solutions (although the third one does not meet the criteria of the OP, but I add for completeness):




  1. Do not "open" the CSV file, but import (in an existing or new workbook): Data > Get External Data > From Text, then you go through the import steps (choose your delimiter, which will be , in your case), and then you have to define all columns as TEXT (this is the most important step, see screenshot below). This is a 100% foolproof solution.

  2. Instead of using Excel, you could use another CSV viewer (I understood from OP that a colleague needs to inspect the file before sending onward). This might of course not be feasible in larger organizations where one is not allowed to use other tools, or if the colleague is not cooperative.

  3. One can modify the formula so the output becomes ="+ab+c". When this is saved in CSV and imported again into Excel, it will just show +ab+c on the screen. But for OP the text in the CSV file must be just +ab+c, so therefore will not work.


Just a final remark, I could not (using Excel 2013 for Windows 10) replicate the behavior as observed by the OP. +ab+c in a CSV file never gave the #NAME? error for me when I opened the file; however, once I clicked in the cell, Excel would not let me ENTER it, unless I added a ' to indicate it was text; but I still could ESC and leave the cell alone).



I did not do any exhaustive testing, but I observed the following :




  • if the text starts with = you get the error always (except if followed by a text string in double quotes "...");

  • if it starts with + or -, there must be another operator and number also. So +ab+3 gave an error, but +b1+a not.


So maybe the behavior of Excel is different across versions, or any other settings influence this.



Just to illustrate, herewith a screenshot from the Text Import Wizard (which you find under Data > Get External Data > From Text. And in this final step (actually, you still get another step where you have to define where Excel has to put the text, either in a new worksheet, or in an existing worksheet) you have to select all columns (with shift or ctrl) and select Text as the Column data format.



enter image description here






share|improve this answer


























  • K.Still not solved my problem. Can you share me some screenshot?

    – Arvind
    Nov 23 '18 at 9:35













  • nope, not work yet. once I reopen it after all of the above step doing it still display #NAME?.

    – Arvind
    Nov 23 '18 at 10:05











  • @Arvind As I mentioned above, a CSV file is a text file, and every time you open a text file in Excel this will happen. If you want to consult/read/check this file as a text file in Excel, you have to force Excel to act as a text-reader, hence use import from text and define all columns as text (as in described in my answer). Not just once, but every time, and not only you, but also every other colleague who wants to check a text file with Excel. I understood from one of your comments on your question that it does work for you when you do the Data > Get External Data > From Text ?

    – Peter K.
    Nov 23 '18 at 11:12











  • thanks Peter for your suggestion and effort. If I did not open again and directly upload it works.

    – Arvind
    Nov 23 '18 at 11:37













  • @Arvind You're welcome. And I understand the confusion. A CSV file in windows is often (by default, if Excel is installed) associated with Excel instead of Notepad, so the icon that is associated with the file looks very similar to a real Excel file. But this is wrong, it has nothing to do with Excel. A CSV file is a pure text file ! It is just used (a.o.) to store or exchange data records between programs, where each field is separated with a comma (although it could also be a semicolon or other separator, while still having the CSV extension), and each record is on a new line.

    – Peter K.
    Nov 23 '18 at 11:56











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
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%2fstackoverflow.com%2fquestions%2f53410490%2fi-am-getting-an-error-as-name-while-opening-csv-file-in-excel-2016%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









0














Summary of my exchanges with OP in comments section.



I see basically three solutions (although the third one does not meet the criteria of the OP, but I add for completeness):




  1. Do not "open" the CSV file, but import (in an existing or new workbook): Data > Get External Data > From Text, then you go through the import steps (choose your delimiter, which will be , in your case), and then you have to define all columns as TEXT (this is the most important step, see screenshot below). This is a 100% foolproof solution.

  2. Instead of using Excel, you could use another CSV viewer (I understood from OP that a colleague needs to inspect the file before sending onward). This might of course not be feasible in larger organizations where one is not allowed to use other tools, or if the colleague is not cooperative.

  3. One can modify the formula so the output becomes ="+ab+c". When this is saved in CSV and imported again into Excel, it will just show +ab+c on the screen. But for OP the text in the CSV file must be just +ab+c, so therefore will not work.


Just a final remark, I could not (using Excel 2013 for Windows 10) replicate the behavior as observed by the OP. +ab+c in a CSV file never gave the #NAME? error for me when I opened the file; however, once I clicked in the cell, Excel would not let me ENTER it, unless I added a ' to indicate it was text; but I still could ESC and leave the cell alone).



I did not do any exhaustive testing, but I observed the following :




  • if the text starts with = you get the error always (except if followed by a text string in double quotes "...");

  • if it starts with + or -, there must be another operator and number also. So +ab+3 gave an error, but +b1+a not.


So maybe the behavior of Excel is different across versions, or any other settings influence this.



Just to illustrate, herewith a screenshot from the Text Import Wizard (which you find under Data > Get External Data > From Text. And in this final step (actually, you still get another step where you have to define where Excel has to put the text, either in a new worksheet, or in an existing worksheet) you have to select all columns (with shift or ctrl) and select Text as the Column data format.



enter image description here






share|improve this answer


























  • K.Still not solved my problem. Can you share me some screenshot?

    – Arvind
    Nov 23 '18 at 9:35













  • nope, not work yet. once I reopen it after all of the above step doing it still display #NAME?.

    – Arvind
    Nov 23 '18 at 10:05











  • @Arvind As I mentioned above, a CSV file is a text file, and every time you open a text file in Excel this will happen. If you want to consult/read/check this file as a text file in Excel, you have to force Excel to act as a text-reader, hence use import from text and define all columns as text (as in described in my answer). Not just once, but every time, and not only you, but also every other colleague who wants to check a text file with Excel. I understood from one of your comments on your question that it does work for you when you do the Data > Get External Data > From Text ?

    – Peter K.
    Nov 23 '18 at 11:12











  • thanks Peter for your suggestion and effort. If I did not open again and directly upload it works.

    – Arvind
    Nov 23 '18 at 11:37













  • @Arvind You're welcome. And I understand the confusion. A CSV file in windows is often (by default, if Excel is installed) associated with Excel instead of Notepad, so the icon that is associated with the file looks very similar to a real Excel file. But this is wrong, it has nothing to do with Excel. A CSV file is a pure text file ! It is just used (a.o.) to store or exchange data records between programs, where each field is separated with a comma (although it could also be a semicolon or other separator, while still having the CSV extension), and each record is on a new line.

    – Peter K.
    Nov 23 '18 at 11:56
















0














Summary of my exchanges with OP in comments section.



I see basically three solutions (although the third one does not meet the criteria of the OP, but I add for completeness):




  1. Do not "open" the CSV file, but import (in an existing or new workbook): Data > Get External Data > From Text, then you go through the import steps (choose your delimiter, which will be , in your case), and then you have to define all columns as TEXT (this is the most important step, see screenshot below). This is a 100% foolproof solution.

  2. Instead of using Excel, you could use another CSV viewer (I understood from OP that a colleague needs to inspect the file before sending onward). This might of course not be feasible in larger organizations where one is not allowed to use other tools, or if the colleague is not cooperative.

  3. One can modify the formula so the output becomes ="+ab+c". When this is saved in CSV and imported again into Excel, it will just show +ab+c on the screen. But for OP the text in the CSV file must be just +ab+c, so therefore will not work.


Just a final remark, I could not (using Excel 2013 for Windows 10) replicate the behavior as observed by the OP. +ab+c in a CSV file never gave the #NAME? error for me when I opened the file; however, once I clicked in the cell, Excel would not let me ENTER it, unless I added a ' to indicate it was text; but I still could ESC and leave the cell alone).



I did not do any exhaustive testing, but I observed the following :




  • if the text starts with = you get the error always (except if followed by a text string in double quotes "...");

  • if it starts with + or -, there must be another operator and number also. So +ab+3 gave an error, but +b1+a not.


So maybe the behavior of Excel is different across versions, or any other settings influence this.



Just to illustrate, herewith a screenshot from the Text Import Wizard (which you find under Data > Get External Data > From Text. And in this final step (actually, you still get another step where you have to define where Excel has to put the text, either in a new worksheet, or in an existing worksheet) you have to select all columns (with shift or ctrl) and select Text as the Column data format.



enter image description here






share|improve this answer


























  • K.Still not solved my problem. Can you share me some screenshot?

    – Arvind
    Nov 23 '18 at 9:35













  • nope, not work yet. once I reopen it after all of the above step doing it still display #NAME?.

    – Arvind
    Nov 23 '18 at 10:05











  • @Arvind As I mentioned above, a CSV file is a text file, and every time you open a text file in Excel this will happen. If you want to consult/read/check this file as a text file in Excel, you have to force Excel to act as a text-reader, hence use import from text and define all columns as text (as in described in my answer). Not just once, but every time, and not only you, but also every other colleague who wants to check a text file with Excel. I understood from one of your comments on your question that it does work for you when you do the Data > Get External Data > From Text ?

    – Peter K.
    Nov 23 '18 at 11:12











  • thanks Peter for your suggestion and effort. If I did not open again and directly upload it works.

    – Arvind
    Nov 23 '18 at 11:37













  • @Arvind You're welcome. And I understand the confusion. A CSV file in windows is often (by default, if Excel is installed) associated with Excel instead of Notepad, so the icon that is associated with the file looks very similar to a real Excel file. But this is wrong, it has nothing to do with Excel. A CSV file is a pure text file ! It is just used (a.o.) to store or exchange data records between programs, where each field is separated with a comma (although it could also be a semicolon or other separator, while still having the CSV extension), and each record is on a new line.

    – Peter K.
    Nov 23 '18 at 11:56














0












0








0







Summary of my exchanges with OP in comments section.



I see basically three solutions (although the third one does not meet the criteria of the OP, but I add for completeness):




  1. Do not "open" the CSV file, but import (in an existing or new workbook): Data > Get External Data > From Text, then you go through the import steps (choose your delimiter, which will be , in your case), and then you have to define all columns as TEXT (this is the most important step, see screenshot below). This is a 100% foolproof solution.

  2. Instead of using Excel, you could use another CSV viewer (I understood from OP that a colleague needs to inspect the file before sending onward). This might of course not be feasible in larger organizations where one is not allowed to use other tools, or if the colleague is not cooperative.

  3. One can modify the formula so the output becomes ="+ab+c". When this is saved in CSV and imported again into Excel, it will just show +ab+c on the screen. But for OP the text in the CSV file must be just +ab+c, so therefore will not work.


Just a final remark, I could not (using Excel 2013 for Windows 10) replicate the behavior as observed by the OP. +ab+c in a CSV file never gave the #NAME? error for me when I opened the file; however, once I clicked in the cell, Excel would not let me ENTER it, unless I added a ' to indicate it was text; but I still could ESC and leave the cell alone).



I did not do any exhaustive testing, but I observed the following :




  • if the text starts with = you get the error always (except if followed by a text string in double quotes "...");

  • if it starts with + or -, there must be another operator and number also. So +ab+3 gave an error, but +b1+a not.


So maybe the behavior of Excel is different across versions, or any other settings influence this.



Just to illustrate, herewith a screenshot from the Text Import Wizard (which you find under Data > Get External Data > From Text. And in this final step (actually, you still get another step where you have to define where Excel has to put the text, either in a new worksheet, or in an existing worksheet) you have to select all columns (with shift or ctrl) and select Text as the Column data format.



enter image description here






share|improve this answer















Summary of my exchanges with OP in comments section.



I see basically three solutions (although the third one does not meet the criteria of the OP, but I add for completeness):




  1. Do not "open" the CSV file, but import (in an existing or new workbook): Data > Get External Data > From Text, then you go through the import steps (choose your delimiter, which will be , in your case), and then you have to define all columns as TEXT (this is the most important step, see screenshot below). This is a 100% foolproof solution.

  2. Instead of using Excel, you could use another CSV viewer (I understood from OP that a colleague needs to inspect the file before sending onward). This might of course not be feasible in larger organizations where one is not allowed to use other tools, or if the colleague is not cooperative.

  3. One can modify the formula so the output becomes ="+ab+c". When this is saved in CSV and imported again into Excel, it will just show +ab+c on the screen. But for OP the text in the CSV file must be just +ab+c, so therefore will not work.


Just a final remark, I could not (using Excel 2013 for Windows 10) replicate the behavior as observed by the OP. +ab+c in a CSV file never gave the #NAME? error for me when I opened the file; however, once I clicked in the cell, Excel would not let me ENTER it, unless I added a ' to indicate it was text; but I still could ESC and leave the cell alone).



I did not do any exhaustive testing, but I observed the following :




  • if the text starts with = you get the error always (except if followed by a text string in double quotes "...");

  • if it starts with + or -, there must be another operator and number also. So +ab+3 gave an error, but +b1+a not.


So maybe the behavior of Excel is different across versions, or any other settings influence this.



Just to illustrate, herewith a screenshot from the Text Import Wizard (which you find under Data > Get External Data > From Text. And in this final step (actually, you still get another step where you have to define where Excel has to put the text, either in a new worksheet, or in an existing worksheet) you have to select all columns (with shift or ctrl) and select Text as the Column data format.



enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 23 '18 at 11:49

























answered Nov 22 '18 at 18:05









Peter K.Peter K.

763212




763212













  • K.Still not solved my problem. Can you share me some screenshot?

    – Arvind
    Nov 23 '18 at 9:35













  • nope, not work yet. once I reopen it after all of the above step doing it still display #NAME?.

    – Arvind
    Nov 23 '18 at 10:05











  • @Arvind As I mentioned above, a CSV file is a text file, and every time you open a text file in Excel this will happen. If you want to consult/read/check this file as a text file in Excel, you have to force Excel to act as a text-reader, hence use import from text and define all columns as text (as in described in my answer). Not just once, but every time, and not only you, but also every other colleague who wants to check a text file with Excel. I understood from one of your comments on your question that it does work for you when you do the Data > Get External Data > From Text ?

    – Peter K.
    Nov 23 '18 at 11:12











  • thanks Peter for your suggestion and effort. If I did not open again and directly upload it works.

    – Arvind
    Nov 23 '18 at 11:37













  • @Arvind You're welcome. And I understand the confusion. A CSV file in windows is often (by default, if Excel is installed) associated with Excel instead of Notepad, so the icon that is associated with the file looks very similar to a real Excel file. But this is wrong, it has nothing to do with Excel. A CSV file is a pure text file ! It is just used (a.o.) to store or exchange data records between programs, where each field is separated with a comma (although it could also be a semicolon or other separator, while still having the CSV extension), and each record is on a new line.

    – Peter K.
    Nov 23 '18 at 11:56



















  • K.Still not solved my problem. Can you share me some screenshot?

    – Arvind
    Nov 23 '18 at 9:35













  • nope, not work yet. once I reopen it after all of the above step doing it still display #NAME?.

    – Arvind
    Nov 23 '18 at 10:05











  • @Arvind As I mentioned above, a CSV file is a text file, and every time you open a text file in Excel this will happen. If you want to consult/read/check this file as a text file in Excel, you have to force Excel to act as a text-reader, hence use import from text and define all columns as text (as in described in my answer). Not just once, but every time, and not only you, but also every other colleague who wants to check a text file with Excel. I understood from one of your comments on your question that it does work for you when you do the Data > Get External Data > From Text ?

    – Peter K.
    Nov 23 '18 at 11:12











  • thanks Peter for your suggestion and effort. If I did not open again and directly upload it works.

    – Arvind
    Nov 23 '18 at 11:37













  • @Arvind You're welcome. And I understand the confusion. A CSV file in windows is often (by default, if Excel is installed) associated with Excel instead of Notepad, so the icon that is associated with the file looks very similar to a real Excel file. But this is wrong, it has nothing to do with Excel. A CSV file is a pure text file ! It is just used (a.o.) to store or exchange data records between programs, where each field is separated with a comma (although it could also be a semicolon or other separator, while still having the CSV extension), and each record is on a new line.

    – Peter K.
    Nov 23 '18 at 11:56

















K.Still not solved my problem. Can you share me some screenshot?

– Arvind
Nov 23 '18 at 9:35







K.Still not solved my problem. Can you share me some screenshot?

– Arvind
Nov 23 '18 at 9:35















nope, not work yet. once I reopen it after all of the above step doing it still display #NAME?.

– Arvind
Nov 23 '18 at 10:05





nope, not work yet. once I reopen it after all of the above step doing it still display #NAME?.

– Arvind
Nov 23 '18 at 10:05













@Arvind As I mentioned above, a CSV file is a text file, and every time you open a text file in Excel this will happen. If you want to consult/read/check this file as a text file in Excel, you have to force Excel to act as a text-reader, hence use import from text and define all columns as text (as in described in my answer). Not just once, but every time, and not only you, but also every other colleague who wants to check a text file with Excel. I understood from one of your comments on your question that it does work for you when you do the Data > Get External Data > From Text ?

– Peter K.
Nov 23 '18 at 11:12





@Arvind As I mentioned above, a CSV file is a text file, and every time you open a text file in Excel this will happen. If you want to consult/read/check this file as a text file in Excel, you have to force Excel to act as a text-reader, hence use import from text and define all columns as text (as in described in my answer). Not just once, but every time, and not only you, but also every other colleague who wants to check a text file with Excel. I understood from one of your comments on your question that it does work for you when you do the Data > Get External Data > From Text ?

– Peter K.
Nov 23 '18 at 11:12













thanks Peter for your suggestion and effort. If I did not open again and directly upload it works.

– Arvind
Nov 23 '18 at 11:37







thanks Peter for your suggestion and effort. If I did not open again and directly upload it works.

– Arvind
Nov 23 '18 at 11:37















@Arvind You're welcome. And I understand the confusion. A CSV file in windows is often (by default, if Excel is installed) associated with Excel instead of Notepad, so the icon that is associated with the file looks very similar to a real Excel file. But this is wrong, it has nothing to do with Excel. A CSV file is a pure text file ! It is just used (a.o.) to store or exchange data records between programs, where each field is separated with a comma (although it could also be a semicolon or other separator, while still having the CSV extension), and each record is on a new line.

– Peter K.
Nov 23 '18 at 11:56





@Arvind You're welcome. And I understand the confusion. A CSV file in windows is often (by default, if Excel is installed) associated with Excel instead of Notepad, so the icon that is associated with the file looks very similar to a real Excel file. But this is wrong, it has nothing to do with Excel. A CSV file is a pure text file ! It is just used (a.o.) to store or exchange data records between programs, where each field is separated with a comma (although it could also be a semicolon or other separator, while still having the CSV extension), and each record is on a new line.

– Peter K.
Nov 23 '18 at 11:56


















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • 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%2fstackoverflow.com%2fquestions%2f53410490%2fi-am-getting-an-error-as-name-while-opening-csv-file-in-excel-2016%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

If I really need a card on my start hand, how many mulligans make sense? [duplicate]

Alcedinidae

Can an atomic nucleus contain both particles and antiparticles? [duplicate]