+ Reply to Thread
Results 1 to 6 of 6

I want Sumifs formula with Or criteria in same Range

  1. #1
    Registered User
    Join Date
    04-17-2014
    Location
    DUbai
    MS-Off Ver
    Excel 2007
    Posts
    63

    I want Sumifs formula with Or criteria in same Range

    Dear Can any one guide me for my Problem in Following formula

    =SUM(SUMIFS(RepData[InWt],RepData[LOC],A10,RepData[Order No],H7,RepData[Ecode],I7,RepData[Kt],J7,RepData[Metal],K7,RepData[InDate],"<"&F7,RepData[OutDate],{">=41961","=0"}))

    If I use Out Date in Numeric then its working fine but I want to use Cell range instead of Numeric Date


    thanks in advance

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: I want Sumifs formula with Or criteria in same Range

    Try

    =SUMPRODUCT(SUMIFS(RepData[InWt],RepData[LOC],A10,RepData[Order No],H7,RepData[Ecode],I7,RepData[Kt],J7,RepData[Metal],K7,RepData[InDate],"<"&F7,RepData[OutDate],A1:B1))

    A1 = >=41961
    B1 = 0

  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,929

    Re: I want Sumifs formula with Or criteria in same Range

    Try this instead...
    =SUM(SUMIFS(RepData[InWt],RepData[LOC],A10,RepData[Order No],H7,RepData[Ecode],I7,RepData[Kt],J7,RepData[Metal],K7,RepData[InDate],"<"&F7,RepData[OutDate],">=11/18/2014",0))


    However, I dont see how this will work, you are asking if a specific date is = 0?

    Perhaps if you upload a sample workbook, it would be easier to help?
    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 Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: I want Sumifs formula with Or criteria in same Range

    Just to follow up on Jonmo's solution, if you don't want to have to type the actual operator (">=", etc.) in the cell, and just use e.g. 41961 in A1 and 0 in B1:

    =SUMPRODUCT(SUMIFS(RepData[InWt],RepData[LOC],A10,RepData[Order No],H7,RepData[Ecode],I7,RepData[Kt],J7,RepData[Metal],K7,RepData[InDate],"<"&F7,RepData[OutDate],{">=","="}&A1:B1))

    though his solution is arguably preferable if these operators are subject to change (one week less-than, the next greater-than, etc.)

    Regards
    Click * below if this answer helped

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

  5. #5
    Registered User
    Join Date
    04-17-2014
    Location
    DUbai
    MS-Off Ver
    Excel 2007
    Posts
    63

    Re: I want Sumifs formula with Or criteria in same Range

    Thank this is working perfectly as I want

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: I want Sumifs formula with Or criteria in same Range

    You're welcome.

+ 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. SUMIFS formula to sum a range of cells if certain criteria are met
    By roseme in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-30-2014, 05:41 PM
  2. Replies: 3
    Last Post: 11-21-2012, 04:57 PM
  3. [SOLVED] sumifs formula one range with two criteria
    By avk in forum Excel General
    Replies: 7
    Last Post: 07-13-2012, 02:13 PM
  4. DATEVALUE used for Criteria range in SUMIFS formula
    By heatherromo in forum Excel General
    Replies: 2
    Last Post: 05-15-2012, 09:31 PM
  5. Replies: 1
    Last Post: 05-16-2011, 05:00 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