ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Formula for "highlighting" data (https://www.excelbanter.com/excel-worksheet-functions/50040-formula-%22highlighting%22-data.html)

John

Formula for "highlighting" data
 
I am currently working on a template for a coworker that allows them to
quickly see which products need to be ordered now, soon, or not in the
forseeable future. I have been able to get to the point where the macro will
tell them to "order now", "order soon", or "out of stock". I would like to be
able to highlight the different categories in different colours (i.e. yellow
for "order soon", red for "order now", and some other colour for "out of
stock".

Any help is greatly appreciated.

Bob Phillips

Try conditional formatting, FormatConditional Formatting. It will handle 3
colours.

--
HTH

Bob Phillips

"John" wrote in message
...
I am currently working on a template for a coworker that allows them to
quickly see which products need to be ordered now, soon, or not in the
forseeable future. I have been able to get to the point where the macro

will
tell them to "order now", "order soon", or "out of stock". I would like to

be
able to highlight the different categories in different colours (i.e.

yellow
for "order soon", red for "order now", and some other colour for "out of
stock".

Any help is greatly appreciated.




Andy Brown

John wrote:
I am currently working on a template for a coworker that allows them to
quickly see which products need to be ordered now, soon, or not in the
forseeable future. I have been able to get to the point where the macro will
tell them to "order now", "order soon", or "out of stock". I would like to be
able to highlight the different categories in different colours (i.e. yellow
for "order soon", red for "order now", and some other colour for "out of
stock".

Any help is greatly appreciated.


If 3 colours is all you need, consider conditional formatting (sans
macro). See http://www.contextures.com/xlCondFormat01.html for details.

HTH,
Andy

John

Thanks. I was able to record the conditional formatting to make it one macro
for the user. It works exactly as planned.

Time for user testing.



"Bob Phillips" wrote:

Try conditional formatting, FormatConditional Formatting. It will handle 3
colours.

--
HTH

Bob Phillips

"John" wrote in message
...
I am currently working on a template for a coworker that allows them to
quickly see which products need to be ordered now, soon, or not in the
forseeable future. I have been able to get to the point where the macro

will
tell them to "order now", "order soon", or "out of stock". I would like to

be
able to highlight the different categories in different colours (i.e.

yellow
for "order soon", red for "order now", and some other colour for "out of
stock".

Any help is greatly appreciated.






All times are GMT +1. The time now is 07:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com