+ Reply to Thread
Results 1 to 4 of 4

Conditional Format-change color of cell

  1. #1
    Registered User
    Join Date
    05-05-2008
    Posts
    45

    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.

    Thanks in advance...
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,902
    The CF formula would be something like:

    =RIGHT(D3,9)=RIGHT($A3,9)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

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

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

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Registered User
    Join Date
    05-05-2008
    Posts
    45
    Quote 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!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Bookmarks

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