Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-21-2019, 12:06 PM
Intruder Intruder is offline Conditional format with multiple ANDs Windows XP Conditional format with multiple ANDs Office 2007
Advanced Beginner
Conditional format with multiple ANDs
 
Join Date: Dec 2010
Posts: 59
Intruder is on a distinguished road
Default Conditional format with multiple ANDs

Hi, attached small Excel with 1 conditional format that doesn't do the job.
I want cells to be colored yellow if multiple AND condition is met.
Criteria described in file
who can help me?


thanx
R
Attached Files
File Type: xlsx CONDITIONING FORMATTING MULTI AND.xlsx (14.5 KB, 9 views)
Reply With Quote
  #2  
Old 02-21-2019, 01:23 PM
NoSparks NoSparks is offline Conditional format with multiple ANDs Windows 7 64bit Conditional format with multiple ANDs Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 842
NoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of light
Default

How about
=AND($D2=3,AND($C2&$E2<>"WTO"))
Reply With Quote
  #3  
Old 02-21-2019, 01:42 PM
Intruder Intruder is offline Conditional format with multiple ANDs Windows XP Conditional format with multiple ANDs Office 2007
Advanced Beginner
Conditional format with multiple ANDs
 
Join Date: Dec 2010
Posts: 59
Intruder is on a distinguished road
Default

Works, great.
I don't understand, why does this formula woks: =AND($D2=3,AND($C2&$E2<>"WTO"))
and this one doesn't ? =AND($D2=3,AND($C2<>"WT",$E2<>"O"))
thanx
Reply With Quote
  #4  
Old 02-21-2019, 02:14 PM
NoSparks NoSparks is offline Conditional format with multiple ANDs Windows 7 64bit Conditional format with multiple ANDs Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 842
NoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of light
Default

In the sample workbook you attached, select I2
from the Formulas ribbon, in the Formula Auditing section, click Evaluate Formula.
Clicking the Evaluate button, Excel will evaluate the underlined portion of the formula
and you will see one step at a time how Excel works its way through the formula.
The conditional formatting is looking for a true result to apply formatting.
Reply With Quote
  #5  
Old 02-21-2019, 02:32 PM
Intruder Intruder is offline Conditional format with multiple ANDs Windows XP Conditional format with multiple ANDs Office 2007
Advanced Beginner
Conditional format with multiple ANDs
 
Join Date: Dec 2010
Posts: 59
Intruder is on a distinguished road
Default

ok, great, thanx
r
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional format with multiple ANDs Conditional format for times LeClef Excel 2 07-14-2018 11:07 AM
I need help creating a conditional format tonydoneese Excel 5 05-28-2017 10:42 AM
How does this Conditional Format work? Gary Drumm Excel 7 04-16-2014 12:01 PM
Conditional format with multiple ANDs Applying a conditional format to multiple rows secoo140 Excel 1 10-12-2013 07:19 PM
Table with Conditional Format to Word billyV Excel 9 06-07-2013 08:26 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:32 AM.


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