Link to home
Start Free TrialLog in
Avatar of kausalya durgale
kausalya durgale

asked on

Regex expression

Hi There, how to write a regex expression to identify string match:
for ex: in my entire workbook it should highlight the summary column,  if it contains any string length greater than 6 digits or 8 digit. for ex: if summary column has 6 digit number it should highlight that row, if it has only 8 digit even then it should be highlighted, if it has both 6 and 8 digit it should get highlighted:

attached is the sample
Book1.xlsx
Avatar of Bill Prew
Bill Prew

There is no easy way in Excel to apply conditional formatting like you are describing without creating a VBA macro to do the checking of the cell content to see if it matches your pattern.  Would it be acceptable to create a VBA procedure that you could use to do this, or is adding VBA to your workbook not an option?


»bp
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial