+ Reply to Thread
Results 1 to 7 of 7

If X is equal or less & Y is equal or greater then Show "1"

  1. #1
    Forum Contributor
    Join Date
    02-26-2010
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    160

    If X is equal or less & Y is equal or greater then Show "1"

    I'm looking for a formula that can look at 2 sets of #'s and if they fit that criteria then show a "1". This is a baseball statistic for those that follow baseball it might be easier to figure out. I'm looking for a formula that calculates "quality starts". A quality start is when a starting pitcher pitches at least 6 full innings & gives up 3 or less runs (earned runs).

    I created a file that has some dummy information.

    For non baseball people I need a formula that will populate a "1" every time column A is 6 or greater & column B is 3 or less.

    Thanks
    Attached Files Attached Files
    Last edited by Statz; 04-09-2016 at 08:01 PM.

  2. #2
    Forum Contributor
    Join Date
    09-03-2015
    Location
    IE
    MS-Off Ver
    2003 - 2016
    Posts
    258

    Re: If X is equal or less & Y is equal or greater then Show "1"

    =if(and(a1>=6, b1<=3), 1, 0)

    ??

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: If X is equal or less & Y is equal or greater then Show "1"

    Try this

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


    v A B C
    1 IP ER QS
    2 6 3 1
    3 7 3 1
    4 5 0
    5 7 2 1
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Forum Guru Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: If X is equal or less & Y is equal or greater then Show "1"

    One way...

    =--AND(A2>=6,B2<=3)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Guru Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: If X is equal or less & Y is equal or greater then Show "1"

    A few keystrokes shorter...

    =(A2>=6)*(B2<=3)

  6. #6
    Forum Contributor
    Join Date
    02-26-2010
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    160

    Re: If X is equal or less & Y is equal or greater then Show "1"

    Thank you all!

    Alkey. I Understand your formula except for the 0 at the end. The 1, makes sense but why is there a 0?

    EDIT: Ah, looks like you put whatever # you want to show up when it doesn't meet the match!

  7. #7
    Forum Guru Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: If X is equal or less & Y is equal or greater then Show "1"

    You're welcome. Thanks for the feedback!

+ 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. Replies: 4
    Last Post: 06-03-2014, 03:21 PM
  2. [SOLVED] Delete Rows if a cell does not equal "Finished" or "Complete"
    By Justair07 in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 09-27-2013, 12:40 PM
  3. [SOLVED] Cell Formula to count time with "Greater Than or Equal to" and "Less Than"
    By chriswhite1982 in forum Excel General
    Replies: 3
    Last Post: 06-16-2013, 12:30 AM
  4. [SOLVED] If the cells is equal to "A or NA" then show a message
    By chrisatwoodbmx in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 03-17-2013, 01:36 PM
  5. [SOLVED] sort data rows "greater than or equal" criteria in another cell
    By HV man in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-26-2006, 06:55 PM
  6. Replies: 2
    Last Post: 01-13-2006, 07:10 PM
  7. can I make cell &amp;quot;yes&amp;quot; equal 1, &amp;quot;no&amp;quot; equal 0
    By can I make cell &quot;yes&quot; equal 1, in forum Excel General
    Replies: 3
    Last Post: 01-25-2005, 05: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