Hello my friends. I have developed an equation calculating the Check digit for a set of library barcodes. There are some faulty Barcodes that we are searching for because they are interfering with a digitization process. I have a three equation test for determining the usability of our barcodes however I want to nest two if statements into it in order to make it a singe equation line that says good or bad. listed below are my equations
1 Check fig. (before subracting from 10)
=MOD(SUMPRODUCT((MID(A2,ROW(INDIRECT("1:13")),1)>"0 ")*(1+MOD(MID(A2,ROW(INDIRECT("1:13")),1)*(1+MOD(ROW(INDIRECT("1:13")),2))-1,10-MOD(ROW(INDIRECT("1:13")),2)))),10)
2. if greater than 0 subract from 10 (elimintes numbers ending in 0 from skewing results)
=IF(B2>0,10-B2,0,)
3. If checksum digit is equal to barcodes checksum the Barcode is "good"
=(IF(C2-(RIGHT(A2,LEN(A2)-13))=0,"Good","BAD"))
Current simulation:
31924021258300 0 0 Good
31924024495966 4 6 Good
31924028906332 9 1 BAD
31924029885823 7 3 Good
31924029908351 9 1 Good
I would like to see the IF statements Nested so that one equation will give me an accurate "GOOD" or "BAD" response.
thanks in advance.
-S
Bookmarks