stop numbers in column to changing to scientific notation when moving in in a script2019 Community Moderator ElectionApplying “Automatic” number formattingGoogle Apps Script creating spreadsheet with unintentional E notationsGoogle Apps Script - How to copy a column(s) to another sheet at next available columnHow to prevent Google Forms from converting form input to scientific notation formatInserting string to sheet results in number insertedHow can I merge multiple tabs in a Google Spreadsheet using Google App Script?Google Apps Script: Return row number of newly added row and pass that as a variable to another functionMarking a column as “email_sent” once script sends email to avoid duplicate emailsGoogle Apps Script: Move data between spreadsheetsHow get the row number in certain column in google apps scriptString concatenation and function call on column in script editor
I can't die. Who am I?
Can I negotiate a patent idea for a raise, under French law?
Proving a statement about real numbers
What would be the most expensive material to an intergalactic society?
Does Christianity allow for believing on someone else's behalf?
What are you allowed to do while using the Warlock's Eldritch Master feature?
Is it a Cyclops number? "Nobody" knows!
Palindrome Fibonacci words
Plausibility of Mushroom Buildings
Ballot RPC message
Do cubics always have one real root?
I reported the illegal activity of my boss to his boss. My boss found out. Now I am being punished. What should I do?
In the late 1940’s to early 1950’s what technology was available that could melt ice?
Why do we say ‘pairwise disjoint’, rather than ‘disjoint’?
Can the alpha, lambda values of a glmnet object output determine whether ridge or Lasso?
Is a piano played in the same way as a harmonium?
The meaning of ‘otherwise’
What do you call someone who likes to pick fights?
Finitely many repeated replacements
Are small insurances worth it?
Why is a very small peak with larger m/z not considered to be the molecular ion?
Can we track matter through time by looking at different depths in space?
Trig Subsitution When There's No Square Root
Signed and unsigned numbers
stop numbers in column to changing to scientific notation when moving in in a script
2019 Community Moderator ElectionApplying “Automatic” number formattingGoogle Apps Script creating spreadsheet with unintentional E notationsGoogle Apps Script - How to copy a column(s) to another sheet at next available columnHow to prevent Google Forms from converting form input to scientific notation formatInserting string to sheet results in number insertedHow can I merge multiple tabs in a Google Spreadsheet using Google App Script?Google Apps Script: Return row number of newly added row and pass that as a variable to another functionMarking a column as “email_sent” once script sends email to avoid duplicate emailsGoogle Apps Script: Move data between spreadsheetsHow get the row number in certain column in google apps scriptString concatenation and function call on column in script editor
I have a Google sheets script which auto formats a spreadsheet. The issue I am having is when I move a column, the numbers in that column change to scientific notation. How can I keep that from happening. I tried setting the column data type as a string and as a number but neither one works. After the column moves, the values are returned in scientific notation.
Here is my code below:
//Set CC number as string data type
var ccType = sheet.getRange("K2:K");
ccType.setNumberFormat("@");
//Move the credit card and last 4 of CC columns next to the name column
var columnsCC = sheet.getRange("K1:L1");
sheet.moveColumns(columnsCC, 6);
google-apps-script google-sheets
add a comment |
I have a Google sheets script which auto formats a spreadsheet. The issue I am having is when I move a column, the numbers in that column change to scientific notation. How can I keep that from happening. I tried setting the column data type as a string and as a number but neither one works. After the column moves, the values are returned in scientific notation.
Here is my code below:
//Set CC number as string data type
var ccType = sheet.getRange("K2:K");
ccType.setNumberFormat("@");
//Move the credit card and last 4 of CC columns next to the name column
var columnsCC = sheet.getRange("K1:L1");
sheet.moveColumns(columnsCC, 6);
google-apps-script google-sheets
Have you checked Number format patterns in GSheets documentation?
– MαπμQμαπkγVπ.0
Mar 7 at 8:52
I have and tried a bunch, but still not working.
– Tarik Hodzic
2 days ago
ccType.setNumberFormat("@");this formats the column as text. have you triedccType.setNumberFormat('0.###############');? You don't say how many digits in the number, but refer BenFletcher's own answer at Applying “Automatic” number formatting. BTW, I didn't have your experience of numbers reverting to scientific notation. (That's a specific number format, you know).
– Tedinoz
20 hours ago
add a comment |
I have a Google sheets script which auto formats a spreadsheet. The issue I am having is when I move a column, the numbers in that column change to scientific notation. How can I keep that from happening. I tried setting the column data type as a string and as a number but neither one works. After the column moves, the values are returned in scientific notation.
Here is my code below:
//Set CC number as string data type
var ccType = sheet.getRange("K2:K");
ccType.setNumberFormat("@");
//Move the credit card and last 4 of CC columns next to the name column
var columnsCC = sheet.getRange("K1:L1");
sheet.moveColumns(columnsCC, 6);
google-apps-script google-sheets
I have a Google sheets script which auto formats a spreadsheet. The issue I am having is when I move a column, the numbers in that column change to scientific notation. How can I keep that from happening. I tried setting the column data type as a string and as a number but neither one works. After the column moves, the values are returned in scientific notation.
Here is my code below:
//Set CC number as string data type
var ccType = sheet.getRange("K2:K");
ccType.setNumberFormat("@");
//Move the credit card and last 4 of CC columns next to the name column
var columnsCC = sheet.getRange("K1:L1");
sheet.moveColumns(columnsCC, 6);
google-apps-script google-sheets
google-apps-script google-sheets
asked Mar 6 at 14:31
Tarik HodzicTarik Hodzic
5017
5017
Have you checked Number format patterns in GSheets documentation?
– MαπμQμαπkγVπ.0
Mar 7 at 8:52
I have and tried a bunch, but still not working.
– Tarik Hodzic
2 days ago
ccType.setNumberFormat("@");this formats the column as text. have you triedccType.setNumberFormat('0.###############');? You don't say how many digits in the number, but refer BenFletcher's own answer at Applying “Automatic” number formatting. BTW, I didn't have your experience of numbers reverting to scientific notation. (That's a specific number format, you know).
– Tedinoz
20 hours ago
add a comment |
Have you checked Number format patterns in GSheets documentation?
– MαπμQμαπkγVπ.0
Mar 7 at 8:52
I have and tried a bunch, but still not working.
– Tarik Hodzic
2 days ago
ccType.setNumberFormat("@");this formats the column as text. have you triedccType.setNumberFormat('0.###############');? You don't say how many digits in the number, but refer BenFletcher's own answer at Applying “Automatic” number formatting. BTW, I didn't have your experience of numbers reverting to scientific notation. (That's a specific number format, you know).
– Tedinoz
20 hours ago
Have you checked Number format patterns in GSheets documentation?
– MαπμQμαπkγVπ.0
Mar 7 at 8:52
Have you checked Number format patterns in GSheets documentation?
– MαπμQμαπkγVπ.0
Mar 7 at 8:52
I have and tried a bunch, but still not working.
– Tarik Hodzic
2 days ago
I have and tried a bunch, but still not working.
– Tarik Hodzic
2 days ago
ccType.setNumberFormat("@"); this formats the column as text. have you tried ccType.setNumberFormat('0.###############');? You don't say how many digits in the number, but refer BenFletcher's own answer at Applying “Automatic” number formatting. BTW, I didn't have your experience of numbers reverting to scientific notation. (That's a specific number format, you know).– Tedinoz
20 hours ago
ccType.setNumberFormat("@"); this formats the column as text. have you tried ccType.setNumberFormat('0.###############');? You don't say how many digits in the number, but refer BenFletcher's own answer at Applying “Automatic” number formatting. BTW, I didn't have your experience of numbers reverting to scientific notation. (That's a specific number format, you know).– Tedinoz
20 hours ago
add a comment |
0
active
oldest
votes
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%2f55025488%2fstop-numbers-in-column-to-changing-to-scientific-notation-when-moving-in-in-a-sc%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f55025488%2fstop-numbers-in-column-to-changing-to-scientific-notation-when-moving-in-in-a-sc%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
Have you checked Number format patterns in GSheets documentation?
– MαπμQμαπkγVπ.0
Mar 7 at 8:52
I have and tried a bunch, but still not working.
– Tarik Hodzic
2 days ago
ccType.setNumberFormat("@");this formats the column as text. have you triedccType.setNumberFormat('0.###############');? You don't say how many digits in the number, but refer BenFletcher's own answer at Applying “Automatic” number formatting. BTW, I didn't have your experience of numbers reverting to scientific notation. (That's a specific number format, you know).– Tedinoz
20 hours ago