+ Reply to Thread
Results 1 to 4 of 4

CF - using a formula to determine which cells to format...ISSUE

  1. #1
    Registered User
    Join Date
    11-08-2012
    Location
    United States
    MS-Off Ver
    2007
    Posts
    39

    CF - using a formula to determine which cells to format...ISSUE

    I understand how to accomplish CF based on a value in another cell. However I'm having a problem when that cell is formula driven. File is saved as an XLSX, using 2007...ummm not sure what other variables there might be.

    Simply put

    =$AM23=5 should highlight cell R23 blue. It will do this if I copy and paste AM23 special so it is truly a number. However the cell is generating a 5 based on a VLOOKUP formula from the adjacent sheet.

    Any ideas out there?

  2. #2
    Registered User
    Join Date
    11-08-2012
    Location
    United States
    MS-Off Ver
    2007
    Posts
    39

    Re: CF - using a formula to determine which cells to format...ISSUE

    The issues are on the "Main" sheet.

    L-W have the CF rules defined based on the formula in AG:AR.

    Cells AG23:AR33 have the first option to utilize as the formula. This option reports the correct number in columns AG:AR, but the CF won't work.

    Cells AG35:AR49 have the second option...this option works 100% of the time if the qty in L:W is an exact match to the supporting sheet, however that only occurs about 50% of the time in my line of work.

    Thanks
    Attached Files Attached Files

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: CF - using a formula to determine which cells to format...ISSUE

    ok found the problem. in PO sheet column Z, you used the RIGHT formula. it makes the result a text. you could do the following options:
    1) make Z2 in PO sheet:
    =RIGHT(W2)+0

    2) make AG23 in MAIN sheet:
    =VLOOKUP($A23&L23,PO!$Y$2:$Z$5000,2,FALSE)+0

    3) make the Conditional Formatting:
    =$AG23="5"

    Also, you don't have to do Conditional Formatting column by column, resulting in so many rules
    if you do want to clean it up, go to the Conditional Formatting Rules Manager & select Show Formatting Rules for : "This Worksheet". Delete all of them & start over. you just need 5 rules for your 5 colours.
    1. select from L23:W8605
    2. go to Home -> Conditional Formatting -> New Rule -> Use a formula to determine which cells to format -> Format values where this formula is true:
    =AG23=5
    3. format colour

    repeat the steps for AG23=4 to AG23=1

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Registered User
    Join Date
    11-08-2012
    Location
    United States
    MS-Off Ver
    2007
    Posts
    39

    Re: CF - using a formula to determine which cells to format...ISSUE

    benishiryo,

    I know I added to your reputation, but I wanted to publicly thank you for your help. Also thank you to the others that have helped me over the last few weeks.

    Thanks again

    This website is so valuable, a great learning tool, and awesome to just browse and discover!


+ 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