+ Reply to Thread
Results 1 to 2 of 2

Data validation

  1. #1
    Registered User
    Join Date
    12-23-2009
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    25

    Data validation

    Hi
    how to validate two columns to get exact value seraing whole of two columns and provide only when Col1, row 2 value = col2, row 2 value.

    eg: John=John

    I mean my current formula is =if(h1=m1,1,0). I want a formula where H:H=M:M, but must return true only if h1=m1, h2= m2, etc.
    I hope I am clear
    Thank you

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264

    Re: Data validation

    Perhaps:

    =SUMPRODUCT(--(H1:H100=M1:M100))=ROWS(H1:H100)

    Adjust ranges to suit (you can't use whole column refs with Sumproduct eg A:A if using xl2003 or below)
    Richard Schollar
    Microsoft MVP - Excel

+ 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