Home |
Search |
Today's Posts |
#2
![]() |
|||
|
|||
![]()
Me, I prefer a more pointer-like approach, and I prefer to keep error
checking outside loops. I'd call this a translation table rather than pointers. For the digits that are not doubled, the digit N is translated to N + 1. For digits to be doubled, you translate N to N * 2 + 1. In both cases, you subtract 9 if the result is 9. Interestingly enough, the calls to Substitute and the Like function are so slow that with this particular problem, it's actually faster to do the error checking in-line. And that's in spite of your loop executing only half as many times. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I use a check box to accept a calculation | Excel Discussion (Misc queries) | |||
Mod-10 Check Digit | Excel Worksheet Functions | |||
Tell users how to sort 5 digit and 9 digit zipcodes correctly aft. | New Users to Excel | |||
Excel should have a function to verify the check digit on UPC num. | Excel Discussion (Misc queries) | |||
Creating a check box that does not require security clearance. | Excel Worksheet Functions |