+ Reply to Thread
Results 1 to 4 of 4

Multiple Criteria within an If Statement.

  1. #1
    Registered User
    Join Date
    06-09-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    92

    Multiple Criteria within an If Statement.

    Hello all we have the following code to validate a cell :

    Please Login or Register  to view this content.
    It is nested within an IF statement, but this part we require more than one criteria to check against.

    Please Login or Register  to view this content.
    This is how we would like it to be, but we are unsure how to achieve this, I have read about the VBA continuation symbol which is underscore, but playing around with it doesn't seem to work.

    Any help will be greatly appreciated.

    Regards,
    Usman.

  2. #2
    Registered User
    Join Date
    07-04-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Multiple Criteria within an If Statement.

    Try
    Please Login or Register  to view this content.
    Untested, but should work.

  3. #3
    Registered User
    Join Date
    07-04-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    54

    Re: Multiple Criteria within an If Statement.

    If your question has been answered, please use the Thread Tools option to mark the thread as solved.

  4. #4
    Registered User
    Join Date
    06-09-2012
    Location
    United Kingdom
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Multiple Criteria within an If Statement.

    Thanks that worked.

    Much appreciated.
    Regards,
    Usman.

+ 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