Conditional formatting with an IF function

Balmer07

New Member
Joined
Feb 14, 2018
Messages
45
Office Version
  1. 365
Hi,

I am currently working on a spreadsheet which I need to conditional format for the user.

In column 'B' I have either "inbound" or "outbound" and in column 'C' I have Product codes (E.g Part 1, Part 2, Part 3)

I am not sure if conditional formatting can do what I need and it may require VBA but hoping someone can advise me on here first before I start into VBA

Basically if column 'B' contains "outbound" I want to conditional format to bypass the formatting. However if Column 'B' contains "inbound" I want the Part code to be highlighted in Column 'C'.

I hope this makes sense.

So far if i use the below formula the product codes highlight for both inbound and outbound.

=OR(C1="Part 1",C1="Part 2",C1="Part 3")

Many thanks in advance!
 
Hi Marcelo,

I checked your method using 'AND', it also works as well as 'IF'.

Thanks for your input however

Steven
 
Upvote 0

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,216,028
Messages
6,128,399
Members
449,447
Latest member
M V Arun

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