How can I use conditional formatting to change the text color on a vlookup cell relevant to the sheet being returned

BnBFireworks

New Member
Joined
Feb 27, 2025
Messages
1
Office Version
  1. 365
Platform
  1. Windows
I'm a basic newbie so please forgive me if I can't explain this correctly. I have built what little I know using trial and error and searchable web resources.

Use case: I have a Fireworks Excel file storing all the products I buy, sorted on multiple sheets (Fountains, Sparklers, etc.). I also have sheets for 2 warehouses I buy from with the inventory they have on hand.

I need to change the text color in my cell to red when it skips to Sheet3(VEN SC).

Example would be Sheet1(Fountains) which has the calc below being used to get the price if the item exists in either sheet (VEN MI or VEN SC), then if Sheet2(VEN MI) - text stays black, if Sheet3(VEN SC) - turns red. i.e. - I want red text when the result used is VEN SC's

I know I could add another column which would display MI or SC, but I have many calc.'s using VLOOKUP and this would break them. The time to rewrite it all is what I'm trying to avoid.

Here's Sheet 1's calc: =IFERROR(VLOOKUP($A1,'VEN MI'!$B$2:$H$1000,5,0),IFERROR(VLOOKUP($A131,'VEN SC'!$B$2:$H$1000,5,0),"NONE"))
This works fine to pull a price if either warehouse has inventory and displays NONE if neither has product.

My last calc try for Conditional Formatting ... =(VLOOKUP(A1,'BIG MI'!B2:H1000,5,0)="") ... but the text doesn't change

I'm at a loss here and have no idea what I'm doing after a LOT or research and reading. Can soneone help?

I'll be on the road in the morning, so please don't get upset if I don't respond until late.

Thx in advance
 
Welcome to the Forum!

It's not clear why your conditional formatting formula should be referring to the worksheet "BIG MI"?

Based on your description, if the conditionally formatted cell was B1, say, I'd use the formula:

Excel Formula:
=AND(ISERROR(VLOOKUP($A1,'VEN MI'!$B$2:$H$1000,5,0)),B1<>"NONE")
 
Upvote 0

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