+ Reply to Thread
Results 1 to 2 of 2

Product If [Criterion], Sum If [Criterion]

  1. #1
    Forum Contributor
    Join Date
    12-22-2015
    Location
    San Antonio, Texas
    MS-Off Ver
    2016
    Posts
    116

    Product If [Criterion], Sum If [Criterion]

    I have a table with a calculated column. Column A will have numerical values. Column B has a drop-down list of yes or no. Column C will have dates. I need a formula that will take the product of Column A and the number two that (1) fall within a date range, and (2) "yes" from Column B. If "no" in Column B, and fall within a date range, the sum of Column A will occur.
    I already have in place a formula that takes the product of Column A and two. I tried to incorporate the yes/no criterion, but fail each time. As an example the formula I have in place is:

    SUMIFS(Tissue!K:K,Tissue!N:N,">="&DATE(2017,1,1),Tissue!N:N,"<="&DATE(2017,1,31),Tissue!A:A,"BBA")

    This formula automatically sums the column within the specific date range. How would I modify it to fit the aforementioned criteria?

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Product If [Criterion], Sum If [Criterion]

    Since your ranges in your text don't match the sample formula, I'll assume your "Yes/No" dropdown is in column X.. adjust to suit.

    Try:

    =SUMIFS(Tissue!K:K,Tissue!N:N,">="&DATE(2017,1,1),Tissue!N:N,"<="&DATE(2017,1,31),Tissue!A:A,"BBA",Tissue!X:X,"Yes")*2+SUMIFS(Tissue!K:K,Tissue!N:N,">="&DATE(2017,1,1),Tissue!N:N,"<="&DATE(2017,1,31),Tissue!A:A,"BBA",Tissue!X:X,"No")
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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. Top n results as a criterion
    By j_Southern in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-22-2014, 09:55 AM
  2. Find value based on item number (first criterion) and date (second criterion)
    By ivan.stajin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-19-2014, 10:47 AM
  3. [SOLVED] Max If - Two Criterion
    By Ankedo in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-26-2014, 09:14 PM
  4. [SOLVED] SUMPRODUCT with an OR criterion
    By andrewc in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-12-2014, 09:15 PM
  5. [SOLVED] Vlookup more than one criterion
    By dee in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-29-2006, 12:10 PM
  6. IF(<criterion across sheets>,1,0)?
    By David in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-29-2005, 12:05 PM
  7. [SOLVED] How to Sum on Multiple Criterion
    By Don R in forum Excel General
    Replies: 5
    Last Post: 04-10-2005, 11:06 PM

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