+ Reply to Thread
Results 1 to 2 of 2

#DIV/0! Errors when pulling from another workbook?

  1. #1
    Registered User
    Join Date
    06-20-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    15

    #DIV/0! Errors when pulling from another workbook?

    I need this to pull prefferably a blank or second prefference a zero in column D if columns A,B or C is empty while getting the value from a different workbook.

    D=Formula
    A-----------B----------C------------------D----------------------------
    30 ----- 0.3571 ----0.3838---------- [=IF(COUNT(A2:C2)=0, "", (C2-B2)*1000000/A2)] (answer D= 890) works fine within the same sheet
    A-----------B----------C------------------D----------------------------
    Blank --- Blank --- Blank------------ [=IF(COUNT(A2:C2)=0,"",C2-B2)*(1000000)/A2] (answer D=Blank) works fine within the same sheet

    Above works great when pulling the values from same sheet, but not from another workbook Example Below we get errors if the cells are blank in workbook 2 that were pulling from. If Values are filled in the cells then our formula works fine.

    A-----------B----------C------------------D----------------------------
    A=[='[Day 1.xlsx]Daily Water Testing'!$J$6] B=[='[Day 1.xlsx]Daily Water Testing'!$K$6] C=[='[Day 1.xlsx]Daily Water Testing'!$L$6] (answer D= #DIV/0!) not fine in this case

    Thanks for you help, If I need to further clarify please let me know.

    ps. the attachments are not the same columns nor workbook names to make it easier to understand starting off.

    ExcelForum has been Great!!! Thanks Gurus!!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: #DIV/0! Errors when pulling from another workbook?

    You'll get that error whenever you are dividing something by 0 (or an empty cell). From the information you have provided, I can't tell you exactly what's wrong. But try using the "Evaluate formula" on the cells with problems. It'll show what's wrong.
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1