+ Reply to Thread
Results 1 to 5 of 5

if condition in multi case.....

Hybrid View

  1. #1
    Registered User
    Join Date
    02-22-2013
    Location
    India
    MS-Off Ver
    2010
    Posts
    87

    if condition in multi case.....

    hi i want to use if formula shows here in attached file.....



    IF "F10" is less than "B1" and greater then "B2" then output should be "F10", otherwise "B1" should be displayed.


    Please help

    thanx in advance
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    09-11-2012
    Location
    Belfast
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: if condition in multi case.....

    Hi

    I've had a brief look at your sample spreadsheet and think that your logic is flawed. You have the values 4 and 8 in cells B1 and B2, respectively. Therefore, it is not possible for a value in cell F10 to be less than B1 AND greater than B2, i.e a value cannot be less than 4 AND greater than 8, it's either one or the other!! Please can you clarify.

    Regards
    Stephen.

  3. #3
    Registered User
    Join Date
    02-22-2013
    Location
    India
    MS-Off Ver
    2010
    Posts
    87

    Re: if condition in multi case.....

    sorry for not to convey the core problem idea. moreover i have this is like in new sheet......

    case-I: if value is more than 8 or equal to 9 then it would show 8...............

    otherwise if value is less than 8 or more than 9 then it would show the same value what it is.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-22-2013
    Location
    India
    MS-Off Ver
    2010
    Posts
    87

    Re: if condition in multi case.....

    finally i have got this solution,
    if(and(F10>=8,F10<=9),"8",F10)

    Thannx for ur kind concern...

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,838

    Re: if condition in multi case.....

    Your solution should be

    =if(and(F10>8,F10<=9),8,F10)

    the 8 should NOT be in quotes as it will be treated as text rather than a number (which can cause problems later).

    and your post says more than 8 NOT greater or equal: which is it?
    Last edited by JohnTopley; 07-07-2017 at 03:16 AM.

+ 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