+ Reply to Thread
Results 1 to 6 of 6

How to calculate totals based on Cell value

  1. #1
    Registered User
    Join Date
    12-24-2014
    Location
    Ohio
    MS-Off Ver
    2010
    Posts
    13

    How to calculate totals based on Cell value

    I'm going to try and explain my request, some how!!

    In column A the user will enter text like BT1, BT2, BT3
    In column C a value is generated automatically

    I need to have cells that sum the values in the C column based on the values of the A column,
    In other words I need the summed value of C for all the entries. (Ohh this is difficult.)
    If column A has 4 "BT1" I need it to sum the four values in column C that pertain to "BT1"
    Excel.JPG

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: How to calculate totals based on Cell value

    It's not difficult, in fact it's easy. In H6 copied down:

    =SUMIF($A$6:$A$11,G6,$C$6:$C$11)

    By the way, there are only 3 BT1 entries in column A.
    Last edited by AliGW; 01-21-2017 at 10:53 AM.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-24-2014
    Location
    Ohio
    MS-Off Ver
    2010
    Posts
    13

    Re: How to calculate totals based on Cell value

    Thank you for chiming in AliGW,
    I'm looking for column H to sum the values of column C for each entry of BT1, BT2 and BT3 in the A column.
    BT1 was entered 3 times in column A. I'm looking for the cell in column H to populate the totals from column C based on the entries = BT1, BT2 and so on.
    Sorry, this is so crazy . . . .

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: How to calculate totals based on Cell value

    Yes, and that is what the formula does. Have you tried it? I assume not.

    Excel 2016 (Windows) 32 bit
    A
    B
    C
    D
    E
    F
    G
    H
    1
    2
    3
    4
    5
    6
    BT1
    7
    BT1
    19
    7
    BT2
    4
    BT2
    6
    8
    BT3
    8
    BT3
    8
    9
    BT1
    5
    10
    BT1
    7
    11
    BT2
    2
    Sheet: Sheet1

    Excel 2016 (Windows) 32 bit
    H
    6
    =SUMIF($A$6:$A$11,G6,$C$6:$C$11)
    7
    =SUMIF($A$6:$A$11,G7,$C$6:$C$11)
    8
    =SUMIF($A$6:$A$11,G8,$C$6:$C$11)
    Sheet: Sheet1
    Last edited by AliGW; 01-21-2017 at 10:52 AM.

  5. #5
    Registered User
    Join Date
    12-24-2014
    Location
    Ohio
    MS-Off Ver
    2010
    Posts
    13

    Re: How to calculate totals based on Cell value

    When I initially tried it I was getting 0 value,
    The formula you provided is working perfectly after I revisited and discovered where I made my mistake, Thank You very much for your help,

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: How to calculate totals based on Cell value

    You are very 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] Calculate totals within and based on information in 3 worksheets
    By NewbieOfVBA in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-16-2012, 04:40 PM
  2. Calculate Commission based on running totals
    By SebastienSoum in forum Excel General
    Replies: 5
    Last Post: 12-21-2011, 01:55 PM
  3. Calculate totals based on selected rows
    By marcusjb in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-27-2011, 05:36 AM
  4. How do i calculate totals based on yes/no lists?
    By kingchunk in forum Excel General
    Replies: 3
    Last Post: 05-04-2010, 03:37 PM
  5. Calculate totals based on date
    By shane24 in forum Excel General
    Replies: 4
    Last Post: 01-04-2007, 03:29 AM
  6. Calculate PivotTable Item Totals Based On Cell Contents?
    By Teeroi in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-26-2006, 03:55 AM
  7. [SOLVED] Calculate PivotTable Item Totals Based On Cell Contents?
    By Teeroi in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-21-2006, 12:35 PM
  8. Calculate PivotTable Item Totals Based On Cell Contents?
    By Teeroi in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-21-2006, 12:32 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