+ Reply to Thread
Results 1 to 4 of 4

How to include a logic statement with a sumif function?

  1. #1
    Registered User
    Join Date
    04-25-2015
    Location
    Ontario, Canada
    MS-Off Ver
    2016
    Posts
    72

    How to include a logic statement with a sumif function?

    I have a spreadsheet which constantly updates a table with data using a SUMIFS function. This function looks at both the product ID and the week it's in.

    However, I would like to roll up all previous weeks into the current week's sumif, if possible.

    In the attached spreadsheet, you can see we have apple sales in week 13 and bananas in week 14, but neither are captured. I don't mind if they are captured in a new row or if they are rolled into the top week (current week). I would just like to make sure it's captured on this table.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: How to include a logic statement with a sumif function?

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

  3. #3
    Registered User
    Join Date
    04-25-2015
    Location
    Ontario, Canada
    MS-Off Ver
    2016
    Posts
    72

    Re: How to include a logic statement with a sumif function?

    That works nicely!

    Can you explain how "<="& works? I can see that it's less than or equal to...am I able to use that logic test in any formula that's asking for criteria? What does the "&" do?

    Thanks
    Last edited by dbl_dbl; 04-10-2019 at 02:28 PM.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: How to include a logic statement with a sumif function?

    The & concatenates the <= with the cell value giving you <=2019 15
    You'd normally use something like that on numerical values, but it can also be used on text where it works on the "sort" order so Apples is < Oranges as it comes earlier in the sort oder

+ 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] SUMIF with OR statement with YEAR function?
    By excellenthelp in forum Excel General
    Replies: 6
    Last Post: 10-17-2015, 12:22 PM
  2. [SOLVED] SUMIF formula logic help
    By AdamHaubert in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-09-2013, 03:32 PM
  3. SUMIF formula logic help
    By AdamHaubert in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-09-2013, 03:01 PM
  4. Help needed to modify the code to include the logic
    By reddys0909 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-17-2013, 09:28 PM
  5. How do I include a SUMIF in a IF(AND statement?
    By johnw993 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-08-2012, 01:12 AM
  6. [SOLVED] Using 'AND' logic in a SUMIF statement
    By IpcTrain in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-10-2006, 01:45 PM
  7. Can SUMIF function include AND function
    By ShaneS in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-16-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