Referencing specific character in a cell

densac

New Member
Joined
Jun 23, 2004
Messages
35
I was using Conditional Formatting where if A1 = G the cell was colored Green; A1 = Y colored Yellow and A1 = R colored Red. Now they are adding words after the G, Y, R designation. Is there a way to reference the first character in the cell to designate the color???? So if 1st character in A1 = G it will color green and so on. I'm hoping to still use Conditional Formatting since I'm not proficient at VBA and I need the colors to change as soon as enter is hit. I'm still searching but hoping for help.

Thank you for any direction you can give me.
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
76,303
Office Version
  1. 365
Platform
  1. Windows
You could use the formula option in conditional formatting with something like this.

=LEFT(A1)="G"
 

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
Hi

You can use a formula like the following in conditional formatting:

=LEFT(A1,1)="Y"

Hope this helps!

Richard
 

densac

New Member
Joined
Jun 23, 2004
Messages
35
Norie and Richard: Thank you VERY much. That worked perfectly. It seems I was making it harder than I should have. I truly appreciate your help!!
 

Forum statistics

Threads
1,141,097
Messages
5,704,314
Members
421,338
Latest member
Pepess

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
Top