+ Reply to Thread
Results 1 to 4 of 4

SUM help

  1. #1
    Registered User
    Join Date
    10-28-2008
    Location
    NYC
    Posts
    2

    SUM help

    Hey, I haven't really worked with excel in a while but I know the basic functions so I am not a complete idiot. However, I am stuck here. I have 2 columns, one is a store name and the other is a price. How would I write a function to give me the sum of one of the stores. Example:


    BC-------------$10
    BC-------------$8
    N---------------$10
    BCG----------$5
    BC------------$7
    B--------------$6

    I want to write a function in a separate column that adds all of the BC etc.

    Thanks for your help!

    Ian

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    =Sumif(A1:A6,"BC",B1:B6)

    Adjust ranges to suit
    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
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Sumif

    Hi,

    use the SUMIF function

    =SUMIF(range, criteria, sum_range)

    =SUMIF(A1:A100,"BC",B1:B100)

    this will give you the sum of all the values in B1 to B100 where the corresponding cell in Column A has the text "BC"

    HTH

    Teylyn

  4. #4
    Registered User
    Join Date
    10-28-2008
    Location
    NYC
    Posts
    2
    Awesome, thanks

+ 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