IF(AND Statement Help

hkydad

Board Regular
Joined
May 16, 2013
Messages
66
Office Version
  1. 365
Platform
  1. Windows
I have a table with multiple columns of data and I need some assistance returning a "True", or a "False" based on certain criteria. What I am trying to do is get the IF statement to return a True or False based on certain criteria, such as If column A is New or Used, and column B is >= 18, the statement should return True, if not then False. What I have come up with so far is the following. I'm sure it is something simple I am missing but any help would be greatly appreciated.

IF(OR(A="New","Used"),IF(B>=18),"True","False")

Used 15
New 20
Borrowed 37
New 8
Used 12
Totaled 28
New 41
Borrowed 35
 
Last edited:

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
I apologize, the table I typed in did not come out as expected.

The Labels are in Column A
The #'s are in column B
 
Upvote 0
It would help if you changed your profile and indicated what version of Excel you use.

Is this what you mean?

Book1
ABC
2New25True
3New17False
4Used19True
5New24True
6New15False
7Used17False
8New20True
9Used14False
10Used17False
11Used14False
Sheet6
Cell Formulas
RangeFormula
C2:C11C2=IF(AND(OR(A2="New",A2="Used"),B2>=18),"True","False")
 
Upvote 0
Another option
Excel Formula:
=AND(OR(A2={"new","Used"}),B2>18)
 
Upvote 0
It would help if you changed your profile and indicated what version of Excel you use.

Is this what you mean?

Book1
ABC
2New25True
3New17False
4Used19True
5New24True
6New15False
7Used17False
8New20True
9Used14False
10Used17False
11Used14False
Sheet6
Cell Formulas
RangeFormula
C2:C11C2=IF(AND(OR(A2="New",A2="Used"),B2>=18),"True","False")
Hi..Thanks for the reminder about my profile and am currently using Excel for Microsoft 365.

Thank you for your assistance with the formula.
 
Upvote 0

Forum statistics

Threads
1,215,473
Messages
6,125,018
Members
449,203
Latest member
tungnmqn90

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