+ Reply to Thread
Results 1 to 4 of 4

Sumifs() with a greater/less than criteria?

  1. #1
    Registered User
    Join Date
    05-24-2012
    Location
    atlanta
    MS-Off Ver
    Excel 2010
    Posts
    45

    Sumifs() with a greater/less than criteria?

    Please Login or Register  to view this content.
    In Row B is the model year of the entry, in yyyy format.

    If its 2012 or earlier, it is EM (early model), if it is 2013, it is LM (late model)

    What I need to do is sum the units based on several criteria, this being 1 of them. The rest are fine.

    The code as it stands will work for 2012 or 2013, but it just ignores 2011, which Id like to count as EM.

    In theory, nothing more than 2 years old should exist... so I could maybe hard code it to do an "or" for those 3 specific years. But theory and reality can part ways from time to time and you know a 2009 will pop up soon as I implement it, so Im wondering if a more robust option exists that would let it be more like

    Please Login or Register  to view this content.
    I dont think I can just toss a < sign in there and expect success though.

  2. #2
    Forum Contributor
    Join Date
    02-14-2011
    Location
    West Valley City, Utah
    MS-Off Ver
    Excel 2010
    Posts
    108

    Re: Sumifs() with a greater/less than criteria?

    Good morning bauerbach!

    You came very, very close, so props on that! What I personally would do is throw in an AND statement where your 2012 is currently, and just list the years you would like to be EM there.
    Last edited by Sky188; 06-14-2012 at 01:19 PM.

  3. #3
    Registered User
    Join Date
    05-24-2012
    Location
    atlanta
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Sumifs() with a greater/less than criteria?

    I actually caught your preedit and used that suggestiong, tossed a "<="& into the equation and it works perfectly! I dont really have any cause to limit the range of EM years, its highly unlikely it would ever arise that far back, but it could... Thank you for the prompt response and great advice.

  4. #4
    Forum Contributor
    Join Date
    02-14-2011
    Location
    West Valley City, Utah
    MS-Off Ver
    Excel 2010
    Posts
    108

    Re: Sumifs() with a greater/less than criteria?

    Hehe, well glad I could help! I re-read your question a handful of times and was unsure if the "<=" was what you were looking for, but I'm glad it was!

+ 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