Forum Discussion

Brandon_Hipkins's avatar
Brandon_Hipkins
Copper Contributor
Apr 04, 2023
Solved

Highlighting Content

Hello, not sure how to word my request. But here we go

What I am trying to do: I have a pivot table open. With row values that correspond to the month it is needed. Then in column M I have what our Lead time would be. Thus said, is there any conditional formatting that would take the value from M and highlight to the respective month for each row?

 

  • HansVogelaar's avatar
    HansVogelaar
    Apr 05, 2023

    HansVogelaar 

    B1:J1 contains abbreviated months, while M2:M1068 contains the full month names.

    Enter =TEXT(L2,"mmm") in M2, then fill down.

  • Brandon_Hipkins 

    Select B2:J50 (or however far down the data extend).

    B2 should be the active cell in the selection.

    On the Home tab of the ribbon, click Conditional Formatting > New Rule...
    Select 'Use a formula to determine which cells to format'.
    Enter the formula   =B$1=$M2

    Click Format...
    Activate the Fill tab.
    Select a highlight color.
    Click OK, then click OK again.

    • Brandon_Hipkins's avatar
      Brandon_Hipkins
      Copper Contributor
      One question and it is probably extremely simple to answer.
      How do I get this rule to work for all the months? The way you have it populated only highlights data with the month May. I want it to highlight every month specific to where the first data falls.
      1) In row C2 it highlighted it properly because it hit in May.
      2) How do I get cell's to highlight if they're specific to April, June, July....... So on and so forth?
      • Brandon_Hipkins's avatar
        Brandon_Hipkins
        Copper Contributor
        Adding additional request.

        How would I make sure it is only selecting data that has values? I don't want anything blank to highlight.

        So for row 2&3. I want only cell C2 to highlight
        For row 4 & 5 I'd only want cell B4 to highlight
        For ones that are specific to June I'd only want June to highlight if there is a numerical value there.

Resources