princess21
New Member
- Joined
- Jun 10, 2011
- Messages
- 15
Hi,
I have a data tablet that has finance data for different areas of the company. There is probably a really easy solution for this but I am trying to write a macro that will change the colour font of the column that contains the actual "Expenditure" finance figures based on another column that tells me the "Performance". See below example
Performance Expenditure
Over £1500
Under -£1600
Under £700
Average £150
Over -£20000
The Expenditure column values can be positive or negative but I would like the font colour changed to the following depending on what is populated in the Performance column: Under = red, Average = amber, Over = green.
This will make the above table look like this:
Performance Expenditure
Over £1500 (green)
Under -£1600 (red)
Under £700 (red)
Average £150 (amber)
Over -£20000 (green)
As you can see, because the values can be positive or negative I can't just simply use conditional formatting and I think a macro is the only way to go.
Any help will be greatly appreciated.
Hugs
Princess
I have a data tablet that has finance data for different areas of the company. There is probably a really easy solution for this but I am trying to write a macro that will change the colour font of the column that contains the actual "Expenditure" finance figures based on another column that tells me the "Performance". See below example
Performance Expenditure
Over £1500
Under -£1600
Under £700
Average £150
Over -£20000
The Expenditure column values can be positive or negative but I would like the font colour changed to the following depending on what is populated in the Performance column: Under = red, Average = amber, Over = green.
This will make the above table look like this:
Performance Expenditure
Over £1500 (green)
Under -£1600 (red)
Under £700 (red)
Average £150 (amber)
Over -£20000 (green)
As you can see, because the values can be positive or negative I can't just simply use conditional formatting and I think a macro is the only way to go.
Any help will be greatly appreciated.
Hugs
Princess