OR function that ignores blanks

PixieS

New Member
Joined
Oct 8, 2023
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
  2. Mobile
  3. Web
Hello,
thank you in advance for all help regarding this.

I am trying to

get
for these purposes - get a function that automatically shows a text (wonderful) or (no good) for a sequence of stats (manually inputted) based on student scores.

I am trying to find out which meet crtieria for certain elements.

Help form an excel friend, advised to split it up, and use the or function:
=OR(H5="<69",H5>20<85)
for the first set, to determine if for example h is meeting criteria, then total all these criteria check, to give an answer. A wrokaround i can live with.


So
col H (data set 1), J (set 2), k + L (need to count of these data set 3), M (set 4). (i have 7 of these that may or may not be filled.

so in AL i have the OR function above =OR(H5="<69",H5>20<85) but it also counts the blank cells. = i then have AM which counts the qualifying columns here, and returns the result which i have copied into column T.

A) any ideas how i can make either the OR function ignore blanks, or make blanks 0, and then it ignore zeros.
or B) how i can get it to count only the cells that meet criteria without a loop /work around?

thanks again
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Welcome to the Mr. Excel board! I do not completely understand what you want to do in columns K:M and beyond, but here is an example for how to check whether scores in column H meet the criteria described, as well as counting the number that do meet the criteria:
Book1
FGH
2Count of TRUEs6
3Data Set 1
4Conditions MetScore
5TRUE69
6TRUE70
7FALSE
8TRUE68
9FALSE99
10FALSE
11TRUE20
12TRUE21
13TRUE19
Sheet1
Cell Formulas
RangeFormula
G2G2=SUM(--(G5:G13))
G5:G13G5=AND(OR(H5<>"",H5<>0),OR(H5<69,AND(H5>20,H5<85)))

You may want to check the logic and confirm that you want the OR function with the conditions described...for example, <69 does not necessarily make sense when considered with the other condition (e.g., >20).
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
Members
453,021
Latest member
Justyna P

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