Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8097881
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T21:54:07+00:00 2026-06-05T21:54:07+00:00

I’m making a spreadsheet in Google Docs where i could track my data. I

  • 0

I’m making a spreadsheet in Google Docs where i could track my data. I already have some starting values entered into cells, also some cells with functions. I wanted to make a script that would add these values in a list where are previous records.

To explain it more clearly.

I have a table with values:

[A1] [B1] [C1] [D1] etc.

[24.52] [12.84] [=A1-B1] [=(100/A1)*B1] etc.

After I press a button I want these values to be added in a list in another sheet (preferred) or in the same sheet just under everything I already have. These values in list shouldn’t change anymore after I edit my main table.

List should be like this:

[…..] […..] […..] [……] <— […] that’s where previous values were added

[24.52] [12.84] [11.68] [52.36%] <— last added values

New data would be added in a new row.

I have a script but there is a problem with adding values to the cells. When I press that button it adds #NAME? in cells with comment “unknown range name A16” not their real values.

I use this script – This one only add new values to the same sheet:

function AddRecord() {

  var doc = SpreadsheetApp.getActiveSpreadsheet();
  var lastRow = doc.getLastRow();
  var cell = doc.getRange('A1').offset(lastRow, 0);
  cell.setValue('=A16');
  cell.offset(0, 1).setValue('=B16');
  cell.offset(0, 2).setValue('=C16');
  cell.offset(0, 3).setValue('=D16');
}

=A16, =B16, =C16, =D16 are cells that contain those values i need but how should i write this code that it would add them correctly?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T21:54:09+00:00Added an answer on June 5, 2026 at 9:54 pm

    Not sure, if I completely understood your question.
    To copy the values of the last row from “Tabellenblatt1” to a new row in “Tabellenblatt2”, you could use the following simple function:

    function myFunction() {
      var doc = SpreadsheetApp.getActiveSpreadsheet();
      var sheetFrom = doc.getSheetByName("Tabellenblatt1");
      var sheetTo = doc.getSheetByName("Tabellenblatt2");  
      var lastRow = sheetFrom.getLastRow();
      var cell = sheetFrom.getRange('A1').offset(lastRow, 0);
      var rowTo = sheetTo.getLastRow() + 1;
      for( var i = 1; i < 5; i++) {
         sheetTo.getRange(rowTo, i).setValue( sheetFrom.getRange(lastRow, i).getValue());
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some data like this: 1 2 3 4 5 9 2 6
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I'm making a simple page using Google Maps API 3. My first. One marker
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
I have this code to decode numeric html entities to the UTF8 equivalent character.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.