+ Reply to Thread
Results 1 to 4 of 4

SUMIF questions

  1. #1
    Registered User
    Join Date
    04-17-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    28

    SUMIF questions

    I need to add prices based on products for comparison in another sheet for 40 vendors.

    Sheet1

    A B C D
    1 Product 1 Product 2 Product 3
    2 Vendor A 1200 1400 1500
    3 Vendor B 900 1600 1400

    Sheet 2

    A B
    Total Spend
    1 Vendor A
    2 Vendor B

    I was using a SUMIF function in Sheet 2 B2 =SUMIF(Sheet1!A2:A3,B2,Sheet1!B2:D2) and I am only getting the first number in each column (1200, 900, etc) instead of the total (4100, 3900, etc). Am I using the formula incorrectly? Is the syntax incorrect? Any help is greatly appreciated.

    Thanks,
    John

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: SUMIF questions

    Not sure if that syntax will work.

    sumif(A2:a500,b2,c2:c500)

    but why you not just sum the totals on sheet 1m since you have the data in rows for each vendor.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  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: SUMIF questions

    You can't use the SUMIF function for this.

    One way...

    Entered in cell B2 on Sheet2:

    =SUM(INDEX(Sheet1!B$2:D$3,MATCH(A2,Sheet1!A$2:A$3,0),0))

    Copy down as needed.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    04-17-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: SUMIF questions

    Great, thanks for the suggestions. I'll try them.

+ 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