+ Reply to Thread
Results 1 to 6 of 6

Formula Needed to calculate total totals in one column based on value in another...

  1. #1
    Forum Contributor
    Join Date
    07-06-2013
    Location
    USA
    MS-Off Ver
    MS Office 2019 Pro Plus
    Posts
    182

    Formula Needed to calculate total totals in one column based on value in another...

    I need a formula for the following scenario:

    A1:A10 = single letter entries such as U or S
    B1:B10 = number values entered : lets say each value is 200
    C1 = formula

    For this example, Lets say that A1 through A4 have the letter "U" and A5 through A10 have the letter "S"

    I only want to calculate the totals (B1:B4) associated with "U" (A1:A4) into C1
    As I change letters I want C1 to recalculate.

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

    Re: Formula Needed to calculate total totals in one column based on value in another...

    Try...

    =SUMIF(A1:A10,E1,B1:B10)

    Where E1 holds the value "U" or "S"
    HTH
    Regards, Jeff

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula Needed to calculate total totals in one column based on value in another...

    Sounds like a SUMIF description.

    Entered in C1:

    =SUMIF(A1:A10,"U",B1:B10)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    04-29-2012
    Location
    Florida, USA
    MS-Off Ver
    2010, 2013
    Posts
    34

    Re: Formula Needed to calculate total totals in one column based on value in another...

    You will need an input cell to determine which letter values you want to calculate, so in C1 enter =SUMIF(A1:A10,D1, B1:B10), and in D1 enter the desired letter, such as "U". As you change the letter in D1, C1 will automatically recalculate.

  5. #5
    Registered User
    Join Date
    04-29-2012
    Location
    Florida, USA
    MS-Off Ver
    2010, 2013
    Posts
    34

    Re: Formula Needed to calculate total totals in one column based on value in another...

    Ha, make a post and there are already 2 of the same.

  6. #6
    Forum Contributor
    Join Date
    07-06-2013
    Location
    USA
    MS-Off Ver
    MS Office 2019 Pro Plus
    Posts
    182

    Re: Formula Needed to calculate total totals in one column based on value in another...

    worked great, thx

+ 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