+ Reply to Thread
Results 1 to 8 of 8

Basic Sum Formula in Google Sheets

  1. #1
    Forum Contributor
    Join Date
    07-17-2012
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    218

    Basic Sum Formula in Google Sheets

    Hi All,

    I have a basic question. In the attached, you can see I have a basic 3 columns. The cells should be self-explanatory I hope. For the 3rd column, the blank cells represent "Unpaid".

    I would like a formula that says:
    a) The sum that John has "Unpaid"
    b) The sum that Mike has "Unpaid"

    Below is how it looks in Excel, but doesn't quite work in Sheets
    =SUMIFS(A1:A10,B1:B10,"Mike",C1:C10,"")

    =SUMIFS(A1:A10,B1:B10,"John",C1:C10,"")

    Can anyone help? Thanks.
    Attached Images Attached Images

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Basic Sum Formula in Google Sheets

    Please do not upload a picture of your file...rather, upload a sample of your workbook, showing what data you are working with, a few samples of your expected outcome is (manually entered is ok) and how you arrived at that. (exclude sensitive info). Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Contributor
    Join Date
    07-17-2012
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    218

    Re: Basic Sum Formula in Google Sheets

    Sorry, here is the attached. I'm trying to convert this simple formula to a Google Sheet.

    Thanks.
    Attached Files Attached Files

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Basic Sum Formula in Google Sheets

    Hi. Results of your formula are correct.

    I don't use Google sheets but as i know you can use SUMPRODUCT on these..

    In G3 and copy down..

    =SUMPRODUCT(($B$1:$B$6=E3)*($C$1:$C$6="")*($A$1:$A$6))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Basic Sum Formula in Google Sheets

    you could also use the FILTER function
    =iferror(SUM(filter($A$1:$A$10,$B$1:$B$10=E3,$C$1:$C$10="")),0)
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  6. #6
    Forum Contributor
    Join Date
    07-17-2012
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    218

    Re: Basic Sum Formula in Google Sheets

    Hi Guys, I appreciate the help. I tried copying both your code to G3, and both returned sums of 0. Any ideas?

  7. #7
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: Basic Sum Formula in Google Sheets

    that's what they should return for the data you have-nothing matches all the criteria :-)

  8. #8
    Forum Contributor
    Join Date
    07-17-2012
    Location
    N/A
    MS-Off Ver
    Excel 2010
    Posts
    218

    Re: Basic Sum Formula in Google Sheets

    I understand, thank you!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Google (sheets, forms, etc)
    By BRIZZLE101 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 04-03-2013, 08:55 PM
  2. Replies: 0
    Last Post: 10-15-2012, 05:18 PM
  3. Linking sheets - Basic Requirements
    By lifeisaspreadsheet in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 10-12-2012, 02:52 PM
  4. Replies: 0
    Last Post: 11-05-2009, 04:47 AM
  5. [SOLVED] Naming Sheets in Visual Basic
    By [email protected] in forum Excel General
    Replies: 1
    Last Post: 06-17-2005, 06:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1