Results 1 to 4 of 4

Thread: Need help with an Excel formula [Resolved]

  1. #1

    Thread Starter
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Need help with an Excel formula [Resolved]

    Given the following data, I'd like the sum of data in column B where column A is "good".

    A_________B
    good______10
    good______20
    good______10
    bad_______99
    bad_______99
    good______10

    So in this case I'd like 50 to appear under column B.

  2. #2
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263
    Seems like you need a hidden column C

    With a formula like =IF(A1="GOOD",B1,0)

    Dup that - sum it at the bottom and put the total in column B...

    Don't have EXCEL on this workstation - so I could have bad syntax...

  3. #3

  4. #4
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263
    EXCEL - what a mystery

    I have a colleague I always call on for stuff like this - I didn't even know there was a SUMIF function - but it sure makes sense in this respect...

Posting Permissions

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



Click Here to Expand Forum to Full Width