Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.