Is it possible to only colour cells in a range with $ amount

pedro-egoli

Well-known Member
Joined
Apr 25, 2004
Messages
1,217
Office Version
  1. 2016
Platform
  1. Windows
Would like to Conditional Format a range , say E54:M54 , with only those cells with a $amount in them.

Everything I have tried ends with the whole range being coloured.

Perhaps it is not possible however, thought I would ask

Pedro
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Hi,

What is in the cell if it is NOT a $ ammount - I take it you are refering to currency when talking about $$s...

Ian
 
Upvote 0
You can do this with a named function.

Select cell A1 and then define this name

Name: numForm
RefersTo: =GET.CELL(7, !A1)

Then select E54 and use the Conditional Formatting formula
=ISNUMBER(FIND("$",numForm))

Copy that formatting to the rest of the range. Any cell that is formatted for currency will have the Conditinal format applied.
 
Upvote 0
Mike eventually got the named range defined and followed your instructions.

Unfortunately when I copied across it highlighted all the cells E54:N54.

On my spreadsheet at the moment I have amounts in cells E54 and G54.
I only want these cells to be formatted (font/colour) and cell F54 which is BLANK, to remain blank.
As the spreadsheet expands I want future cells with amounts to be formatted and all BLANK cells to remain blank (with no colour)

Thanks

Pedro
 
Upvote 0
When you copied the format, you copied both the currency number format and the Conditional formating, the highlighting is correct. Try changing the number format of one of the effected cells.
You may have to add a condition to keep blank cells with currency format un-highlited.
 
Upvote 0
What condition would you suggest.

I tried "cell value is <1" and dragged it across and the whole range became highlighted again.
When I formatted G54as "number" prior to above cell went BLANK.

Thanks
Pedro
 
Upvote 0
Define the name as above, select E54 and set two CF conditions.

Condition 1: Formula: =(E54="") Format: no fill, no border, font color automatic

Condition2: Formula: =ISNUMBER(FIND("$",numForm)) Format: your choice
 
Upvote 0
The suggestions on earlier part of thread are working fine.

However, I now wish to have font colour change if result is negative.

Tried the following
Code:
Condition 1=(G50=””)
Condition 2=ISNUMBER(FIND("$",numForm))
These 2 conditions colour cells as they are populated

Condition 3 =IF(G50<1,TRUE,FALSE)
With font colour to be Red if True
This condition is meant to colour font red

Cell is coloured correctly however, font remains black when result is negative.

Any suggestions

Pedro
 
Upvote 0

Forum statistics

Threads
1,224,606
Messages
6,179,865
Members
452,948
Latest member
UsmanAli786

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top