Computer Learning Zone CLZ Access Excel Word Windows

One of the biggest problems with the world today is that we have large groups of people who will accept whatever they hear... just because it suits their worldview, not because it is actually true or because they have evidence to support it.

-Neil deGrasse Tyson
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Excel Forum    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
IF AND OR functions
Cathy 

13 years ago
Cell A1 can be either 50, 75, 100
Cell A2 can be either 50A, 50B, 75A, 75B, 100A, 100B
Cell A3 is to return the result of:
If Cell A1 is 50 and Cell A2 is either 50A or 50B, then message "OK", If Cell A1 is 75 and Cell A2 is either 75A or 75B, then message "OK", If Cell A1 is 100 and Cell A2 is either 100A or 100B then message "OK", otherwise "Thickness must match"

I can get this to work if I only use the one set of items, ie. 50, 50A and 50B but once I introduce the 75 and 100 it falls down


Reply from Richard Rost:

You have to use your IF, AND, and OR functions properly. It's easier if you break it down into multiple columns. For example, in B1, I would put the following:

=AND(A1=50,OR(A2="50A",A2="50B"))

That checks for the first value. Now do the same thing for the other two values in C1, and D1. Now you will have three TRUE or FALSE values. In E1, you can say:

=IF(AND(B1,C1,D1),"OK","Thickness must match")

And there you go. It would be a big mess to put that all together into one formula. You COULD do it, but this is much easier to read.

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Excel Forum.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/16/2026 12:48:10 PM. PLT: 1s