+ Reply to Thread
Results 1 to 15 of 15

Sumproduct Not Working In Closed Workbook & shows #N/A

  1. #1
    Registered User
    Join Date
    05-27-2008
    Location
    Singapore
    Posts
    6

    Sumproduct Not Working In Closed Workbook & shows #N/A

    Hi everyone,

    Im new to formulas in excel.
    And this is driving me crazy..
    I had been search high and low in all forums for 5hrs!!
    I tried to input by SUMPRODUCT, but i still cant solve my problem!

    PLEASE HELP ME!!! =S

    Here's the problem...

    I am using this formula in Product Balance Update.xls,Tsuchiura worksheet that update data from A-Tsuchiura.xls, INVOICE worksheet.

    When both workbooks are is opened, all linking are fine.

    But upon A-Tsuchiura.xls is closed, my linking in Product Balance Update.xls,Tsuchiura worksheet will shows #N/A.

    I had tried many ways for sumproduct
    1) =SUMPRODUCT(--('\\Som\factory\Distribution\Shipment\[A-Tsuchiura.xls]INVOICE'!$B$14:$B$97=A3),--('\\Som\factory\Distribution\Shipment\[A-Tsuchiura.xls]INVOICE'!$G$14:$G$97))

    2) =SUMPRODUCT(('\\Som\factory\Distribution\Shipment\[A-Tsuchiura.xls]INVOICE'!$B$14:$B$97=A3)*('\\Som\factory\Distribution\Shipment\[A-Tsuchiura.xls]INVOICE'!$G$14:$G$97))

    I had read through this forum that sumproduct should work in closed workbook but I still cant get it why this error ocurr..

    Please refer to attached to have a clearer picture of error

    please help me solve this issue please??
    Attached Files Attached Files
    Last edited by VBA Noob; 05-27-2008 at 02:25 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Are you sure there are no #N/A errors in columns B or G of the INVOICE sheet?

    Usually, if a function doesn't work on closed workbooks, you get the #VALUE! error returned not the #N/A error.. so there must be something else not right.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Hi, and welcome to the forum,

    Please note the advice in the forum rules about pictures. You are more likely to get a response if you attach the actual workbook containing the sheet/area that's giving a problem.

    Attaching a workbook with an embedded picture of the problem area doesn't really help others solve your problem.

    Kind regards

  4. #4
    Registered User
    Join Date
    05-27-2008
    Location
    Singapore
    Posts
    6
    Hi all,

    Regarding NBVC qns, there areno errors on Invoice sheet.

    I had posted the actual workbook instead of pics.

    Please help!!

    Regards,
    Jasmine
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-26-2008
    Posts
    23
    I too have had this problem with a sumproduct. I searched everywhere for a solution but I honestly never found one!

    It's madness, it should definitely work but it never shows a value if the source data is closed.

    Let me know if you have any luck! Sorry I couldn't help

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Well, I am not sure, but I think Excel is confused about the format of Column B in the Invoice Sheet.

    I noticed your underlying format is currency...when there are no "numbers" in that column.

    What I did was select column B and go to Data|Text to Columns. Then I skipped to the 3rd window and selected Text from the Column Data Format area.

    Then click Ok.

    If you still see N/A, hit F9 to recalculate...

    I hope that works...it did for me.

  7. #7
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    How about this in B3

    =SUMPRODUCT(--('\\Som\factory\Distribution\Shipment\[A-Tsuchiura.xls]INVOICE'!$B$14:$B$97=Tsuchiura!A3),--('\\Som\factory\Distribution\Shipment\[A-Tsuchiura.xls]INVOICE'!$G$14:$G$97))
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  8. #8
    Registered User
    Join Date
    05-27-2008
    Location
    Singapore
    Posts
    6
    Hi all,

    sorry for the late reply..

    I had tried 2 methods.

    NBVC : I tried your method. After editing to text format, the whole formula is shown out into text. I also tried F9 but no response..

    (please refer to attached)

    Oldchippy : i tried urs too. but shows a #name error..

    please helP!!
    Attached Files Attached Files
    Last edited by jasgat; 06-08-2008 at 10:18 PM.

  9. #9
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    OK,

    Try this,

    =SUMPRODUCT(--('\\Som\factory\Distribution\Shipment\[A-Tsuchiura.xls]INVOICE'!$B$14:$B$97=A4),--\\Som\factory\Distribution\Shipment\[A-Tsuchiura.xls]INVOICE'!$G$14:$G$97)

    Remove the second set of brackets

  10. #10
    Registered User
    Join Date
    05-27-2008
    Location
    Singapore
    Posts
    6
    Hi oldchippy,

    I tried, but cant.. still #N/A.


  11. #11
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097

  12. #12
    Registered User
    Join Date
    05-27-2008
    Location
    Singapore
    Posts
    6
    Old Chippy : Cant.. no use to it.. The formula can work when the original workbook is opened. But when it is close it will show #N/A..

  13. #13
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    I think I've run out of suggestions?

  14. #14
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try the following...

    1) Select B3 in your workbook called 'Product Balance Update.xls'.

    2) Format the cell as 'General'.

    3) Re-enter the formula or click into the formula bar and press ENTER.

    4) Copy/paste or drag the formula down the column

    See the attached files.

    Hope this helps!
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    05-27-2008
    Location
    Singapore
    Posts
    6
    So sorry for the late reply.

    I tried in the xls file that I gave you all.
    It works.

    But when I tried in my original copy the problem came back!!

    OMG!! HELP!!

    Now i send u all the original A-Tsuchiura.xls with the product bal.!!

    Please help!!!

    https://rcpt.yousendit.com/589599173...c1c380e6db9c3f

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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