+ Reply to Thread
Results 1 to 3 of 3

SUMIF Help

Hybrid View

  1. #1
    Registered User
    Join Date
    01-20-2011
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    32

    SUMIF Help

    Hi

    I have a spreadheet with 2 tabs.

    Tab 1 - Analysis

    This tab has 3 columns

    Unit Number: unique item number. One row per item on this tab.
    Expiry Days Allowed: the number of days the above item is allowed to be kept in the warehouse
    Total Quantity: this is the number of items left in the warehouse that are within or equal to the expiry date

    Tab 2 - Stock

    In the warehouse units are kept within batches.

    This tab has for columns

    Batch Number: unique batch number. One row per batch on this tab.
    Unit Number: Unit number as per tab 1
    Quantity: The number of units held within this batch.
    Days To Expire: the days left for expiry on the batch.

    What I would be very grateful for is a help with a formula to work out total quantity on tab 1. This would be for the item number, adding the quantity for batches that are within or equal to their expiry date.

    I just can't work out anything.

    Thanks Example.xlsx

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.95 for Mac MS 365
    Posts
    8,690

    Re: SUMIF Help

    is this what you are looking for in tab 1 cell C1? =SUMIF(Stock!A:A,Analysis!A2,Stock!C:C)
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    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: SUMIF Help

    Try

    Formula: copy to clipboard
    =SUMPRODUCT((Stock!$B$2:$B$13=Analysis!A2)*(Stock!$D$2:$D$13<=B2)*(Stock!$C$2:$C$13))
    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.

+ 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. [SOLVED] Shorten SUMIF + SUMIF + SUMIF each with same reference range but different criteria???
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-13-2014, 09:25 PM
  2. SUMIF or SUMIF's formula with multiple criteria
    By jackiemariee in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-30-2013, 06:19 PM
  3. SUMIF Question: SUMIF not blank
    By nickyg in forum Excel General
    Replies: 5
    Last Post: 11-18-2009, 10:07 PM
  4. Nested SUMIF statement or multiple SUMIF's
    By Dan27 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-17-2009, 06:55 AM
  5. [SOLVED] nested sumif or sumif with two criteria
    By dshigley in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-04-2005, 11:06 PM

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