+ Reply to Thread
Results 1 to 19 of 19

Is it possible to sum entire column with out opening excel ?

Hybrid View

  1. #1
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: Is it possible to sum entire column with out opening excel ?

    P.s.
    I am the last one that would split hairs over this......
    Quote Originally Posted by FDibbins View Post
    .... there are a few different ways to sum/get values data from a closed WB. .........
    An expert might disagree, particularly with the “from a closed WB”
    I expect it should be
    “there are a few different ways to sum/get values data that is in a closed WB”
    It would appear you actually get that information from a copy, and that copy due to its ease of access could be a bit of a security hole that is not always too keenly talked about....
    If you know the WB name, and it's structure, it IS entirely possible (and a fairly simple matter, depending in the complexity of the requirement), to extract values from a closed workbook. A simple =SUM([book1.XLSB]Sheet1!$A$4:$A$8) is a perfect example, as is =[book1.XLSB]Sheet1!A4.
    SUMPUDUCT will also extract data from a closed workbook

    I suspect you are thinking of the XXXIF() family of functions which do not work on closed workbooks?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  2. #2
    Forum Expert Doc.AElstein's Avatar
    Join Date
    05-23-2014
    Location
    '_- Germany >Outside Building things.... Mostly
    MS-Off Ver
    Office 2003 2007 2010 PC but Not mac. XP and Vista mostly, sometimes Win 7
    Posts
    3,618

    Re: Is it possible to sum entire column with out opening excel ?

    Hi Ford
    Thanks for coming back. This is very useful in clearing something up that clearly confuses bigger Excel Brains than mine!!
    Quote Originally Posted by FDibbins View Post
    If you know the WB name, and it's structure, it IS entirely possible (and a fairly simple matter, .... to extract values from a closed workbook. A simple ..... =[book1.XLSB]Sheet1!A4.
    ......
    I agree that it appears to get “what you want”. I just tried. It does as you suggest. I am very confused
    Quote Originally Posted by FDibbins View Post
    ......
    I suspect you are thinking of the XXXIF() family of functions which do not work on closed workbooks?
    No I was not. I have simply been reading everywhere that you cannot directly do it.
    _ - Even though, in some articles that I have read this , they then seem to go on and do just that!!!
    For example:
    http://www.ozgrid.com/VBA/ExtractFromClosedWorkbook.htm
    So I am very confused...
    Can you explain why they say in such an article that it cannot be done. In that particular article they seem to be going on to do exactly what you have done.??


    So I was assuming that somehow you are doing something that gets the data ( possibly a copy there of ) from somewhere or something, but not directly from the Workbook ??

    Very confusing!
    I know that you can get what you want. But it appears to confuse more experienced people than me and many will still tell me “.....it's not possible to pull in data from a closed Workbook (without opening it)....”
    Alan.


    P.S. Just for clarity....In the Bill Jelen Link
    https://www.youtube.com/watch?v=-0cDSt0Io40
    he is suggesting if you do something similar to your example, but doing a VLOOKUP on a large table, that it would mean the following.
    If you saved your file and passed it on to someone somewhere else in the world and they have no access to the closed File from which the VLOOKUP referenced, then they could still get all the information from the complete range used in the VLOOKUP formula as the File you gave them included some XML "thing" that had all the info from the last reference made to the closed Workbook.
    As long as they do not update the link on opening, or by referencing cells in that range by modifying the VLOOKUP formula ( or using a (different formula referencing the same cells ) then they would still be privy to the entire values from the entire range, even if your original VLOOKUP had just selected a few of them.
    So you see that was what was confusing me
    I thought
    _- you use your formula once with the "closed file" open and a "XML" thing has that info.
    _. You close the "Closed file" and that particular reference works still ( getting info from......I thought a "XML" thing...."Cached".... )
    _- But i then assumed a reference to a new cell from a range not used in the first formula would now not work
    _ -But I just confirmed that it does. So you see the reason for my confusion!!
    Last edited by Doc.AElstein; 02-16-2016 at 02:01 PM.
    '_- Google first, like this _ site:ExcelForum.com Gamut
    Use Code Tags: Highlight code; click on the # icon above,
    Post screenshots COPYABLE to a Spredsheet; NOT IMAGES PLEASE
    http://www.excelforum.com/the-water-...ml#post4109080
    https://app.box.com/s/gjpa8mk8ko4vkwcke3ig2w8z2wkfvrtv
    http://excelmatters.com/excel-forums/ ( Scrolll down to bottom )

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 12
    Last Post: 09-16-2015, 12:35 PM
  2. Search an entire column for a value, return entire row.
    By jdsmith1895 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-06-2012, 12:53 PM
  3. Search entire column, return entire row
    By Chris Gwynne in forum Excel General
    Replies: 0
    Last Post: 08-04-2011, 11:21 AM
  4. Replies: 4
    Last Post: 06-20-2006, 01:30 PM
  5. [SOLVED] How do I add the same number/value for an entire column in Excel?
    By Gregorio in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-25-2006, 05:15 PM
  6. How to compare an entire column to multiple columns in Excel
    By paveernaa@gmail.com in forum Excel General
    Replies: 3
    Last Post: 04-07-2006, 11:45 AM
  7. Replies: 10
    Last Post: 03-17-2006, 07:10 PM

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