ppps. Remember that if you do share the workbook with that formula with others,
then the recipients will have to have that MoreFunc.xll addin, too.
Dave Peterson wrote:
You need to include the drive and folder, too. Otherwise, how would
=indirect.ext() know which drive/folder to look into.
ps. If that 09122009 is a date that's formatted as mmddyyyy (or ddmmyyyy),
you'll want to use:
...&text($b$2,"mmddyyyy")&...
or if it's a plain old number that's formatted to show leading 0's:
...&text($b$2,"00000000")&...
========
pps. Remember that if you have to share this workbook with people not using
xl2007, then you won't want to use the entire column. (that only works in
xl2007.)
Nancy Taylor wrote:
Not sure if my last post worked so trying again...
Here's my formula:
=SUMPRODUCT(--(INDIRECT.EXT("'["&$B$2&"_"&D6&".xlsm]Weekly
Timesheet'!$N:$N")=C6),(INDIRECT.EXT("'["&$B$2&"_"&D6&".xlsm]weekly
timesheet'!$L:$L")))
B2 = 09122009
D6 = Nancy Taylor
C6 = Project and phase name I need to total
column N = timesheet project and phase names
column L = timesheet hours
It seems to work if I have the detail spreadsheets open before I open the
summary spreadsheet but if the detail spreadsheets are closed, the #REF!
comes up. If I then open the detail sheets, the #REF! resolves itself.
Make any sense to anyone?
:
For me, it's more trial and error.
If you can't get it working, share the formula you used. (I'd get the simple
=indirect.ext() working first.) And share the values in each of the cells that
the formula refers to.
I'm sure you'll get some suggestions.
Nancy Taylor wrote:
Hi Dave,
Well, I have gone through and replaced my sumifs with sumproducts and
downloaded the morefunc so that I can take advantage of the indirect.ext, but
my formulas still give me a #REF! if the associated spreadsheets are closed.
Is there a trick to getting the indirect.ext to work?
Nancy
:
You've got a couple of obstacles to overcome.
First...
What you'd want to use is =indirect() and build a formula that results in the
string that points at the folder, file, sheet, location.
But the bad thing is that =indirect() won't work if that sending file is closed.
If that's a problem, then Laurent Longre has an addin (morefunc.xll) at:
http://xcell05.free.fr/
or
http://xcell05.free.fr/morefunc/english/index.htm
That includes =indirect.ext() that may help you.
Second...
=sumif() will return an error if the workbook is closed.
You could replace it with =sumproduct()
=sumproduct(--('[FirstName_LastName.xlsx]Sheet'!$L$5:$L$22=C6),
('[FirstName_LastName.xlsx]Sheet'!$K$5:$K$22))
But you'd still may have to overcome the closed workbook problem.
ps. You can't use the entire column in the =sumproduct() formula unless you're
using xl2007.
Nancy Taylor wrote:
I hope this is an easy question to answer...
I am attempting to use a SUMIF to pull in numbers from a separate timesheet
and I would like to build part of the external reference workbook name from a
cell instead of hard-coding it. For example:
=SUMIF('[FirstName_LastName.xlsx]Sheet'!$L$5:$L$22,C6,'[FirstName_LastName.xlsx]Sheet'!$K$5:$K$22)
I have a cell with the resource name and I would like to plug in the name
from that cell for “FirstName_LastName†but I can’t seem to get that to work.
Any thoughts?