Validating pan in excel

VALIDATING PAN IN EXCEL SO THAT ERROR CAN REDUCE


Attached File : 95124 1202616 validating pan in excel.pdf downloaded: 1843 times
Replies (5)

could not understand.....crying

yes

DEAR BUJJLU,

IN THE FILE YOU CAN SEE THREE METHODS.

IN FIRST METHOD

I M SHOWING YOU CODING FOR CREATING FUNCTION THROUGH EXCEL MACRO, ONE IS "VALIDATEPAN" AND ANOTHER IS "CHECKATOZ". WHEN YOU CREATED THESE FUNCTION YOU CAN USE IT VERY EASILY LIKE OTHER FUNTIONS IN EXCEL

IN SECOND METHOD

I M SHOWING YOU A COMBINATION OF FUNCTION TO ENSURE NAME OF DEDUCTEE IS WRITTEN IN UPPERCASE ONLY

IN THIRD METHOD

I M SHOWING YOU A SIMPLE FORMULA TO ENSURE THAT LENGTH OF PAN NUMBER IS 10 CHARACTERS ONLY.

Mr. Anand I did not tell you I could not understand . I told you I could not see the file at all.

If I can see the file then there may not be any necessity for your explanaion. Your clarification s will be of use only when I can open the file. 

Thank you.

I have also worked out formula  if useful to any one 

=IF(LEN(Tbl_26Q[[#This Row],[Pan]])=10,
IF(ISNUMBER(VALUE(MID(Tbl_26Q[[#This Row],[Pan]],6,4)))=TRUE,
IF(ISERROR(INDIRECT(MID(Tbl_26Q[[#This Row],[Pan]],1,1) & "1"))=FALSE,
IF(ISERROR(INDIRECT(MID(Tbl_26Q[[#This Row],[Pan]],2,1) & "1"))=FALSE,
IF(ISERROR(INDIRECT(MID(Tbl_26Q[[#This Row],[Pan]],3,1) & "1"))=FALSE,
IF(ISERROR(INDIRECT(MID(Tbl_26Q[[#This Row],[Pan]],5,1) & "1"))=FALSE,
IF(ISERROR(INDIRECT(MID(Tbl_26Q[[#This Row],[Pan]],10,1) & "1"))=FALSE,
IF(MID(Tbl_26Q[[#This Row],[Pan]],4,1)="P","OK",
IF(MID(Tbl_26Q[[#This Row],[Pan]],4,1)="H","OK",
IF(MID(Tbl_26Q[[#This Row],[Pan]],4,1)="C","OK",
IF(MID(Tbl_26Q[[#This Row],[Pan]],4,1)="F","OK",
"Error-4char is Not P/H/C/F")))),"Error-10 Char not Alpha"),"Error-5 Char not Alpha"),"Error-3 Char not Alpha"),"Error-2 Char not Alpha"),"Error-1 Char not Alpha"),"Error-6to9 Char not Number"), "Error-Lenght Is not 10")

 

i have created Table Tbl_26Q and Row name Pan u can do modication as per you need 

i have added only 4 validation for 4th aphabate u can and more also 

C — Company
F — Firm
H — HUF(Hindu Undivided Family)
P — Person

 

A — Association of Persons (AOP)
B — Body of Individuals (BOI)
G — Government
J — Artificial Juridical Person
L — Local Authority
T — AOP (Trust)

 

Regrds 

Hemant 

 

 

 

 

 

 

Leave a Reply

Your are not logged in . Please login to post replies

Click here to Login / Register  

Company
ARTICLESHIP 17 October 2026
Articled Assistant

RRPM & Associates LLP

Chennai

CA Inter

View Details
Company
30 September 2026
Senior Accountant

Codeboard Technology

Chennai

B.Com

View Details
Company
ARTICLESHIP 01 October 2026
Articled Assistant

KPSN & Associates LLP

Chennai

CA Inter

View Details
Company
ARTICLESHIP 08 October 2026
ARTICLE TRAINEE

S.B.G. & CO. CHARTERED ACCOUNTANTS

New Delhi

CA Inter

View Details
Company
19 October 2026
Accountant

Jari Saree Center

New Delhi

Others

View Details
Company
15 October 2026
Senior Accountant

Continental Belting Pvt Ltd

Mumbai

B.Com

View Details
Company
Featured ARTICLESHIP 06 October 2026
Semi Qualified

AJAY SINGH AND CO LLP

Thane

CA Final

View Details
Company
Featured 03 October 2026
Accountant

A P Lodha and Associates

Jalna

B.Com

View Details