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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T16:31:23+00:00 2026-06-10T16:31:23+00:00

Using Google Spreadsheets. Here’s an attempt to replicate my table needs: 2012-08-30 food $15

  • 0

Using Google Spreadsheets. Here’s an attempt to replicate my table needs:

2012-08-30    food     $15    expensive dinner
2012-08-30    food     $10    pizza!
2012-08-30    other    $30    that damn painting
2012-09-02    home     $40    can't remember
2012-09-02    other    $5     toilet paper
2012-09-02    home     $2     buying new flowers

I can already do 2 things with it, but it is so far from optimal it becomes negligible.

First, Using SUMIF:

food    $25    <-    SUMIF(B:B;"food";C:C)
other   $35
home    $42

Then, combining it with ARRAYFORMULA:

           food home other
2012-08-30  $25   $0   $30 <- ARRAYFORMULA(SUMIF(A:A&B:B;2012-08-30&"food";C:C))
2012-09-02   $0  $42    $5

See where this can become too big? Well…

I want to do 2 graphic charts out of this. Of course, the main one is the second:

  1. A pie, from the first example. On using the SUMIF, I need to explicitly, write "food" there (or reference, whatever). Could that be done automagically filling every tag found?

    While I can live without this, it may be the answer to the second, main question;

  2. A plot or timeline, from the arrayformula. It should trace each tag in a plot along the time.

Is it even possible to be done? If not, any suggestions? I’m keen to start scripting if needed (and worth it). Or move away from google. Or from spreadsheets all together (lastly). Python maybe? Ruby?

Or maybe I’ll just leave it as it is, if it’s tooooo much trouble.

  • 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-10T16:31:24+00:00Added an answer on June 10, 2026 at 4:31 pm

    Using QUERY, you can generate the first table (with headers) using:

    =QUERY(B:C;"select B, sum(C) where B != '' group by B label B 'Category', sum(C) 'Total'";0)
    

    and this should be fairly easily plotted as a pie chart. You can select a range for the chart that is much longer than the current table to accommodate growing data, and the pie chart will conveniently ignore blank rows.

    The second table can be generated using:

    =QUERY(A:C;"select A, sum(C) where A is not null group by A pivot B";0)
    

    and you can experiment with various chart types to achieve the desired visualisation.


    edit

    To provide a table that populates with zeros instead of blanks as per your comment; assuming the upper left (blank) cell of the table is I1, then in I2:

    =SORT(UNIQUE(A:A))
    

    and in J1:

    =TRANSPOSE(SORT(UNIQUE(B:B)))
    

    and then in J2:

    =ArrayFormula(IF(I2:I*LEN(J1:1);MMULT(I2:I=TRANSPOSE(A:A);(J1:1=B:B)*C:C);IFERROR(1/0)))
    

    Note this will populate CONTINUE functions to the far bottom and far right of the spreadsheet, over-writing everything in their path. So probably best to have a sheet dedicated to this table.

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

Sidebar

Related Questions

I copied guava-11.0.2 from gdata-java-client/gdata/java/deps/ when using google spreadsheets as described here /Setting up
Here is the following code-snippet I'm using in my Google Spreadsheet onEdit() function: else
I am using google spreadsheets and I am attempting to make use of libraries.
I've read through the Google Spreadsheets API PHP documentation. All examples are using Zend,
I'm trying to access my Google spreadsheets using the GData API. I have followed
As described here: https://developers.google.com/apps-script/html_service#GoogleScriptAPI I am using a little form in my google app
I am starting to try some experiments using Google SpreadSheets as a DB and
I using wso2 carbon to get data from an excel spreadsheet and google spreadsheets,
I've seen; Accessing Google Spreadsheets with C# using Google Data API and http://code.google.com/apis/spreadsheets/data/2.0/developers_guide_dotnet.html#CreatingRows However
I found javascript solution for removing gridlines on Google docs spreadsheets (using download as

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.