# Conditional Format-change color of cell

1. ## Conditional Format-change color of cell

A1 will have the number 000001-123456789.

B1 will have only the last nine digits or in other words 123456789.

I would like to have a conditional format formula that will change color of cell B1 when the number in B1 matches the last nine digits of A1.

Clear as mud right...

I've been racking my brain all weekend and cannot come up with anything.

The main problem is the report that I pull the data off of has 0000 (zero's) at the beginning of the number and a dash after the first 5 digits. When I scan the paperwork at my desk the "zero's" and dash's are eliminated otherwise I could simply do a "equal to, not equal to" conditional format...

Please see the example to help clarify what I'm rambling on about here.

2. The CF formula would be something like:

=RIGHT(D3,9)=RIGHT(\$A3,9)

3. Maybe

=RIGHT(A3,9)=RIGHT(D3,9)

Returns true if last 9 digits or A3 = last 9 digits of D3

VBA Noob

4. Originally Posted by NBVC
The CF formula would be something like:

=RIGHT(D3,9)=RIGHT(\$A3,9)
WOW! 4 days of racking my dang brain and it took you all of 4 minutes to show me how easy this was... Thank you! Thank you! Thank you!

I can already tell that I will be spending a lot of time in this forum!

##### Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1