+ Reply to Thread
Results 1 to 2 of 2

If Column1 = X and Column2 = Y...

  1. #1
    Forum Contributor
    Join Date
    02-15-2012
    Location
    New York
    MS-Off Ver
    Excel 2010
    Posts
    141

    If Column1 = X and Column2 = Y...

    Hi,

    I'd like to add a safeguard into my workbook so that users can't enter incorrect values. The general logic is: "If Cell(n,1) = "X" AND Cell(n,3) = "Y" then Msgbox "Error".

    So, for any row, if the first column has X and if the second column has Y, then "Error".

    Any ideas?

    Thanks!

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: If Column1 = X and Column2 = Y...

    Maybe:

    Please Login or Register  to view this content.

+ 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. Replies: 12
    Last Post: 07-10-2014, 01:36 AM
  2. [SOLVED] Counting cells based on date in column1 and an alpha-numeric value in column2
    By JStreck in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-24-2013, 12:47 PM
  3. Delete row containing column1 column2 etc
    By lemonstar in forum Excel General
    Replies: 2
    Last Post: 09-26-2011, 11:26 AM
  4. Replies: 4
    Last Post: 08-03-2011, 08:22 PM
  5. compare column1 with column2
    By myguess21 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 12-12-2005, 03:55 PM

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