Hi All
I'd really appreciate some help with formatting cells with UK National Insurance Numbers. These consist of letters and numbers with spaces in between such as seen below where T represents any letter and 0 represents any 0 - 9 number
TT 00 00 00 T
The way I was doing it was just to emit the spaces and validate the cell to 9 characters however I am now told I MUST format the NINO with the spaces in. I've done some research on these message boards but haven't found an answer as yet. I'm still at novice level so have no clue about code and macros unfortunately.
If I didn't need the spaces as shown above I think this would have worked but I don't know how to tell it to put the spaces in.
=AND(LEN(A1)=9,ISERROR(MID(A1,1,1)*1),ISERROR(MID(A1,2,1)*1),ISNUMBER(MID(A1,3,6)*1),ISERROR(MID(A1,9,1)*1))
Please help!
Thanks
I'd really appreciate some help with formatting cells with UK National Insurance Numbers. These consist of letters and numbers with spaces in between such as seen below where T represents any letter and 0 represents any 0 - 9 number
TT 00 00 00 T
The way I was doing it was just to emit the spaces and validate the cell to 9 characters however I am now told I MUST format the NINO with the spaces in. I've done some research on these message boards but haven't found an answer as yet. I'm still at novice level so have no clue about code and macros unfortunately.
If I didn't need the spaces as shown above I think this would have worked but I don't know how to tell it to put the spaces in.
=AND(LEN(A1)=9,ISERROR(MID(A1,1,1)*1),ISERROR(MID(A1,2,1)*1),ISNUMBER(MID(A1,3,6)*1),ISERROR(MID(A1,9,1)*1))
Please help!
Thanks