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 8015209
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:11:21+00:00 2026-06-04T20:11:21+00:00

I have a spreadsheet which extracts and accumulates all the required data from other

  • 0

I have a spreadsheet which extracts and accumulates all the required data from other 6 spreadsheets using Vmerge and Query formulas and all the consolidated data will be converted to pdf and emaild to mail ids using trigger event.

Here begins the problem every time the attachment mail posted consist all the headers and other format, but the data which is extracted does not appear. It seems to appear like - to open the same spreadsheet, after a while all the - (hyphens) are replaced by the data / Hope all the data updates after a while of opening the spreadsheet.

link for sheet

screenshot

Can anyone direct me to make this issue sorted out.

For this solution should be -> all the data should be updated and then the email script should work; or either it should update before emailing script starts.

Or any other better ideas are appreciated.

  • 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-04T20:11:22+00:00Added an answer on June 4, 2026 at 8:11 pm

    Some spreadsheet formulas, like ImportRange and ImportXml (and also Apps Script custom formulas) are only evaluated when there’s someone logged in the spreadsheet. It’s like these functions need an account to be evaluated from, for example, in importRange the account logged in must have access to the range being imported, if you share this spreadsheet with someone but not the importRange source, when this person is viewing this spreadsheet, the importRange function will not work (well, unless you’re also in the spreadsheet and the formulas have already been evaluated).

    Bottom line is, you can’t have this formulas and use a script triggered on time-driven (or other trigger that does not require someone logged in) and expect the script to be able to read this data.

    The workaround though is quite simple. Do what the importRange function does inside your script! e.g.

    var source = SpreadsheetApp.openById('source-spreadsheet-key');
    var data = source.getSheetByName('List').getRange('I6:AT500').getValues();
    //then save it somewhere
    var s = Spreadsheet.getActive().getSheetByName('hidden-import');
    s.getRange('I6:AT500').setValues(data);
    SpreadsheetApp.flush(); //force the data to be written
    //so all the other formulas on your spreadsheet get updated with the new data
    

    All your “logic” formulas, like query and vmerge, which are difficult for the script to mimic, can be left on the spreadsheet, but reference this “hidden-import” sheet I just invented instead of nesting importRange directly.

    [edit]

    To copy only non-empty rows do like this:

    var data = SpreadsheetApp.openById('source-spreadsheet-key').
      getSheetByName('List').getDataRange().getValues();
    Spreadsheet.getActive().getSheetByName('hidden-import').
      getRange(1,1,data.length,data[0].length).setValues(data);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Delphi application which reads data from an excel spreadsheet using code
I have an excel spreadsheet which contains addresses. I'm reading the data from the
I have inherited an Excel spreadsheet which contains an external data query. I can
I have been using the spreadsheet gem from http://spreadsheet.ch/ to read in seed data
Like many, I have spreadsheet that draws data from over 40 text files as
I have a spreadsheet I'm using to compile text that changes all the time.
I have one spreadsheet which has 5 sheets All the sheets share the same
I have an Excel spreadsheet which has a pivot table on it. The data
I have a spreadsheet which I am using to design a Linear Fresnel Collector:
Suppose you have inherited a massive spreadsheet which contains lots and lots of data.

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.