Conditional Formatting based on cell value, not cell formula

Mike Thoreson

New Member
Joined
Jun 16, 2023
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hi - I'm trying to set up conditional formatting on a cell based on a comparison of values in two other cells. The problem I'm running into is the values in the comparative cells are derived from formulas in those cells. Is there a way to conditionally format based on the returned values and not the formulas themselves?
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Conditional formatting is based on values not the formulas themselves.

Can you show an example of what you mean.
 
Upvote 0
I couldn't find a way to attach the file so hopefully this will work. Below is a screenshot of the information I'm working with. I want to highlight the driver name (column A) if the vehicle ID (Column D) is the same as the PTO vehicle ID (column O).

- The Driver Name imports from another tab called Driver Table
- The Vehicle ID is based on an Xlookup matching the driver name to a vehicle number in another tab called Trip History Report
- The PTO vehicle is based on an Xlookup matching the vehicle ID to a vehicle number in a different tab called PTO Vehicles

Where I want to get to is to highlight the name of the driver if that driver is operating a vehicle with a PTO. For example, on row 4 I want to highlight Adam Johnson in red text because he's driving vehicle 3562-P01, which happens to have a PTO. I've tried several different formulas in conditional formatting but nothing has worked - the only commonality I can think of is the cells are formulas returning values.

As an aside, the data in the Consolidated tab is driving a pivot table (the Summary tab) and I ultimately want to get that highlighting in the pivot table.


1686938266893.png
 

Attachments

  • 1686938225824.png
    1686938225824.png
    196.4 KB · Views: 4
Upvote 0

Forum statistics

Threads
1,215,108
Messages
6,123,129
Members
449,097
Latest member
mlckr

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