If I have the following in A1:
and have the following in A2:
I want to be able to use an if than statement that only tests the numerical data in the alphanumeric string.
For example, I would like to be sure the number in the alphanumeric string is equal to 3 digits, I want to return false for anything <> 3.
I thought I could use some form of Len(A2)<>3, but I need to be able to target more specifically a subpart of the cell instead of the entire cell (namely the numbers only).
NOTE: I am using Excel 2007.
Code:
"DRG"
and have the following in A2:
Code:
<TABLE style="WIDTH: 1109pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=1478><COLGROUP><COL style="WIDTH: 1109pt; mso-width-source: userset; mso-width-alt: 54052" width=1478><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #d4d0c8; BORDER-LEFT: #d4d0c8; BACKGROUND-COLOR: transparent; WIDTH: 1109pt; HEIGHT: 12.75pt; BORDER-TOP: #d4d0c8; BORDER-RIGHT: #d4d0c8" class=xl65 height=17 width=1478>[FONT=Times New Roman]encounterRow.encounterType.code in ('I','IB') and encounterRow.msDRG1.code = '163'[/FONT]</TD></TR></TBODY></TABLE>
I want to be able to use an if than statement that only tests the numerical data in the alphanumeric string.
For example, I would like to be sure the number in the alphanumeric string is equal to 3 digits, I want to return false for anything <> 3.
I thought I could use some form of Len(A2)<>3, but I need to be able to target more specifically a subpart of the cell instead of the entire cell (namely the numbers only).
NOTE: I am using Excel 2007.