Hello,
I'm using Excel 2013. I'm looking for a vb macro solution.
I want to find all 12 digit numbers in column C. If this 12 digit number is an odd number, then I would like to enter the number "2" in column E on the same row as the 12 digit digit number. If this 12 digit number is an even number, then I would like to enter the number "1" in column E on the same row as the 12 digit digit number.
For example:
<b>Column C</b> ........................... <b>Column E</b>
<font color="blue">860512125211 ..................... 2
86051212 ............................ ignore as this is not a 12 digit number
850524085748 ..................... 1
860407435242 ..................... 1
hello ................................. ignore as this is not a 12 digit number</font>
Could you show me the code to achieve this please?
Thanks a lot.
I'm using Excel 2013. I'm looking for a vb macro solution.
I want to find all 12 digit numbers in column C. If this 12 digit number is an odd number, then I would like to enter the number "2" in column E on the same row as the 12 digit digit number. If this 12 digit number is an even number, then I would like to enter the number "1" in column E on the same row as the 12 digit digit number.
For example:
<b>Column C</b> ........................... <b>Column E</b>
<font color="blue">860512125211 ..................... 2
86051212 ............................ ignore as this is not a 12 digit number
850524085748 ..................... 1
860407435242 ..................... 1
hello ................................. ignore as this is not a 12 digit number</font>
Could you show me the code to achieve this please?
Thanks a lot.