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










0















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);









share|improve this question






















  • 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 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
















0















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);









share|improve this question






















  • 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 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














0












0








0








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);









share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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 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


















  • 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 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

















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













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
);



);













draft saved

draft discarded


















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















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%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





















































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

AWS Lex not identifying response if by a variable The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceEnforcing custom enumeration in AWS LEX for slot valuesHow to give response based on user response in Amazon Lex?Intercepting AWS Lambda Response to a AWS Lex QueryLex chat bot error: Reached second execution of fulfillment lambda on the same utteranceamazon lex showing invalid responseLambda response send back to Lex slot?Response card in Amazon lexAmazon Lex - Lambda response return HTML to botHow can I solve 424 (Failed Dependency) (python) obtained from Amazon lex?

Алба-Юлія

Захаров Федір Захарович