Solved

Combining IF, AND, OR functions

Posted on 2013-12-23
3
143 Views
Last Modified: 2013-12-23
Hello Experts,

I have a spreadsheet which I want to filter by a set formula.  

For example:

If A2 <> "-" or A2 <> " " AND B2<>" " AND C2 <>" " "Review".

I have tried a number of ways to do this, including nested IF and did not get the answer I was hoping for.

I have attached an example of what I have tried to do with AND function.

I would be very grateful for any help.

Regards,
Infosec36
Formula.xls
0
Comment
Question by:infosec36
  • 2
3 Comments
 
LVL 23

Expert Comment

by:NBVC
Comment Utility
You can state, in words, when exactly you want the Review to show.

Currently, it looks like it is correctly displaying based on what I read above.
0
 
LVL 23

Accepted Solution

by:
NBVC earned 200 total points
Comment Utility
Maybe you are needing to add the TRIM() function to take care of spaces that shouldn't be there?

e/g/

=IF(AND(TRIM(A2)<>"-",TRIM(A2)<>"",TRIM(B2)<>"",TRIM(C2)<>""),"Review","")

copied down
0
 

Author Closing Comment

by:infosec36
Comment Utility
One thing I did not think about works perfectly.

Thank you.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

A2 = A1 That kind of cell reference is relative.  If you copy it from A2 to B2, then B2 will get this: B2 = B1 That's all fine and good, but if you then insert a new row above row 2, you'll find: A3 = A1 B3 = B1 This is intentional. …
Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now