National Insurance Number Conditional Formatting

spacemaid12

New Member
Joined
Apr 4, 2008
Messages
35
Hi,

I have a spreadsheet where I have to input National Insurance numbers and I want to run some conditional formatting so that if a temporary NI number is input it highlights the cell.

The NI number cannot begin TN, there is then a string of 6 digits and thisis followed by either an A,B,C or D.

Can anyone help?

Thanks,
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Does a temporary number begin with TN?

If the numbers are in column A then select column A and use conditional formatting with "formula is" option and the formula

=LEFT(A1,2)="TN"

select required formatting > OK
 
Upvote 0
Hi,

Temporary NI numbers begin with TN.

Andf the formula suggested works perfectly, I am not struggling with the final character which can only be A,B,C or D.

I have tried loads of different combinations and non work.

I thought this would work but it's not:

=RIGHT(N4,1)=">E"

Any help would be greatly appreciated.

Thanks,
 
Upvote 0

Forum statistics

Threads
1,214,891
Messages
6,122,105
Members
449,066
Latest member
Andyg666

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