+ Reply to Thread
Results 1 to 1 of 1

Validation for data mismatch

  1. #1
    Registered User
    Join Date
    01-16-2014
    Location
    Bangalore
    MS-Off Ver
    Excel 2007
    Posts
    68

    Validation for data mismatch

    Guys this is cross-posted in other forums, please go through the links to find replies to my posts -

    http://www.mrexcel.com/forum/excel-q...ml#post3742603

    http://www.excelguru.ca/forums/showt...1910#post11910

    Hi All,

    I used to copy row data from database and paste in col c,d,e and f. And after this i have to compare with col g and h to see if the data pasted is correct or is mismatched. Most of the time the data is mismatched. To see the mismatched data, we can check both the sheets that i have attached, "Sample.xlsm(sheet before modification" and "Sample after clicking correct data button in Sample excel.xlsm(sheet after manual modification)" excel sheets.

    1st requirement:
    If column c and column d is not equal to column g and column h, then column b and column i will show red colour in the cell behind the column with mismatch.
    Else it will show green color. May be we can use some formula in col b and i to compare the datas of col c,d and col g,h.

    My Logic
    If (col c && col d <> col g && col h)
    then
    fill col b and col i with red colour
    else fill col b and col i with green color

    2nd requirement
    A button named "Correct Data"

    If we press this button then respective col c, d , e and f should be corrected with reference to col g and h. I need some VBA script which will do the change and correct the mismatch

    Eg : Correct data after clicking button "correct data" will show the data as shown in "Sample after clicking correct data button in Sample excel.xlsm sheet".

    Sheet Attached

    Sample.xlsm

    Sample after clicking correct data button in Sample excel.xlsm

    Thanks in Advance :-)
    Last edited by aakhan2011; 03-11-2014 at 01:55 AM. Reason: Cross-posting links added for reference

+ 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: 4
    Last Post: 12-19-2013, 10:44 AM
  2. [SOLVED] Need Cross Validation to Avoid Data Mismatch
    By jhennig in forum Excel General
    Replies: 4
    Last Post: 02-21-2013, 05:42 PM
  3. [SOLVED] Validation Error- Type Mismatch?
    By cschoyer in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-22-2012, 01:32 PM
  4. Using Defined Names with Data Validation Depend and Data Validation Multi Select
    By Vinnie Chan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-01-2012, 05:36 PM
  5. validation - error mismatch
    By pmguerra in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-20-2006, 08:36 AM

Tags for this Thread

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