null values returning 0

dmheller

Board Regular
Joined
May 26, 2017
Messages
142
Office Version
  1. 365
Here is the equation
=1440-SUM(IF(ISNUMBER('Line 3'!$D$4:$D$44903),IF(INT('Line 3'!$D$4:$D$44903)=INT('Line 3 calc Sheet'!B3),--(('Line 3 data copy'!$E$4:$E$44703>220)+('Line 3 data copy'!$F$4:$F$44703>220)+('Line 3 data copy'!$G$4:$G$44703>220)+('Line 3 data copy'!$H$4:$H$44703>220)>0))))
CTR+****+Enter
So this is counting the min that any number is greater than 220 and subtracting it from 1440

Its looking up dates and then E,F,G,H are numbers
The equation works for what I am looking for except one problem. Sometimes within the data (numbers) there is bad data that says NULL. The equation treats this as nothing and counts it as greater than 220 I guess. How do I fix it so I can see there is NULL values? Any help would be great.
For example, I have 7 min of data that say Null and for my equation it returns 1433 or 1440-7 when it should return 1440 as 0 times the data gets above 220

thanks
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Try adding ISNUMBER checks like this:

=1440-SUM(IF(ISNUMBER('Line 3'!$D$4:$D$44903),IF(INT('Line 3'!$D$4:$D$44903)=INT('Line 3 calc Sheet'!B3),--(('Line 3 data copy'!$E$4:$E$44703>220)*ISNUMBER('Line 3 data copy'!$E$4:$E$44703)+('Line 3 data copy'!$F$4:$F$44703>220)*ISNUMBER('Line 3 data copy'!$F$4:$F$44703)+ ('Line 3 data copy'!$G$4:$G$44703>220)*ISNUMBER('Line 3 data copy'!$G$4:$G$44703)+('Line 3 data copy'!$H$4:$H$44703>220)*ISNUMBER('Line 3 data copy'!$H$4:$H$44703)>0))))
 
Last edited:
Upvote 0
Thank you that works to solve that problem. Now I just have to find a way to find the Null values within the data set. Probably use filters, but if you know a way to search a column for that, that would be awesome. Or just search a column for the is not a number and I can find the Null value.
 
Upvote 0

Forum statistics

Threads
1,216,477
Messages
6,130,862
Members
449,600
Latest member
inborntarmac

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