+ Reply to Thread
Results 1 to 2 of 2

Summing Columns on a variable Excel Doc

  1. #1
    Registered User
    Join Date
    01-24-2017
    Location
    Utah
    MS-Off Ver
    2016
    Posts
    1

    Summing Columns on a variable Excel Doc

    Hey! I've been trying to use a combo of SUM, INDIRECT, and MATCH formulas, but can't figure this out. Help would be appreciated =)

    I have one Excel Spreadsheet (StatsCollector) that I'm using to grab stats from multiple other docs, labeled "watch_time._______"

    excel1.PNG

    I want to be able to put the documents name into column A, and then have all the other columns fill in with the appropriate data from the referenced watch_time doc. I couldn't find a way to reference a variable closed Excel doc by using the file location, so if all the other watch_time docs need to be open when referencing, that is fine.


    This is the formula currently in the "Views" Column - which works perfectly when I have the appropriate watch_time doc open:
    =SUM(INDIRECT("'["&A2&".xls"&"]"&"Date"&"'!"&"C:C"))

    **NOTE: A2 = the name of the file, "Date" = tab name

    However, I want to change this to specifically search and sum the "Views" column in the watch_time doc, rather than a fixed C:C - as the people making the watch.time docs sometimes re-arrange or mess them up.



    This is the formula I was able to use to reference a specific cell:
    =INDEX(INDIRECT("'["&A2&".xls"&"]"&"Date"&"'!"&"A1:BA200"),MATCH("2016-11-22",INDIRECT("'["&A2&".xls"&"]"&"Date"&"'!"&"A1:A200"),0),MATCH("Watch time (minutes)",INDIRECT("'["&A2&".xls"&"]"&"Date"&"'!"&"A1:BA1"),0))

    **NOTE: A2 = the name of the file, "Date" = tab name

    In this example it's indexing row "2016-11-22" and column "Watch time", but I don't know how to change it to a sum function for all rows in the "Watch Time" column

    excel2.PNG

    ___________________________________________________________________________________________________
    I feel like I got the right elements, I just can't figure out how to combine them. The indirect functions boggle my brain.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Summing Columns on a variable Excel Doc

    Your explanation is rather complicated.... I think that you are trying to recover data from other sheets. Problem 1. INDIRECT does NOT work with closed sheets. they HAVE to be open.

    Can you post a SMALL sample file(s), with no more than 10-20 rows of data. Please don't attach a picture of one - no-one will want to retype all your stuff.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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. Summing variable values across variable sheets in multiple columns
    By rdelosh74 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-27-2014, 02:16 PM
  2. Summing a variable range of columns
    By Richard Buttrey in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  3. Summing a variable range of columns
    By Richard Buttrey in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  4. Summing a variable range of columns
    By Roger Govier in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 11:05 AM
  5. Summing a variable range of columns
    By Roger Govier in forum Excel Formulas & Functions
    Replies: 18
    Last Post: 09-06-2005, 07:05 AM
  6. [SOLVED] Summing a variable range of columns
    By Roger Govier in forum Excel Formulas & Functions
    Replies: 27
    Last Post: 09-06-2005, 04:05 AM
  7. Summing a variable range of columns
    By Richard Buttrey in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM

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