A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

generating formula with a formula



 
 
Thread Tools Display Modes
  #1  
Old November 25th, 2003, 09:47 PM
Lisa Linard
external usenet poster
 
Posts: n/a
Default generating formula with a formula

I want to create a formula in a worksheet that sums
column B in multiple csv files that are each
called "Tracking XXX (hits).csv" where XXX is different
for each file.
I put the XXX part in Col A of my worksheet and want to
generate the SUM formula by automatically inserting XXX
from Col A, then run the SUM formula to give me my total.
So if Col A contained "ABC" the final formula would look
like this:
=SUM('Filename ABC (hits).csv'!$B:$B)")
I've used CONCATENATE to create the formula:
=CONCATENATE("=SUM('Tracking ",A2," (hits).csv'!$B:$B)")
But the result just sits there as text. I can't figure
out how to get it to *work* as a formula. Any ideas?
  #2  
Old November 26th, 2003, 12:31 PM
steve smallman
external usenet poster
 
Posts: n/a
Default generating formula with a formula

Lisa,
Cell A1 = "ABC"

Cell B1 is your formula
=Sum(('Filename ' & a1 & ' (hits).csv'!$B:$B)

Should work.....

steve
-----Original Message-----
I want to create a formula in a worksheet that sums
column B in multiple csv files that are each
called "Tracking XXX (hits).csv" where XXX is different
for each file.
I put the XXX part in Col A of my worksheet and want to
generate the SUM formula by automatically inserting XXX
from Col A, then run the SUM formula to give me my total.
So if Col A contained "ABC" the final formula would look
like this:
=SUM('Filename ABC (hits).csv'!$B:$B)")
I've used CONCATENATE to create the formula:
=CONCATENATE("=SUM('Tracking ",A2," (hits).csv'!$B:$B)")
But the result just sits there as text. I can't figure
out how to get it to *work* as a formula. Any ideas?
.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:04 PM.


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