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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Inserting contents of cell as text into formula using cell referen



 
 
Thread Tools Display Modes
  #1  
Old June 20th, 2004, 07:05 PM
AdCook
external usenet poster
 
Posts: n/a
Default Inserting contents of cell as text into formula using cell referen

I have a spreadsheet for my staff where they log their time against every job they do. Each member of staff has their own work sheet where they enter this data. I am trying to create a summary sheet where I can enter the name of the member of staff (which equates to the worksheet name) to show me how much time they are spending on each job I have on my books. I want to be able to type the name of a person (or worksheet name) into a cell and the various functions in my summary sheet use that text string in that cell as the worksheet reference in the formulas I have entered.

for example one formula I have is:

=SUMIF(JoeBloggs!$F$17:$F$66,JoeBloggs!$A10,JoeBlo ggs!$L$17:$L$66)

But I want to put "JoeBloggs" or any other name in say cell A1 and have the formula update the worksheet reference to reflect the contents of A1.

Am I on the right tracks or is there a simpler way to obtain the same results.

Cheers

AdCook
  #2  
Old June 20th, 2004, 08:59 PM
Bob Phillips
external usenet poster
 
Posts: n/a
Default Inserting contents of cell as text into formula using cell referen

Try

=SUMIF(INDIRECT(A1&"!$F$17:$F$66"),INDIRECT(A1&"!$ A10"),INDIRECT(A1&"!$L$17:
$L$66"))


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"AdCook" wrote in message
...
I have a spreadsheet for my staff where they log their time against every

job they do. Each member of staff has their own work sheet where they enter
this data. I am trying to create a summary sheet where I can enter the name
of the member of staff (which equates to the worksheet name) to show me how
much time they are spending on each job I have on my books. I want to be
able to type the name of a person (or worksheet name) into a cell and the
various functions in my summary sheet use that text string in that cell as
the worksheet reference in the formulas I have entered.

for example one formula I have is:

=SUMIF(JoeBloggs!$F$17:$F$66,JoeBloggs!$A10,JoeBlo ggs!$L$17:$L$66)

But I want to put "JoeBloggs" or any other name in say cell A1 and have

the formula update the worksheet reference to reflect the contents of A1.

Am I on the right tracks or is there a simpler way to obtain the same

results.

Cheers

AdCook



  #3  
Old June 20th, 2004, 11:28 PM
AdCook
external usenet poster
 
Posts: n/a
Default Inserting contents of cell as text into formula using cell ref

Thanks Bob that did the job!

"Bob Phillips" wrote:

Try

=SUMIF(INDIRECT(A1&"!$F$17:$F$66"),INDIRECT(A1&"!$ A10"),INDIRECT(A1&"!$L$17:
$L$66"))


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"AdCook" wrote in message
...
I have a spreadsheet for my staff where they log their time against every

job they do. Each member of staff has their own work sheet where they enter
this data. I am trying to create a summary sheet where I can enter the name
of the member of staff (which equates to the worksheet name) to show me how
much time they are spending on each job I have on my books. I want to be
able to type the name of a person (or worksheet name) into a cell and the
various functions in my summary sheet use that text string in that cell as
the worksheet reference in the formulas I have entered.

for example one formula I have is:

=SUMIF(JoeBloggs!$F$17:$F$66,JoeBloggs!$A10,JoeBlo ggs!$L$17:$L$66)

But I want to put "JoeBloggs" or any other name in say cell A1 and have

the formula update the worksheet reference to reflect the contents of A1.

Am I on the right tracks or is there a simpler way to obtain the same

results.

Cheers

AdCook




  #4  
Old June 20th, 2004, 11:29 PM
AdCook
external usenet poster
 
Posts: n/a
Default Inserting contents of cell as text into formula using cell ref

Thanks Bob that did the job!

"Bob Phillips" wrote:

Try

=SUMIF(INDIRECT(A1&"!$F$17:$F$66"),INDIRECT(A1&"!$ A10"),INDIRECT(A1&"!$L$17:
$L$66"))


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"AdCook" wrote in message
...
I have a spreadsheet for my staff where they log their time against every

job they do. Each member of staff has their own work sheet where they enter
this data. I am trying to create a summary sheet where I can enter the name
of the member of staff (which equates to the worksheet name) to show me how
much time they are spending on each job I have on my books. I want to be
able to type the name of a person (or worksheet name) into a cell and the
various functions in my summary sheet use that text string in that cell as
the worksheet reference in the formulas I have entered.

for example one formula I have is:

=SUMIF(JoeBloggs!$F$17:$F$66,JoeBloggs!$A10,JoeBlo ggs!$L$17:$L$66)

But I want to put "JoeBloggs" or any other name in say cell A1 and have

the formula update the worksheet reference to reflect the contents of A1.

Am I on the right tracks or is there a simpler way to obtain the same

results.

Cheers

AdCook




 




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 10:23 AM.


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