+ Reply to Thread
Results 1 to 5 of 5

Help with formula to reference other cell to highlight fill another

Hybrid View

  1. #1
    Registered User
    Join Date
    08-07-2013
    Location
    Texas
    MS-Off Ver
    Microsoft Office/Excel 2019 for Mac
    Posts
    39

    Help with formula to reference other cell to highlight fill another

    In my spreadsheet I use a Data Validation list in column J.


    I input item numbers in column A that use a VLOOKUP formula to pull a description of that item# from another spreadsheet and place it in Column B. Of course this happens row by row as the item numbers are manually entered in each cell of column A.
    I need to create a formula that if I choose a specific choice from the data validation list in Column J, it will highlight fill the description that rests in the corresponding row cell of Column B. In this case that description is "Urgent Need."


    I need this to include the entire column in each case as I'll keep adding and deleting lines based on a given week's input.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Help with formula to reference other cell to highlight fill another

    Hi and welcome to to the forum

    1. highlight the range you want to apply the conditional formatting to
    2. on the home tab, styles, select CF
    3. select new rule, select use formula
    4. enter =J2="Urgent Need"..............................format fill RED

    Edit: Thanks for catching that Trevor
    Last edited by FDibbins; 01-20-2014 at 01:07 AM.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,440

    Re: Help with formula to reference other cell to highlight fill another

    @Ford: should step 4 have two equals signs (and no minus sign)?


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Registered User
    Join Date
    08-07-2013
    Location
    Texas
    MS-Off Ver
    Microsoft Office/Excel 2019 for Mac
    Posts
    39

    Re: Help with formula to reference other cell to highlight fill another

    It isn't working. Perhaps I don't understand some of the steps.
    1. Start off by highlighting column or selection where I want the final highlighting/cell fill to occur. In this case, Column B
    2. Click on Conditional Formatting > New Rule >Use a formula to determine which cells to format
    3. In the Format values where this formula is true: I type =J2="Urgent Need"
    4. Click Format button > Choose red
    5. Click Okay, Okay

    Nothing happened in column B which I had selected at the beginning

    I even changed your format to read =$J:$J="Urgent Need"
    in case it didn't recognizing searching the column.

    Could it be because it must find the exact J cell validation item per row?
    So I input my information in cell A2 which uses a VLookup and inputs the corresponding information in B2, then I choose "Urgent Need" in J2 from the Data Validation List. Whatever formula I use should know to highlight B2 based on the fact that my choice was "Urgent Need" in J2 instead of just "Need."

    I'm sorry if I'm confusing. I do learn every time someone provides me a solution so I ram arely on these boards until I have my next stumping formula.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,440

    Re: Help with formula to reference other cell to highlight fill another

    You need to select cells in column B. Select cells B2 down to wherever. Note the formula MUST relate to the first row selected.

    Formula: copy to clipboard
    =AND($J2<>"",$J2="Urgent Need")



    See the example workbook.

    Regards, TMS
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Highlight Cell if Reference is Blank but Display 0
    By uberathlete in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-04-2014, 11:50 AM
  2. [SOLVED] Formula Fill to Cells: Only change certain cell references in a multi-reference forumla
    By deldalton in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-08-2013, 11:45 AM
  3. [SOLVED] Highlight cells between 1 reference cell and last filled cell on Row
    By dleeds in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-06-2013, 05:10 PM
  4. Fill color columns based on Highlight Cell Rules
    By buntalan80 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-09-2013, 09:34 AM
  5. Replies: 2
    Last Post: 02-29-2012, 11:55 AM

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