ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   condition - member of a group (https://www.excelbanter.com/excel-discussion-misc-queries/76902-condition-member-group.html)

elbows

condition - member of a group
 

Hi.

I want to make the condition of my if-then statement be whether a value
is either 10,11, or 12. I can't find an "in" function or something like
that.

Can someone tell me how to do this?

Thanks.


--
elbows
------------------------------------------------------------------------
elbows's Profile: http://www.excelforum.com/member.php...fo&userid=7449
View this thread: http://www.excelforum.com/showthread...hreadid=521772


Bob Phillips

condition - member of a group
 
=IF(OR(A1=10,A1=11,A1=12),...

or

=IF(AND(A1=10,A1<=12),...

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"elbows" wrote in
message ...

Hi.

I want to make the condition of my if-then statement be whether a value
is either 10,11, or 12. I can't find an "in" function or something like
that.

Can someone tell me how to do this?

Thanks.


--
elbows
------------------------------------------------------------------------
elbows's Profile:

http://www.excelforum.com/member.php...fo&userid=7449
View this thread: http://www.excelforum.com/showthread...hreadid=521772





condition - member of a group
 
Hi

In its simplest form, you could use this:
=IF(OR(A2=10,A2=11,A2=12),"Yes","No")

Hope this helps.
Andy.

"elbows" wrote in
message ...

Hi.

I want to make the condition of my if-then statement be whether a value
is either 10,11, or 12. I can't find an "in" function or something like
that.

Can someone tell me how to do this?

Thanks.


--
elbows
------------------------------------------------------------------------
elbows's Profile:
http://www.excelforum.com/member.php...fo&userid=7449
View this thread: http://www.excelforum.com/showthread...hreadid=521772




elbows

condition - member of a group
 

Thanks. That helps.


--
elbows
------------------------------------------------------------------------
elbows's Profile: http://www.excelforum.com/member.php...fo&userid=7449
View this thread: http://www.excelforum.com/showthread...hreadid=521772



All times are GMT +1. The time now is 08:19 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com