Really crap excel q...
 

Subscribe now and choose from over 30 free gifts worth up to £49 - Plus get £25 to spend in our shop

[Closed] Really crap excel question that pains me

5 Posts
5 Users
0 Reactions
38 Views
Posts: 0
Free Member
Topic starter
 

I have about 35 excel files, all formatted the same way but with different data. Is there any mergy-type way of getting all the data into one file that is better than opening them all and cutting pasting? Please tell me there is. God bless you all.


 
Posted : 04/11/2010 2:04 pm
Posts: 0
Free Member
 

If you have to ask this question then the quickest way of doing it is the way you've described. Sorry.


 
Posted : 04/11/2010 2:06 pm
Posts: 0
Free Member
 

You could write VBA to do it but thats prob more of a pain than opening them all and doing a bit of a ctrl-c/v frenzy


 
Posted : 04/11/2010 2:17 pm
Posts: 0
Free Member
Topic starter
 

OK. Damn. I'll have to pay one of my kids to do some C&P


 
Posted : 04/11/2010 2:43 pm
Posts: 270
Free Member
 

All the data on the same sheet?

Could you not export them all as CSV, concatenate all of the CSV's together and then re-apply the formatting?

If you want it all on separate sheets ignore me.


 
Posted : 04/11/2010 2:48 pm
Posts: 91096
Free Member
 

There is, yes. I did exactly this the other day. You have to have all the files open.

Use this:

=INDIRECT("'C:\Expenses\file.xlsx]Expenses'!AL37")

Where AL37 is the cell I want and Expenses is the sheet name.

File.xlsx has to be open though.

I had a load of files that were named as dates like this 2010-10-10.xlsx so I made a column with the dates in it and then used this to generate the file name where C was the column with the dates in it

=INDIRECT("'C:\Expenses\[" & TEXT(YEAR(C2), "00") & "-" & TEXT(MONTH(C2), "00") & "-" & TEXT(DAY(C2), "00") & ".xlsx]Expenses'!AL37")

You can download a function from the 'net that do the same as INDIRECT but will open the file if it's not open. It's called PULL, [url= https://groups.google.com/group/microsoft.public.excel.worksheet.functions/msg/e249f6c074a3adfd?hl=en ]this link may work but you may wish to google further.[/url]


 
Posted : 04/11/2010 3:19 pm