Apply Conditional Format to Include Next Column, Same Row (2nd cell)

Katterman

Board Regular
Joined
May 15, 2014
Messages
103
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
  3. Web
Hello Everyone

I have a Pivot Table that when created it Conditionally formats a single cell based on its Value.

What I would like is for that same formatting to extend to the Next cell to the right ( Next Column, same Row )
no matter what the value is ( There is always a value but not specific. ). The Columns would always be the same
but the Rows the data lands on can always be different.

I've looked all over several forums and Google with no specific answer for this scenario.

Here is some of the Code

Code:
    Columns("I:I").Select
    Range("I34").Activate
    Selection.FormatConditions.Add Type:=xlCellValue, Operator:=xlEqual, _
        Formula1:="=""VTOC"""
    Selection.FormatConditions(Selection.FormatConditions.Count).SetFirstPriority
    With Selection.FormatConditions(1).Interior
        .Pattern = xlSolid
        .PatternColorIndex = xlAutomatic
        .ThemeColor = xlThemeColorLight2
        .TintAndShade = 0.599993896298105
        .PatternTintAndShade = 0
    End With

In the case above the cell that contains "VTOC" is formatted fine and is always found in Column "I" but not always on same row #
I'd like the cell next to "VTOC" (same row, Column "J") to also be formatted the same (That cell would contain numbers that are never the same as it's Daily Data pulled into this pivot table)

VTOC 544

**The Cell containing VTOC does have a Light Blue Background but not showing up here in this example **

Thanks In Advance for Any and All Assistance.

Scott
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,216,309
Messages
6,129,998
Members
449,551
Latest member
MJS_53

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top