+ Reply to Thread
Results 1 to 3 of 3

If statement for value between two numbers

Hybrid View

  1. #1
    Registered User
    Join Date
    06-15-2013
    Location
    Israel
    MS-Off Ver
    Excel 2016
    Posts
    43

    If statement for value between two numbers

    Hi,

    I have this If statement and I want to modify it for cell BY15 values only between 1 and 4 instead of less than 4.

    =IF(AND(BY15<4,BV15=2),$BX$4,$BX$5)
    in other words:
    IF BY15=1,2,3 then result should be $BX$4.
    IF BY15 = 0 then result should be $BX$5.

    How can this be done ?

    Khalil

  2. #2
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2503 and WPS V2024(12.1.0.18543)
    Posts
    3,899

    Re: If statement for value between two numbers

    Meet BY15 (1~4) AND BV15=2 to be established $BX$4 , otherwise $BX$5

    Try

    =IF(AND(BY15>=1,BY15<=4,BV15=2),$BX$4,$BX$5)
    Last edited by wk9128; 06-24-2021 at 11:39 PM.

  3. #3
    Registered User
    Join Date
    06-15-2013
    Location
    Israel
    MS-Off Ver
    Excel 2016
    Posts
    43

    Re: If statement for value between two numbers

    Thank you very much.
    Result accomplished.

    Khalil

+ 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. If statement between numbers
    By araza123 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-26-2019, 06:15 PM
  2. [SOLVED] Using IF Statement with Negative Numbers
    By Chris McGlothen in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-02-2018, 11:27 AM
  3. If statement help with numbers
    By cobydobbs in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-27-2013, 05:00 PM
  4. IF statement Numbers vs. Text
    By farzyness in forum Excel General
    Replies: 2
    Last Post: 08-10-2010, 04:34 PM
  5. rounding numbers and =if statement
    By mheinmiller in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-29-2010, 11:34 AM
  6. IF statement with range of numbers?
    By AlmostAGeek in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-18-2007, 11:02 PM
  7. How do I use a range of numbers in an if statement?
    By pbeattie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-10-2005, 06:05 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