+ Reply to Thread
Results 1 to 3 of 3

SUMIF Statement -- HELP!!!

  1. #1
    Registered User
    Join Date
    12-27-2012
    Location
    Omaha, Nebraska
    MS-Off Ver
    Excel 2010
    Posts
    1

    SUMIF Statement -- HELP!!!

    Working with an inventory, I need a formula that will reference column A:A for a particular value, then sum the row that corresponds. Example:

    Capture.JPG

    So, I think my formual should look something like : =SUMIF(A:A,"Lotion",B:D) - if correct, it should return with a value of 7. HELP!!!!

  2. #2
    Valued Forum Contributor
    Join Date
    11-20-2012
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2010
    Posts
    597

    Re: SUMIF Statement -- HELP!!!

    The sum_range argument does not have to be the same size and shape as the range argument. The actual cells that are added are determined by using the upper leftmost cell in the sum_range argument as the beginning cell, and then including cells that correspond in size and shape to the range argument. For example:



    If range is | And sum_range is | Then the actual cells are

    A1:A5 | B1:B5 | B1:B5
    A1:A5 | B1:B3 | B1:B5
    A1:B4 | C1:D4 | C1:D4
    A1:B4 | C1:C2 | C1:D4

    to work around this why not put a sum in column E = SUM($B1:$D1)

    then use the sumif($A:$A,"Lotion",$E:$E),

  3. #3
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: SUMIF Statement -- HELP!!!

    Either,

    =SUMPRODUCT((A1:A100="Lotion")*(B1:D100))

    Note: Do not use whole column reference like A:A, use like A1:A1000

    Or

    =SUM(SUMIF(A:A,"Lotion",OFFSET(B1,,{0,1,2},)))

    Note: This is a volatile formula. OFFSET & using just B1 in sum_range area.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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