Conditional Formatting to Highlight if Comma is Found

0267Kim

New Member
Joined
Aug 20, 2019
Messages
13
I have a Conditional Formatting question. Suppose I have a column of dollar amounts(Column G:) with a General number format. Is there a way I can use Conditional Formatting to highlight any amounts which include a comma? I've tried data validation as well. Just can't seem to get Conditional Formatting to work unless I convert the amounts to text.

1620246725328.png
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Hi 0267Kim,

None of you example cells contain a comma so are you just trying to highlight cell with thousands or more values?

If so then try

0267Kim.xlsx
FG
2T DateAmount
34/4/2020333
44/4/2020444
54/4/2020555
64/4/20206.66
74/4/2020777
84/4/20201000
94/4/202022222
104/4/2020321
114/4/2020999.99
124/4/20201200
134/4/2020554433
144/4/202022
154/4/2020-1299
16
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G3:G99999Expression=OR($G3>999.99,$G3<-999.99)textNO
 
Upvote 0
Thanks for the response. No, I'm not trying to highlight cells with one thousand or more. Instead, what I am hoping to do is use conditional formatting to highlight all cells in column which include a comma. I'm attaching a mini sheet. Hopefully, this is a little more clear. There are multiple cells with amounts over one thousand. I only want to highlight those which include a comma.

Book10.xlsx
A
1AMOUNT
2132431.15
3132,034.15
4466085.59
567303.91
657,948.73
757251.05
837972.12
927050.42
10259949.35
115711.51
12115242.99
1313738.73
141,391.27
15369837.18
16318495.83
17178397.8
Sheet1
 
Upvote 0
Yeah! That worked, thank you so much!

Book10.xlsx
A
1AMOUNT
2132,431.15
3132034.15
4466,085.59
567303.91
657948.73
757251.05
837972.12
927050.42
10259949.35
115711.51
12115242.99
1313,738.73
141391.27
15369837.18
16318495.83
17178397.8
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A17Expression=","=LEFT(CELL("format",A2),1)textNO
 
Upvote 0
Hey, thanks again for the assistance. I had a followup question as well: How can I amend the function above to highlight any comma in any cell in the column? As an example, I've erroneously added a comma to the wrong place in Cell A6.

Book10.xlsx
A
1AMOUNT
2132,431.15
3132034.15
4466,085.59
567303.91
65794,8.73
757251.05
837972.12
927050.42
10259949.35
115711.51
12115242.99
1313,738.73
141391.27
15369837.18
16318495.83
17178397.8
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A17Expression=","=LEFT(CELL("format",A2),1)textNO
 
Upvote 0
This might do it:

Code:
=OR(ISTEXT(A2),","=LEFT(CELL("format",A2),1))
 
Upvote 0
And Just Like that, it works! Thank you again for the help! Yall rock!

Book11.xlsx
A
1AMOUNT
2132,431.15
3132034.15
4466,085.59
567303.91
65794,8.73
757251.05
837972.12
927,050.42
10259949.35
11,5711.51
12115242.99
1313,738.73
141391.27
15369837.18
16318495.83
17178397.8
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A17Expression=OR(ISTEXT(A2),","=LEFT(CELL("format",A2),1))textNO
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,731
Members
448,987
Latest member
marion_davis

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