+ Reply to Thread
Results 1 to 3 of 3

help with totalling a column based on value in previous column

  1. #1
    Registered User
    Join Date
    05-05-2011
    Location
    Raleigh, North Carolina
    MS-Off Ver
    Excel 2003
    Posts
    2

    Question help with totalling a column based on value in previous column

    So here is what I need help with... I have a spreadsheet I am creating and want a cell at the bottom to search for a term in cells b2:b100 and if it equals one term to return the numerical value in column c. I also want it to keep a running total of these values so for example it would read

    B/ C
    Renawal/New Sub/ Price
    Renewal/ $5.00
    Renewal/ $10.00
    Renewal/ $20.00
    New Sub/ $15.00


    Total Renewal Dollars: ????? <---the total I am looking for. So in column "B" it would find all columns with renewal and add up their "C" values.

    I tried vlookup and "if" statements and can only get them to return the value from C2.

    Thanks for any and all help!!!!
    Last edited by NBVC; 05-06-2011 at 10:12 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: help with totalling a column based on value in previous column

    Try SUMIF

    e.g.

    =SUMIF(A1:A10,"Renewal",B1:B10)

    this sums B1:B10 where A1:A10 contain word Renewal.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-05-2011
    Location
    Raleigh, North Carolina
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: help with totalling a column based on value in previous column

    Quote Originally Posted by NBVC View Post
    Try SUMIF

    e.g.

    =SUMIF(A1:A10,"Renewal",B1:B10)

    this sums B1:B10 where A1:A10 contain word Renewal.
    This worked like a charm! THANK YOU!!!!!!!!!!!!!!!!! YOU ROCK!

+ 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