Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-06-2017, 09:29 AM
Diana09 Diana09 is offline How to use conditional formatting for two criteria? Windows 10 How to use conditional formatting for two criteria? Office 2013
Novice
How to use conditional formatting for two criteria?
 
Join Date: Dec 2017
Posts: 3
Diana09 is on a distinguished road
Default How to use conditional formatting for two criteria?

Hello

I would like to use conditional formatting (or other hypothesis) for the following:
If one cell has "yes" and the other has "-", format with red color. I'm not getting.
I tried the formula: If in the cell has "yes" and in the other has "-", write in another cell "no" and based on this "no", format in red. But I didn't want it to be like this.



Thank you for your attention and for your help.
Reply With Quote
  #2  
Old 12-06-2017, 09:53 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is online now How to use conditional formatting for two criteria? Windows 7 64bit How to use conditional formatting for two criteria? Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Basically the CF would be =AND($A1="yes",$A2="-") applied to the cell/range you need to color
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post

Last edited by Pecoflyer; 12-07-2017 at 01:12 AM.
Reply With Quote
  #3  
Old 12-06-2017, 10:17 AM
Diana09 Diana09 is offline How to use conditional formatting for two criteria? Windows 10 How to use conditional formatting for two criteria? Office 2013
Novice
How to use conditional formatting for two criteria?
 
Join Date: Dec 2017
Posts: 3
Diana09 is on a distinguished road
Smile Thanks

Quote:
Originally Posted by Pecoflyer View Post
Basically the CF would be =AND($A1="yes",$A2="-) applied to the cell/range you need to color
Oh really so easy ...
So many hours to try to solve! I was not getting the "and" in the right place. It was not working.
Thanks!!
Reply With Quote
  #4  
Old 12-07-2017, 01:14 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is online now How to use conditional formatting for two criteria? Windows 7 64bit How to use conditional formatting for two criteria? Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

You're welcome. I've seen many folks having problems with the AND function. Always easiest to check a function's syntax first.
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #5  
Old 12-07-2017, 02:34 AM
Diana09 Diana09 is offline How to use conditional formatting for two criteria? Windows 10 How to use conditional formatting for two criteria? Office 2013
Novice
How to use conditional formatting for two criteria?
 
Join Date: Dec 2017
Posts: 3
Diana09 is on a distinguished road
Thumbs up

Quote:
Originally Posted by Pecoflyer View Post
You're welcome. I've seen many folks having problems with the AND function. Always easiest to check a function's syntax first.
Yes, and no doubt the problem was syntax. Because the "and" was there, but it was not in the right place. I tried putting it in various ways and it did not work at all.
It's solved and I'm already applying on multiple worksheets.
Thank you for your help.
Reply With Quote
Reply

Tags
conditional formatting, two criteria



Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting chrisoconn Excel 0 07-05-2017 02:10 AM
How to use conditional formatting for two criteria? Conditional formatting bbutl027 Excel 15 12-05-2016 08:56 PM
Conditional Formatting sdfrance Excel 3 01-06-2015 07:10 AM
How to use conditional formatting for two criteria? Conditional formatting that ignores other formatting rules info_guy2 Excel 1 07-03-2014 10:07 AM
How to use conditional formatting for two criteria? Conditional formatting with AND, OR Lucky Excel 2 10-03-2011 11:41 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:02 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft