A
awren
Hi,
I am using a mid/if statement to extract characters six and seven fro
a seven digit code. Using the following formula
(Where A1=XXXXXNN)
=IF(VALUE(MID(A1,6,2))<50,"20","19")
This works fine unless the code is missing some digits i.e.
XXXXX where it returns a #VALUE! error.
Is there anyway to adapt this statement to deal with blank/missin
characters and return a blank output?
Failing that can I capture this error message in the formula above an
make it return a blank?
Thanks in advance!
A
I am using a mid/if statement to extract characters six and seven fro
a seven digit code. Using the following formula
(Where A1=XXXXXNN)
=IF(VALUE(MID(A1,6,2))<50,"20","19")
This works fine unless the code is missing some digits i.e.
XXXXX where it returns a #VALUE! error.
Is there anyway to adapt this statement to deal with blank/missin
characters and return a blank output?
Failing that can I capture this error message in the formula above an
make it return a blank?
Thanks in advance!
A