If Statement help

dchaney

Well-known Member
Joined
Jun 4, 2008
Messages
732
Office Version
  1. 2016
Platform
  1. Windows
I ran a search and did not find anything on my question, so I appoligize if it has already been posted.

Here is what I am trying to do, I have a spreadsheet that has 11 columns, what I need to do is look at cell C3 and then at Column G, if C3 = Packaging and any cell in column G does NOT = EFLS, ENVS OR ESAA highlight it Red with White text.

Right now the formula I am using is looking at Cell C3 and then G5 and if C3 is Pacakaging and G5 is EPT it highlights.

Basicly I need the code to look at C3 and column G (could be 1000+ rows) if C3 is Packaging and the cell in column G is NOT EFLS, ENVS OR ESAA I want it to highlight the cell red with white lettering..

Thgis is what I have: =IF(AND($C$3="Packaging",G5="EPT",G5="ECT"),TRUE,FALSE)
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Thanks A Lot!!! Exactly what I was looking for, your the best!!!
 
Upvote 0

Forum statistics

Threads
1,224,618
Messages
6,179,917
Members
452,949
Latest member
beartooth91

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