Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 5 of 5

Thread: IF

  1. #1
    New Member
    Join Date
    May 2002
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I know that IF can be usd to determine if a condition is true or false, but can it be used to detrmine if there is text in a field or not?

    Example: I want to interrogate column A, if there is text in the cell interrogated (say A10) I want to put text into F10 (either "VAT" or "NIL")

    Does anyone have a way of doing this?

    Thanks,

    Robbie

  2. #2
    Board Regular
    Join Date
    Apr 2002
    Location
    Minnesota
    Posts
    821
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    You could use the functin ISTEXT().

    IF(ISTEXT(A1),"YOUR MESSAGE","")

  3. #3
    MrExcel MVP
    Join Date
    Apr 2002
    Location
    Vancouver BC , Canada
    Posts
    6,259
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Try the ISBLANK & ISTEXT FUNCTIONS
    IE IF(ISBLANK(A10), "true func", False func)

    <MARQUEE>...........Never be afraid to try something new. Remember, amateurs built the ark, professionals built the Titanic...............The easiest thing to find is fault, don't be easy !.. --Anonymous--...</marquee>

  4. #4
    MrExcel MVP Jay Petrulis's Avatar
    Join Date
    Mar 2002
    Location
    Chicago, IL USA
    Posts
    2,040
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    F10: =IF(ISTEXT(A10),"VAT","NIL")

    There is also an ISNUMBER function and a host of others under the Information category of Excel functions.

    HTH,
    Jay

  5. #5
    New Member
    Join Date
    May 2002
    Posts
    7
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    We're not worthy!!!

    Thanks, works a treat.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •