+ Reply to Thread
Results 1 to 5 of 5

Sum costs for each supplier

  1. #1
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Chattanooga, TN
    MS-Off Ver
    2021
    Posts
    205

    Sum costs for each supplier

    I need to get a total cost of goods for each supplier. The example spreadsheet shows supplier in column A, prices in column B. How do I get a formula that can automatically sum the prices for each supplier? Desired output is in column C

    thanks!
    Attached Files Attached Files
    Last edited by Ocean Zhang; 08-05-2013 at 06:49 PM.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Sum costs for each supplier

    Put
    =SUMIF(A:A, A2, B:B) in C2 and drag down.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Sum costs for each supplier

    If you want the total only shown once, try this, copied down...

    =IF(COUNTIF($A$2:A2,A2)>1,"",SUMIF($A$2:$A$34,A2,$C$2:$C$34))

    If you want the total shown against each row, use this, copied down...
    =SUMIF($A$2:$A$34,A2,$C$2:$C$34)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Chattanooga, TN
    MS-Off Ver
    2021
    Posts
    205

    Re: Sum costs for each supplier

    both worked. thanks!!!

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Sum costs for each supplier

    Happy to help and thanks for the feedback

+ 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. I have supplier name in excel.. I need a VBA to the Supplier Web URL
    By Kiran Kurapati in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2013, 01:25 AM
  2. SUM according to Month and Supplier
    By koteshi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-26-2011, 02:55 AM
  3. Match supplier name
    By bbthaa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-07-2011, 08:41 AM
  4. Supplier Help
    By sparx in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-22-2006, 05:35 PM
  5. compare current mortagage costs to new mortagage costs
    By NEW2TECHBZ in forum Excel General
    Replies: 1
    Last Post: 04-05-2006, 03:47 AM

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