Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm verifying the FormatCurrency function is written properly in ASP code and I put everything in Excel from "find results".

I want to highlight only the ones that do not contain ",2" in them.

  • Don't highlight this: styResult = FormatCurrency(TotalCostOfOwnership, 2)

  • Highlight this: strResult = FormatCurrency(TotalRevenueStream, 8, 3)

  • Don't hightlight this: styResult = FormatCurrency(TotalCreditsReceived,2)

share|improve this question
up vote 2 down vote accepted

If I understand your question correctly, then Conditional Formatting should work very nicely for you.

Briefly, with this feature, you set up one or more rules, each of which:

  • Identifies which cells you want the rule to format (e.g. 'does not contain ,2')
  • the format to apply

This tutorial describes it well, and has some links to videos, one of which (at the end) is specifically for Excel 2003.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.