Automatically update ProjectSummary workbook, from last row of multiple projects workbooks

Posted on 2016-10-30
Last Modified: 2016-11-01
Hello Experts,

I had a similar question answered, so very much appreciated as the script was 1st class :) This is a variation, so any help would again be greatly appreciated.

I've got ProjectSsummary.xlsx

A				B												C
Project Name	Full pathname									Summary
Project1			C:\Users\Jamie\CCCWork\[Project1.xlsx]Sheet1		Update1-3    	
Project2			C:\Users\Jamie\CCCWork\[Project2.xlsx]Sheet1		Update2-3    	
Project3			C:\Users\Jamie\CCCWork\[Project3.xlsx]Sheet1		Update3-3    	

For the Summary (C) fields;


Which is just the first column, whereas, I want all the columns (2 in this case) to be displayed - so I changed to


But this doesn't work - plus all the spreadsheets have to be opened for this work?

Finally, I've hard-coded the full path names, but I want to be able to use those from Col B
Sample data project workbooks

[b]Project1. xls[/b]
A                       B
Update1-1      01/01/2016
Update1-2      01/02/2016
Update1-3      01/03/2016

[b]Project2. xls[/b]
A                      B
Update2-1      02/01/2016
Update2-2      02/02/2016
Update2-3      02/03/2016

[b]Project3. xls[/b]
A                      B
Update3-1      03/01/2016
Update3-2      03/02/2016
Update3-3      03/03/2016

Open in new window

Many thanks

Question by:Jamie
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2

Accepted Solution

Jimy earned 250 total points
ID: 41866128
Hi Jamie,

unfortenately files you refered must be opened.
VBA solution explained:

To use file address from cell:


When OFFSET returns more than one cell you can use SUM function, but you can't concatenate text from array.
Therefore you can add another column "D" for Summary for column B from source


or concatenate both returned data within C- Summary column:

=OFFSET(INDIRECT("'"&B2&"'!"&CELL("address";$A$1));COUNTA(INDIRECT("'"&B2&"'!"&"$A:$A"))-1;0) & " " & TEXT(OFFSET(INDIRECT("'"&B2&"'!"&CELL("address";$A$1));COUNTA(INDIRECT("'"&B2&"'!"&"$A:$A"))-1;1);"MM/DD/YYYY")

LVL 13

Assisted Solution

ioane earned 250 total points
ID: 41866646
Hi Jamie,

I would normally use an index/match function for this to ensure always getting the latest update version regardless of data order.

Get latest update date (COLUMN D):
=MAX(INDIRECT("'" & $B2 & "'!$B:$B"))

Then use Index/match to get version number of latest update (COLUMN C:):
=INDEX(INDIRECT("'" & $B2 & "'!$A:$A"),MATCH($D2,INDIRECT("'" & $B2 & "'!$B:$B"),0))

This is a simpler and (IMHO) more robust solution.

Author Comment

ID: 41867927
Hi Jimy & ioane,

Many thanks for both your help and solutions - for some reason, I cannot get either to work - clearly I'm doing something wrong?


PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

LVL 13

Expert Comment

ID: 41867948
Hi Jamie,

Can you upload an example of your work so we can see where you may have gone wrong?


Author Comment

ID: 41867954
Hi ioane,

Apologies, my error - I've got it working now, I need to open my eyes fully in the morning!

In regard to your solution, it displays col A (from e.g. Project1.xlxs) in ProjectSummary.xlxs, whereas, I want col A to col xx displayed - is this possible?

Also, as Jimy says above - all referenced workbooks need to be open for it to work - is there no way around this, e.g. with vb?



Expert Comment

ID: 41867957
Hi Jamie,

Example for vba solution to open workbooks is attached in my first response, and sure, if you go with vba you can do whatewer you like regarding data from source files.

To get more than one column from the source, you must define it in your 'summary file' cell(s), as I did in first comment.

LVL 13

Expert Comment

ID: 41867963
Hi Jamie,

This is possible but more complex. Will be easier if you can post an example spreadsheet(s) to work on.

Anything's possible with VBA, but again need more info/example showing how your spreadsheets are put together.


Author Closing Comment

ID: 41869608
Hi Jimy, ioane,

Both your solutions work well, which is great news :) Your help and suggestions also provide me with the guidance I need to tweak the solutions further. Many thanks, much appreciated.



Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
window API declaration what is the difference between these two 3 24
Vlookup Help 3 29
Excel (XLSM) on iPad 3 33
Excel - IF criterion 2 23
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question