+ Reply to Thread
Results 1 to 3 of 3

If A Cell Is NOT Equal to a list of values OR Empty

  1. #1
    Registered User
    Join Date
    03-08-2013
    Location
    Derbyshire
    MS-Off Ver
    Excel 2003
    Posts
    46

    If A Cell Is NOT Equal to a list of values OR Empty

    Im trying to add a list section to my IF Statement that says if a cell isnt equal to AA, BB, CC or Empty then 'Do something'

    Ive got a SQL Background so I tried the following below

    ElseIf .Range("C1").Value IS NOT IN ("AA","BB","CC","") Then

    ...

    But that gives me a syntax error. Ive not found anything online to help at the moment so I wondered if anyone had any tips on how you would write this line?..

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: If A Cell Is NOT Equal to a list of values OR Empty

    You could try this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    03-08-2013
    Location
    Derbyshire
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: If A Cell Is NOT Equal to a list of values OR Empty

    Excellent, That worked a treat, thank you !!!!

+ 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