Either function?

  • Thread starter Thread starter Legacy 180354
  • Start date Start date
L

Legacy 180354

Guest
Hi
I was wondering, is there an Either function (or something like that) in excel?
what I'm trying to do is as follows:
below is my data starting in A1
<table border="0" cellpadding="0" cellspacing="0" width="164"><colgroup><col style="mso-width-source:userset;mso-width-alt:5997;width:123pt" width="164"> </colgroup><tbody><tr style="height:15.0pt" height="20"> <td style="height:15.0pt;width:123pt" align="right" height="20" width="164">1</td> </tr> <tr style="height:15.0pt" height="20"> <td style="height:15.0pt" align="right" height="20">2</td> </tr> <tr style="height:15.0pt" height="20"> <td style="height:15.0pt" align="right" height="20">11</td> </tr> <tr style="height:15.0pt" height="20"> <td style="height:15.0pt" align="right" height="20">10</td> </tr> </tbody></table>In A5 I want to make the formula, if either of these numbers are greater then 5, it should return True, if not False. I tried doing =if(or(a1>5,a2>5,a3>5,a4>5),true,false). This works fine, however when I have a list of a lot of numbers, it's quite difficult to do every cell separately. Is there a a way I can do =if(either(a1:a4>5),true,false) or something similar?

Thank you!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Hi
I was wondering, is there an Either function (or something like that) in excel?
what I'm trying to do is as follows:
below is my data starting in A1
<TABLE cellSpacing=0 cellPadding=0 width=164 border=0><COLGROUP><COL style="WIDTH: 123pt; mso-width-source: userset; mso-width-alt: 5997" width=164></COLGROUP><TBODY><TR style="HEIGHT: 15pt" height=20><TD style="WIDTH: 123pt; HEIGHT: 15pt" align=right width=164 height=20>1</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="HEIGHT: 15pt" align=right height=20>2</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="HEIGHT: 15pt" align=right height=20>11</TD></TR><TR style="HEIGHT: 15pt" height=20><TD style="HEIGHT: 15pt" align=right height=20>10</TD></TR></TBODY></TABLE>In A5 I want to make the formula, if either of these numbers are greater then 5, it should return True, if not False. I tried doing =if(or(a1>5,a2>5,a3>5,a4>5),true,false). This works fine, however when I have a list of a lot of numbers, it's quite difficult to do every cell separately. Is there a a way I can do =if(either(a1:a4>5),true,false) or something similar?

Thank you!
One way...

=COUNTIF(A1:A4,">5")>0
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,761
Members
452,940
Latest member
rootytrip

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