+ Reply to Thread
Results 1 to 7 of 7

If number (Combo! Formula) If blank Cell Blank...

  1. #1
    Registered User
    Join Date
    09-24-2010
    Location
    Washington, USA
    MS-Off Ver
    Excel 2003
    Posts
    10

    If number (Combo! Formula) If blank Cell Blank...

    So sadly this is already my second pity post for the day..
    I cant figure this formula out, Ive been reading through the tutorials and then searching the forums for similar questions but cant get it down.

    Basically,

    If A1 has a number in it that is greater than 1.5 but less than 4.6 than I need cell A2 to say "Pass", If it out of that range I need it to say "Fail"... But if A1 is empty I need it to be blank..

    My lame attempt was =IF(AND( ISNUMBER(E5),E5>1.5,E5<4.6),"Pass", "Fail")
    But then I got lost when trying to make it blank when no number is present...

    Then I thought HEY ill steal NBVC's genius from my last post and tweak it with =IF(E5="","",(AND( ISNUMBER(E5),E5>1.5,E5<4.6),"Pass", "Fail")
    and then whole thing stops working

    Anyone wanna take pity on me?

    Thanks in advance!

    ~Zees
    Last edited by Zees; 09-24-2010 at 05:15 PM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: So Simple I should be Ashamed!

    There is no stupid questions my friend, only stupid answers
    So no need to be ashamed

    But still need to ask you to change title name according to the rules:

    1. Use concise, accurate thread titles. Your post title should describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change the title of the thread, click EDIT on the original post, then click the Go Advanced button, then change the title. If two or more hours have passed, the EDIT button will not appear, and you need to ask a moderator to change the title.

  3. #3
    Registered User
    Join Date
    09-24-2010
    Location
    Washington, USA
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: If number (Combo! Formula) If blank Cell Blank...

    My Apologies. Title changed
    See thats the stupidity coming out again!

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,602

    Re: If number (Combo! Formula) If blank Cell Blank...

    You missing one more IF:

    =IF(E5="","", IF(AND( ISNUMBER(E5),E5>1.5,E5<4.6),"Pass", "Fail") )

  5. #5
    Registered User
    Join Date
    09-24-2010
    Location
    Washington, USA
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: If number (Combo! Formula) If blank Cell Blank...

    Thwarted by a simple IF....Grrr

    Many Thanks Zbor! You rock!

  6. #6
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: If number (Combo! Formula) If blank Cell Blank...

    I doubt if you need ISNUMBER as there won't be any entries in E5 that could be between 1.5 and 4.6 that aren't numbers, hence you should be able to use just

    =IF(E5="","",IF(AND(E5>1.5,E5<4.6),"Pass", "Fail"))
    Audere est facere

  7. #7
    Registered User
    Join Date
    09-24-2010
    Location
    Washington, USA
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: If number (Combo! Formula) If blank Cell Blank...

    Good Point. I cant even remember why I threw a ISNUMBER in that formula in the first place... Short and Simple, I like it. Thanks Daddio.

    ~Zees.

+ 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