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

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
You could use the formula option in conditional formatting with something like this.

=LEFT(A1)="G"
 
Upvote 0
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!!
 
Upvote 0

Forum statistics

Threads
1,214,786
Messages
6,121,546
Members
449,038
Latest member
Guest1337

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