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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:42:21+00:00 2026-06-16T05:42:21+00:00

I am using Google Apps Script to work with a spreadsheet. My code isn’t

  • 0

I am using Google Apps Script to work with a spreadsheet. My code isn’t working, so I’m working on getting out the bugs. It’s supposed to copy the spreadsheet values into an array, make some changes in the array, and then use those changes to re-write some parts of the spreadsheet and re-format other parts.

As part of my bug-checking, I tried writing the array back to a cell in the spreadsheet after all the desired changes are made. When I do, I get the error in the question title:

error: Matrix is not rectangular {" ","Score","Max Poss.","","","","asdf","","","","","","","";"Steve:",1,133,"","","","eFEf","","","","","","","";"Chris:",0,126,"","","","First we test the color change.","","","","","","","";"Tyler:",5,130,"","","","And now let's see...","","","","","","","";"Billy:",3,127,"","","","df","","","","","","","";"Drew:",0,122,"","","#N/A","gtttt","","","","","","","";"Yllib:",9,133,"","","","vrrr","","","","","","","";"","","","","","","","","","","","","","";"-W/L-","Drew","Steve","Chris","Tyler","Billy","HOME","AWAY","Billy","Tyler","Chris","Steve","Drew","-W/L-";"l",4,"",4,6,"","","",3,"","",1,"","w";"W","","","",5,"","","",9,"",6,3,5,"l";"",3,12,2,2,2,"","","","","","",""," ";"","","","","","","","",11,1,5,8,6," ";"",10,15,15,8,13,"","","","","","",""," ";"",8,10,14,16,12,"","","","","","",""," ";"","","","","","","","",10,14,10,16,14," ";"",13,13,11,13,16,"","","","","","",""," ";"","","","",4,"","","",4,"",9,6,16," ";"","",9,"","","","","",1,3,8,"",9," ";"","","","","","","","",8,12,13,2,12," ";"","","",1,"",5,"","","",11,"",4,1," ";"","","","","","","","",15,10,12,14,11," ";"",2,"",3,"",6,"","","",9,"",5,"","     ";"W";"",2,"",7,7,7,"NYG -2.5","","","","",7,""," "}

I’ve tried creating the array both using
var sheetArray = new Array (30);
and
var sheetArray = [];
with the same results.

I haven’t turned up much on Google. I guess my big question is whether I am getting this error because I’m trying to display a rectangular array in a spreadsheet cell that isn’t compatible, or if the problem is with the creation of the array itself or some other aspect unrelated to display.

  • 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-16T05:42:22+00:00Added an answer on June 16, 2026 at 5:42 am

    I presume you are testing by writing an embedded array in a spreadsheet formula:

    ={"a","b","c";"d","e","f"}

    You are getting the error message because your matrix is not rectangular. 🙂

    The offending row is the second last row, where you have one element “W” in that row:

    ..." ";"W";"",2,"",7,7,7,"NYG -2.5","","","","",7,""," "}

    So I guess there is an error somewhere in your construction of the array (if you needed help with that, feel free to post some code into the question).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Google Apps Script, I've made a UI for use on a Google Spreadsheet.
with google apps script using IE 9 image.setStyleAttribute(position, fixed); is not working for me.
Using Xml to parse an XML document in Google Apps Script : http://code.google.com/googleapps/appsscript/articles/XML_tutorial.html#HowItWorks But
I have customised a menu in Google Spreadsheet using Google Apps Script. The problem
Using Google Apps Script. I know it is not a programming issue, but got
SETUP: Using Google Apps Script's UI (doGet) with tabPanel option. At the bottom of
Has anyone found support for creating or changing a drawing using Google Apps Script?
As described here: https://developers.google.com/apps-script/html_service#GoogleScriptAPI I am using a little form in my google app
I am simply trying to use google apps script code to create a new
Am trying to set formula for a cell in goole spreadsheet using apps script....

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.