+ Reply to Thread
Results 1 to 3 of 3

Using IsBlank In Formula

  1. #1
    Forum Contributor
    Join Date
    03-30-2008
    Posts
    121

    Using IsBlank In Formula

    I have a field with 3 possibilities.....

    If H22 is less than 30 I want an "X"

    If H22 is greater to or equal to 30 I want a "@"

    If H22 is a blank field, I want the field containing the formula
    to also be blank.

    The formula below tests correctly for the "X" and the "@"
    but the blank returns a "@".

    What am I missing.? Thanks.

    =IF(H22<30,"X",IF(H22>=30,"@",IF(H22,IsBlank," ")))

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Slight amendment to your formula

    =IF(H22<=30,"X",IF(H22>30,"@",IF(H22,IsBlank," ")))
    or
    =IF(H22="","",IF(H22<=30,"X",IF(H22>30,"@","")))
    or
    =IF(H22="","",LOOKUP(H22,{0,31},{"X","@"}))
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    How about
    =IF(H22<30,"X",IF(30<=N(H22),"@",""))
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

+ 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. Formula for bond price
    By Dracan in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-15-2014, 11:17 AM
  2. A formula template
    By ajaysehgal in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-07-2013, 06:12 AM
  3. Conditional formula question
    By odditie in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-27-2007, 09:47 PM
  4. How do I subsitute part of a formula linked to another workbook?
    By Scej12 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-03-2007, 10:10 AM
  5. use cell content as cell address in formula
    By nnsc in forum Excel General
    Replies: 4
    Last Post: 11-05-2006, 03:12 AM

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