code for changing #DIV/0! error to "NULL"

reinerhgarcia

New Member
Joined
Sep 24, 2011
Messages
2
Hi to all,

I had a problem regarding these code:
(SUMIFS('Raw Data - Storage'!$K$2:$K$100000,'Raw Data - Storage'!$K$2:$K$100000,">=1800",'Raw Data - Storage'!$D$2:$D$100000,"Weather",'Raw Data - Storage'!$B$2:$B$100000,"MS*")/($D$7)/60)

Whenever I use this code, if there is no value in column K that is greater than or equal to 1800, it shows a #DIV/0! errors. Can someone help me how to change this to #DIV/0! = NULL instead?

I need some advise on this.

Thanks guys!
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hi to all,

I had a problem regarding these code:
(SUMIFS('Raw Data - Storage'!$K$2:$K$100000,'Raw Data - Storage'!$K$2:$K$100000,">=1800",'Raw Data - Storage'!$D$2:$D$100000,"Weather",'Raw Data - Storage'!$B$2:$B$100000,"MS*")/($D$7)/60)

Whenever I use this code, if there is no value in column K that is greater than or equal to 1800, it shows a #DIV/0! errors. Can someone help me how to change this to #DIV/0! = NULL instead?

I need some advise on this.

Thanks guys!

Try one of...

=IF($D$7,(SUMIFS('Raw Data - Storage'!$K$2:$K$100000,'Raw Data - Storage'!$K$2:$K$100000,">=1800",'Raw Data - Storage'!$D$2:$D$100000,"Weather",'Raw Data - Storage'!$B$2:$B$100000,"MS*")/($D$7)/60),0)

=IF(N($D$7),(SUMIFS('Raw Data - Storage'!$K$2:$K$100000,'Raw Data - Storage'!$K$2:$K$100000,">=1800",'Raw Data - Storage'!$D$2:$D$100000,"Weather",'Raw Data - Storage'!$B$2:$B$100000,"MS*")/($D$7)/60),0)
 
Upvote 0

Forum statistics

Threads
1,224,606
Messages
6,179,865
Members
452,948
Latest member
UsmanAli786

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