Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Richard Varcoe
 
Posts: n/a
Default add same cell from all files in same folder

Hi all,

I have a folder that contains Excel files with the following name formats..
0001.xls, 0002.xls, 0003.xls...

In each of these files, the cell G12 on sheet called "impact" contains a
value in GBP.

I want to create a file called total.xls, that will add up cell G12 on the
sheet called "impact" on every excel file between 0001.xls and 9999.xls.

Can I do this, and can i do it without using macros. Our security settings
are very tight where i work and i am not *really* allowed to use macros. If a
macro is the only possible solution, then that will have to do.

Cheers

Richard Varcoe
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

If you're careful, you can do something like this:

Put this formula in A1:
="$$$$$"&"'C:\My Documents\excel\["&TEXT(ROW(),"0000")&"]impact'!$G$12"
(adjust the path, too)

Drag down as for as many files as you have--don't go too far!!!

These formulas will look like:
$$$$$'C:\My Documents\excel\[0001]impact'!$G$12

Then select the exact number of files you have and
Edit|copy
Edit|paste special|Values

Then convert those text strings to formulas:
Select that range to convert
edit|replace
what: $$$$$
with: =
replace all

I'd try it on one or two first. If you do too many and it's wrong (or the
folder/file doesn't exist), then you'll be dismissing dialogs to find that
file/folder--and you'll get #ref! errors returned.






Richard Varcoe wrote:

Hi all,

I have a folder that contains Excel files with the following name formats..
0001.xls, 0002.xls, 0003.xls...

In each of these files, the cell G12 on sheet called "impact" contains a
value in GBP.

I want to create a file called total.xls, that will add up cell G12 on the
sheet called "impact" on every excel file between 0001.xls and 9999.xls.

Can I do this, and can i do it without using macros. Our security settings
are very tight where i work and i am not *really* allowed to use macros. If a
macro is the only possible solution, then that will have to do.

Cheers

Richard Varcoe


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM
Syntax for inferred cell references donesquire Excel Worksheet Functions 4 April 4th 05 09:29 PM
Cannot access read-only documents. tomgillane Excel Discussion (Misc queries) 14 February 7th 05 10:53 PM
inserting data from a row to a cell, when the row number is specified by a formula in a cell [email protected] New Users to Excel 2 January 6th 05 07:18 AM


All times are GMT +1. The time now is 02:57 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"