+ Reply to Thread
Results 1 to 4 of 4

If conditions in 2 columns are true then add 3rd column

  1. #1
    Registered User
    Join Date
    01-09-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    27

    If conditions in 2 columns are true then add 3rd column

    seems easy but for some reason google spreadsheets is being difficult.

    say i have

    a b c
    9-jan NBA 0
    9-jan NCAAM 1.1
    12-jan nfl 2.21
    21-jan nfl 1.379
    3-feb nfl -1.5


    I want it so if i made an nfl bet in january then add the value in column c.

    =SUMPRODUCT(--(A1:A1000="1"),--(B1:B1000="nfl"),c1:c1000)

    that is what i have but it comes up #ERROR!

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: If conditions in 2 columns are true then add 3rd column

    Just like yesterday, never messed with Google spreadsheets so don't know what will or won't work, but this is what works in a normal sheet...

    The MONTH of Jan equals 1

    =SUMPRODUCT(--(MONTH(A1:A1000)=1),--(B1:B1000="nfl"),C1:C1000)

    As an answer, this formula produces >> 3.589
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    01-09-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    27

    Re: If conditions in 2 columns are true then add 3rd column

    yea google sucks I guess. coming up with parse error

    Any other suggestions?
    Last edited by traggs25; 01-10-2013 at 10:34 PM.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: If conditions in 2 columns are true then add 3rd column

    Does the month function work at all?

    Place a date in a cell and then try =MONTH(C1).

    What do you get?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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