I have 2 work books, book1 and book2. I need help with a formula. When I have data in the cell it works great, but when there is no data I’m getting a #DIV/0 error.
Book 1 has this formula in it, but it is referencing book 2 that has multiple sheets in it. Example sheet1 through sheet 7
This is the formula I’m using.
=SUM('[book2.xlsx]sheet1:sheet7'!$B$65)/INDEX(FREQUENCY('[book2.xlsx]sheet1:sheet7'!$B$65,0),2)
Once again it works great when there is data. When no data is present I get #DIV/0 error. I have tried the following.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
=IF('[book2.xlsx]sheet1:sheet7'!$B$65=0,0,SUM('[book2.xlsx]sheet1:sheet7'!$B$65)/INDEX(FREQUENCY('[book2.xlsx]sheet1:sheet7'!$B$65,0),2))
With this formula I get #REF error. If I select just 1 sheet from the example above it works fine =IF('[book2.xlsx]sheet1'!$B$65=0,0,SUM('[book2.xlsx]sheet1:sheet2'!$B$65)/INDEX(FREQUENCY('[book2.xlsx]sheet1:sheet7'!$B$65,0),2))
I need the cell to be blank or 0 if there is no data. I hope I haven’t confused any one.
Thanks
Book 1 has this formula in it, but it is referencing book 2 that has multiple sheets in it. Example sheet1 through sheet 7
This is the formula I’m using.
=SUM('[book2.xlsx]sheet1:sheet7'!$B$65)/INDEX(FREQUENCY('[book2.xlsx]sheet1:sheet7'!$B$65,0),2)
Once again it works great when there is data. When no data is present I get #DIV/0 error. I have tried the following.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o></o>
=IF('[book2.xlsx]sheet1:sheet7'!$B$65=0,0,SUM('[book2.xlsx]sheet1:sheet7'!$B$65)/INDEX(FREQUENCY('[book2.xlsx]sheet1:sheet7'!$B$65,0),2))
With this formula I get #REF error. If I select just 1 sheet from the example above it works fine =IF('[book2.xlsx]sheet1'!$B$65=0,0,SUM('[book2.xlsx]sheet1:sheet2'!$B$65)/INDEX(FREQUENCY('[book2.xlsx]sheet1:sheet7'!$B$65,0),2))
I need the cell to be blank or 0 if there is no data. I hope I haven’t confused any one.
Thanks
Last edited: