+ Reply to Thread
Results 1 to 3 of 3

If and formlua looking for any text

  1. #1
    Registered User
    Join Date
    07-29-2011
    Location
    Charlotte
    MS-Off Ver
    Excel 2010
    Posts
    26

    If and formlua looking for any text

    I'm working on an error flag to visually identify when a note wasn't entered. I'm trying to dumb this down to the lowest level and the formula below works for all errors I want to catch, but it returns false if they enter the note correctly in R9. The notes can vary so I don't have enough Ifs avilabel to catch all the possibilities. Is there and IF I can add that looks for any text in the cell?
    Something like IF(R9=anytext),""). I don't want the false to confuse anyone. Unfortunately it has!

    Current formula
    =IF(AND(I9=""),"",IF(AND(Summary!$P$13="",I9="Y",R9=""),"ERROR",IF(AND(Summary!$P$13="Note",I9="Y",R9=""),"ERROR",IF(AND(Summary!$P$13="Task",I9="Y",R9=""),"ERROR"))))

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: If and formlua looking for any text

    Try it like this:

    =IF(I9="","",IF(OR(AND(Summary!$P$13="",I9="Y",R9=""),AND(Summary!$P$13="Note",I9="Y",R9=""), AND(Summary!$P$13="Task",I9="Y",R9="")),"ERROR",R9))

    or shorter still...

    =IF(I9="","",IF(AND(R9="",I9="Y",OR(Summary!$P$13={"","Note","Task"})),"ERROR",R9))

    or replace the last R9 with "" if you want a blank if they enter note correctly....
    Last edited by NBVC; 05-17-2012 at 11:14 AM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    07-29-2011
    Location
    Charlotte
    MS-Off Ver
    Excel 2010
    Posts
    26

    Re: If and formlua looking for any text

    Thank you. worked perfectly

+ 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