VLookup Red Text If Cell Text Is Not "Stål Ok"

James2376

New Member
Joined
Sep 19, 2023
Messages
18
Office Version
  1. 365
Platform
  1. Windows
Hey, how do i make it so that my Vlookup checks a cell for the text "Stål Ok" and if the cell text is something else then "Stål Ok" it takes that text and makes it red (It is normally a date. Example: "25.sep")

Would be super helpful if someone could help me with this. Thanks!


EDIT:
So basically what i want to use this for is to look up a production number with vlookup to see if column 16 on that line says "Stål Ok" (Means Steel OK) or if it says a date, because that means the steel is not ready yet. If it says Stål Ok everything is fine, but if it says a date like the example 25.sep (anything else then Stål OK) then i want it to say 25.sep or whatever it says in red text.
 
Last edited by a moderator:

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
I'm not sure I have it all understood. But, it seems you want two things. A formula for looking up a value, and then conditional formatting depending on what the value the lookup returns. So that is what I think I'm doing here:

You need to take care of the NA() returns somehow. But try this as a start:



Mr excel questions 60.xlsm
ABCDEF
1Prod NumberVLOOKUP
212721#N/A
33379425.Sep
434780#N/A3379425.Sep
540170#N/A45575Stål Ok
645575Stål Ok7587524.Sep
756273#N/A77762Stål Ok
87587524.Sep9008527.Sep
977662#N/A
1083735#N/A
119008527.Sep
James2376
Cell Formulas
RangeFormula
B2:B11B2=VLOOKUP($A2,$E$4:$F$8,2,0)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:B11Expression=IF(ISNA(B2)<>TRUE,B2<>"Stål Ok")textNO
 
Upvote 0
Solution
My pleasure. Welcome to the forum, and thanks for the feedback.

- Best Wishes!
 
Upvote 1

Forum statistics

Threads
1,215,079
Messages
6,123,005
Members
449,092
Latest member
masterms

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