Check for Error

chiswickbridge

Board Regular
Joined
Feb 2, 2013
Messages
127
Hi Guys,

I have a databases of Passport Numbers / Credit Card Numbers / Etc, with 1000 rows and 60 columns, starting in A1.

I just need to know of a method when I type the Passport or credit card numbers, which will tell me that the data input the second time or the first time is wrong or there is a mismatch....eg....

So, I decided to type the Passport Number / CDC number twice in adjoining columns, the second column has an Alarm1 and Alarm2.
A1ALARM 1ALARM 2
Serial NumberNamepassport number 1passport number 2cdc number 1cdc number 2
1JohnA123456A123456X123456X123456
2RobB123456B123456Y123456Y123456
3WilfC123456C123456Z123456Z123456
4PatD123456D123444V123456V123444

<tbody>
</tbody>

I have typed 3 rows correctly, in the 4th Row, I have deliberately typed wrong data.

Need a VBA or a formula to change the Fill colour to RED in the cells containing Alarm1 and Alarm2. This will tell me there is a mismatch. So I can correct the same.

To input data, I will go sequentially, meaning 1 to 1000, so when I reach row 36.... I know for sure, my earlier 35 rows data is absolutely correct. I will split the page so the Alarm will always be visible at the top.

Hope I am very clear in my query....

Thanks for your time...
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
You could use conditional formatting for this
Highlight from D3 downwards
Click on Home Tab / conditional formatting button
Select New Rule
Select Use formula to determine cells to format
In the formula box type =C3<>D3
Format to suit
Ok to all that
Repeat for Column F
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top