I have a formula that picks up values and text in another worksheet file.
I used the Sum() function, because if I use the + and reference to the cell
in the other worksheet file, it puts the long name in i.e.
C:\data\exceldata\... etc. I want to share the file, and when I go to copy
the files to a floppy, it keeps the Drive letter and folders in the formula.
So, this is why I used the Sum() function. But, for some reason, the Sum()
function won't pick up text, only values. How can I change this? I sure
would appreciate any help you can give.
I've read the other responses and your follow-ups, so I'm responding to more
than just this, your original post.
You're trying to use
SUM(ReferenceToSingleCell)
rather than
+ReferenceToSingleCell
Are you trying to use these as entire formulas?
Regardless, if you believe that using SUM eliminates the 'problem' of Excel
converting base filename-only external references to full pathname external
references when you close the file containing the cells to which your external
reference links refer, you are mistaken. If you have a problem with
='[foo.xls]bar'!X99
becoming
='C:\one\subdir\and\another\and\another\yada\yada\yada\[foo.xls]bar'!X99
You'll have *exactly* the *same* problem using SUM. That is,
=SUM('[foo.xls]bar'!X99)
under the same changes will become
=SUM('C:\one\subdir\and\another\and\another\yada\yada\yada\[foo.xls]bar'!X99)
Try it if you don't believe me.
Excel has a long-standing limitation that it can't support multiple files with
the same base filename being open simultaneously. E.g, C:\what\foo.xls and
D:\ever\foo.xls can't be open at the same time because both have the same base
filename foo.xls. That allows the very short-sighted 'benefit' of only needing
to use the base filename in external references like '[foo]bar'!X99 when a file
with base filename foo.xls is open. However, Excel does *NOT* refer to whatever
foo.xls file is open. Rather, it refers to the specific foo.xls file that was
open when you created the external link to cells within it. E.g., if the file
C:\what\foo.xls were open when you enter either of the formulas
='[foo.xls]bar'!X99
or
=SUM('[foo.xls]bar'!X99)
then you save the file containing this external reference as X:\test.xls, then
you quit and relaunch Excel, open D:\ever\foo.xls, then open X:\test.xls again,
you'll find that the external references do *NOT* refer to D:\ever\foo.xls which
is open and seemingly available as '[foo.xls]'. Instead, both formulas above
would change to
='C:\what\[foo.xls]bar'!X99
or
=SUM('C:\what\[foo.xls]bar'!X99)
There's a lesson here. EXCEL DOES *NOT* PROVIDE RELATIVE FILE REFERENCES. *ALL*
EXTERNAL REFERENCES IN EXCEL INVOLVE *FULL*/*ABSOLUTE* PATHNAMES. There are no
exceptions, and *ALL* workarounds involve VBA, either altering the drive and
directory paths in all formulas or by using the alternatives in
http://www.google.com/[email protected]