+ Reply to Thread
Results 1 to 5 of 5

Sum total by cell type

  1. #1
    Registered User
    Join Date
    03-27-2015
    Location
    los angeles
    MS-Off Ver
    2013
    Posts
    40

    Sum total by cell type

    Help! I've searched and searched and I can't seem to make my formula work the way I need it to.

    I have 2 cells.
    A contains a total # (IE, 1,2,3,4)
    B contains a cell with text that is static (Does not change)
    C - where my formula is summing at

    The formula i'm using is
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This works great... with one problem. If A1 has 1, and A2 has 2, the formula only see's a sum of 2 (Not 3).

    I know its probably simple, but i've tried and tried.

    PLEASE HELP!

    Thank you!

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Sum total by cell type

    Change,

    =SUMPRODUCT(--(A1:A5>0), --(B1:B5="text"))

    to

    =SUMPRODUCT(A1:A5, --(B1:B5="text"))

    since if you add >0 it will convert to True (=1) or False (=0) which is why you get a sum of 2.

    Or try,

    =SUMIF(B1:B5,"text",A1:A5)

    Hope that helps

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,101

    Re: Sum total by cell type

    ... or

    =SUMIF(B:B,"text",A:A)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Registered User
    Join Date
    03-27-2015
    Location
    los angeles
    MS-Off Ver
    2013
    Posts
    40

    Re: Sum total by cell type

    Thanks! Both of these worked, and I knew it was something small. Thank you again! Rep+ for both of you.

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,101

    Re: Sum total by cell type

    Cheers... and you're welcome.

+ 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. [SOLVED] Macro to Total a Column Up 15 cells and place total in cell of last row
    By guitarsweety in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-20-2014, 05:25 PM
  2. [SOLVED] need vba help to sum the overall total ,>2 days total & change cell values
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-17-2014, 01:55 PM
  3. Need to add drop down type of chart to a row - total newb.
    By bubbaganoosh in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-17-2013, 11:03 AM
  4. Need a macro to total different lines and move total to new cell
    By cmefix in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-09-2012, 02:08 PM
  5. total by job type and date?
    By IsabellaLearning in forum Excel General
    Replies: 14
    Last Post: 05-27-2010, 09:02 PM
  6. adding a cell to a total if the cell value next to it is of a specific type
    By justchris in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-20-2008, 04:05 AM
  7. How to caculate total amount of an item type from a list?
    By MsMiraRaven in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-08-2008, 12:45 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