# GoogleDocs Spreadsheet Super Challenge!

November 26, 2008 8:11 AM Subscribe

ExcelFilter: I need to make a cell in one column tell another cell in that row to add itself to another cell somewhere else entirely. Added difficulty! I need to do this in Google Docs.

I have a sheet where one column (column C) will only have five set text values. (And by set values I mean there will only ever be one of five things that are typed in a cell in this column. I don't mean that Excel knows what these values are.)

Whenever one of these five values are entered, there will also be a numerical value typed in a different cell in that row (always in column G). That numerical cell gets summed into a numerical cell on a different portion of the sheet.

What I'd like to do is have the sheet recognize when one of the five text values is typed into column C and have that trigger the sheet to automatically add whatever is in column G to the sum in the ensuing cell (H3 for our purposes here).

So, for example: cell C12 has "Graphics" typed into it, then "4" typed into cell G12. I would like G12 to know that it has to automatically add itself to the sum in cell H3 based on the fact that "Graphics" has been typed into C12.

Unfortunately, I need to do this in Google Docs' spreadsheet program. Is this even possible?

I have a sheet where one column (column C) will only have five set text values. (And by set values I mean there will only ever be one of five things that are typed in a cell in this column. I don't mean that Excel knows what these values are.)

Whenever one of these five values are entered, there will also be a numerical value typed in a different cell in that row (always in column G). That numerical cell gets summed into a numerical cell on a different portion of the sheet.

What I'd like to do is have the sheet recognize when one of the five text values is typed into column C and have that trigger the sheet to automatically add whatever is in column G to the sum in the ensuing cell (H3 for our purposes here).

So, for example: cell C12 has "Graphics" typed into it, then "4" typed into cell G12. I would like G12 to know that it has to automatically add itself to the sum in cell H3 based on the fact that "Graphics" has been typed into C12.

Unfortunately, I need to do this in Google Docs' spreadsheet program. Is this even possible?

reptile has it, except that the cell ranges should be of equal length. I would suggest using column references instead - provided there is no other data in those columns.

The formula in H3 would look like this, =SUMIF(C:C, "Graphics", G:G).

So if Graphics is entered into any cell in column C, the formula will sum the corresponding values in column G.

This should work in Excel and Google Docs, and is cleaner for Google Docs since, unlike Excel, their spreadsheets supposedly are not limited to 65536 rows.

posted by rube goldberg at 8:55 AM on November 26, 2008

The formula in H3 would look like this, =SUMIF(C:C, "Graphics", G:G).

So if Graphics is entered into any cell in column C, the formula will sum the corresponding values in column G.

This should work in Excel and Google Docs, and is cleaner for Google Docs since, unlike Excel, their spreadsheets supposedly are not limited to 65536 rows.

posted by rube goldberg at 8:55 AM on November 26, 2008

Erm yeah 63355 was a typo, meant to put 65535. I blame lack of coffee. Good luck with your spreadsheet.

posted by reptile at 9:20 AM on November 26, 2008

posted by reptile at 9:20 AM on November 26, 2008

« Older How Do I Get Good At What I Do? | I'd like some tips on clicker training my new dog. Newer »

This thread is closed to new comments.

posted by reptile at 8:24 AM on November 26, 2008