ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Multiple IF function (maybe OR) (https://www.excelbanter.com/excel-worksheet-functions/175004-multiple-if-function-maybe.html)

mpenkala

Multiple IF function (maybe OR)
 
Hi all,

I need some help with a chart I'm making.

I want an if function to do the following:

IF B1=1,2,3 or 9, then mark B2 with an "x".

Should be simple, but I can never figure out the multiple numbers.

Thanks,
Matt


Bernard Liengme

Multiple IF function (maybe OR)
 
=IF(OR(B1={1,2,3,9}),"X","")
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"mpenkala" wrote in message
...
Hi all,

I need some help with a chart I'm making.

I want an if function to do the following:

IF B1=1,2,3 or 9, then mark B2 with an "x".

Should be simple, but I can never figure out the multiple numbers.

Thanks,
Matt




mpenkala

Multiple IF function (maybe OR)
 
Perfect - thanks Bernard.

Matt


"Bernard Liengme" wrote:

=IF(OR(B1={1,2,3,9}),"X","")
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"mpenkala" wrote in message
...
Hi all,

I need some help with a chart I'm making.

I want an if function to do the following:

IF B1=1,2,3 or 9, then mark B2 with an "x".

Should be simple, but I can never figure out the multiple numbers.

Thanks,
Matt





mpenkala

Multiple IF function (maybe OR)
 
Hey Bernard,

how can I modify this formula so that it doesn't give me an "x" when the
cell is blank and my formula is
=IF(OR(B1={0,1,2,7}),"X","")

Thanks!
Matt


"Bernard Liengme" wrote:

=IF(OR(B1={1,2,3,9}),"X","")
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"mpenkala" wrote in message
...
Hi all,

I need some help with a chart I'm making.

I want an if function to do the following:

IF B1=1,2,3 or 9, then mark B2 with an "x".

Should be simple, but I can never figure out the multiple numbers.

Thanks,
Matt





David Biddulph[_2_]

Multiple IF function (maybe OR)
 
=IF(B1="","",IF(OR(B1={0,1,2,7}),"X",""))
or
=IF(AND(B1<"",OR(B1={0,1,2,7})),"X","")
--
David Biddulph

"mpenkala" wrote in message
...
Hey Bernard,

how can I modify this formula so that it doesn't give me an "x" when the
cell is blank and my formula is
=IF(OR(B1={0,1,2,7}),"X","")

Thanks!
Matt


"Bernard Liengme" wrote:

=IF(OR(B1={1,2,3,9}),"X","")
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"mpenkala" wrote in message
...
Hi all,

I need some help with a chart I'm making.

I want an if function to do the following:

IF B1=1,2,3 or 9, then mark B2 with an "x".

Should be simple, but I can never figure out the multiple numbers.

Thanks,
Matt







mpenkala

Multiple IF function (maybe OR)
 
Hey David,

thanks - works great!

Matt


"David Biddulph" wrote:

=IF(B1="","",IF(OR(B1={0,1,2,7}),"X",""))
or
=IF(AND(B1<"",OR(B1={0,1,2,7})),"X","")
--
David Biddulph

"mpenkala" wrote in message
...
Hey Bernard,

how can I modify this formula so that it doesn't give me an "x" when the
cell is blank and my formula is
=IF(OR(B1={0,1,2,7}),"X","")

Thanks!
Matt


"Bernard Liengme" wrote:

=IF(OR(B1={1,2,3,9}),"X","")
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"mpenkala" wrote in message
...
Hi all,

I need some help with a chart I'm making.

I want an if function to do the following:

IF B1=1,2,3 or 9, then mark B2 with an "x".

Should be simple, but I can never figure out the multiple numbers.

Thanks,
Matt









All times are GMT +1. The time now is 02:16 PM.

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