+ Reply to Thread
Results 1 to 9 of 9

Array formula referencing another workbook

  1. #1
    Registered User
    Join Date
    11-10-2007
    MS-Off Ver
    365
    Posts
    48

    Array formula referencing another workbook

    Folks

    I'm trying to enter an array formula that works great within one workbook. However, when I enter the same formula with the formula referencing columns in a separate workbook, I do not get the {} brackets that indicates an array.

    Both workbooks are open when I try to enter the formula.

    This is the formula

    =SUM((Clnt.xls!TFPlanType=11)*(Clnt.xls!TFOwner=0)*Clnt.xls!TFBal)

    As you can see the formula is using range names.

    My hope is that I can get this to work with the Clnt.xls book closed and just the book containing the array formula open.

    Any suggestions??

    Thank you!

    Kelly

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Array formula referencing another workbook

    How about =SUMPRODUCT( (Clnt.xls!TFPlanType=11) * (Clnt.xls!TFOwner=0) * Clnt.xls!TFBal) entered normally?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Array formula referencing another workbook

    =SUMPRODUCT(('C:\test\sumprodclosed.xls'!martin1=11)*('C:\test\sumprodclosed.xls'!martin2=0)*'C:\test\sumprodclosed.xls'!martin3)
    snap just testing the paths tho!
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    11-10-2007
    MS-Off Ver
    365
    Posts
    48

    Re: Array formula referencing another workbook

    Quote Originally Posted by shg View Post
    How about =SUMPRODUCT( (Clnt.xls!TFPlanType=11) * (Clnt.xls!TFOwner=0) * Clnt.xls!TFBal) entered normally?
    Thank you very much for the help.

    That doesn't seem to work either. I'm starting to think it may be a system problem.

    I appreciate your time and knowledge!

    Kelly

  5. #5
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Array formula referencing another workbook

    It might help if you outline the specifics behind "doesn't work" - ie wrong result, error value eg #NAME? etc etc...

    Without this info. it will be hard for people to help diagnose the problem for you.

  6. #6
    Registered User
    Join Date
    11-10-2007
    MS-Off Ver
    365
    Posts
    48

    Re: Array formula referencing another workbook

    Quote Originally Posted by DonkeyOte View Post
    It might help if you outline the specifics behind "doesn't work" - ie wrong result, error value eg #NAME? etc etc...

    Without this info. it will be hard for people to help diagnose the problem for you.
    When I press CSE the formula doesn't "take" as indicated by {}. It also is returning a zero value when it should be picking up numbers.

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Array formula referencing another workbook

    There's no reason (I can think of) as to why the CSE should not "take" - if it were an error you would not be able to enter at all.

    If you use the SUMPRODUCT alternative as outlined - what is the result then ?
    Last edited by DonkeyOte; 02-01-2010 at 11:57 AM.

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Array formula referencing another workbook

    whenever i set it up it puts [ ] around the file name
    eg in the same folder
    =SUMPRODUCT(([test2.xls]Sheet1!A1:A4=1)*([test2.xls]Sheet1!B1:B4=2),[test2.xls]Sheet1!C1:C4)
    if its elsewhere when i reopen it, it puts full file path
    =SUMPRODUCT(('C:\documents and settings\My Documents\test2\[test2.xls]Sheet1'!A1:A4=1)*('C:\documents and settings\My Documents\test2\[test2.xls]Sheet1'!B1:B4=2),'C:\documents and settings\My Documents\test2\[test2.xls]Sheet1'!C1:C4)

  9. #9
    Registered User
    Join Date
    11-10-2007
    MS-Off Ver
    365
    Posts
    48

    Re: Array formula referencing another workbook

    Thanks for the help. It was a network problem after all.

    Kelly

+ 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