I am getting an error as #NAME? while opening CSV File in excel 2016
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
add a comment |
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
Comments are not for extended discussion; this conversation has been moved to chat.
– Samuel Liew♦
Nov 25 '18 at 3:53
add a comment |
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
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
excel excel-formula
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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):
- 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 asTEXT
(this is the most important step, see screenshot below). This is a 100% foolproof solution. - 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.
- 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
.
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 useimport 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 theData > 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
|
show 1 more comment
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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):
- 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 asTEXT
(this is the most important step, see screenshot below). This is a 100% foolproof solution. - 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.
- 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
.
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 useimport 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 theData > 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
|
show 1 more comment
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):
- 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 asTEXT
(this is the most important step, see screenshot below). This is a 100% foolproof solution. - 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.
- 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
.
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 useimport 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 theData > 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
|
show 1 more comment
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):
- 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 asTEXT
(this is the most important step, see screenshot below). This is a 100% foolproof solution. - 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.
- 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
.
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):
- 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 asTEXT
(this is the most important step, see screenshot below). This is a 100% foolproof solution. - 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.
- 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
.
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 useimport 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 theData > 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
|
show 1 more comment
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 useimport 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 theData > 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
|
show 1 more comment
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Comments are not for extended discussion; this conversation has been moved to chat.
– Samuel Liew♦
Nov 25 '18 at 3:53