+ Reply to Thread
Results 1 to 7 of 7

Add a range of values when an adjacent cell meets criteria

  1. #1
    Forum Contributor
    Join Date
    02-17-2005
    Location
    Wokingham
    MS-Off Ver
    365
    Posts
    101

    Add a range of values when an adjacent cell meets criteria

    Hi

    I enclose an example of what I'm trying to calculate.

    The formula needs to add together all of the quantities for a selected product code.

    The product code is repeated randomly in a fixed range.

    Any suggestions would be gratefully received.

    Thanks Steven811
    Attached Files Attached Files
    Last edited by Steven811; 09-19-2012 at 05:51 AM. Reason: Solved

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Add a range of values when an adjacent cell meets criteria

    Hi

    In D1, put code number.

    Then use:

    =SUMIF(A2:A16,D1,B2:B16)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Add a range of values when an adjacent cell meets criteria

    Another option in C1 and drag down. Should give you the sums for each product.

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    02-17-2005
    Location
    Wokingham
    MS-Off Ver
    365
    Posts
    101

    Re: Add a range of values when an adjacent cell meets criteria

    Perfect

    Thank you

  5. #5
    Forum Contributor
    Join Date
    02-17-2005
    Location
    Wokingham
    MS-Off Ver
    365
    Posts
    101

    Re: Add a range of values when an adjacent cell meets criteria

    Hi Kevin

    Thanks, that works great too

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Add a range of values when an adjacent cell meets criteria

    You are welcome Steven!

    Thanks for the reb*

  7. #7
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Add a range of values when an adjacent cell meets criteria

    Hi Steven

    Thank you for the feed back.

+ 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