Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Stuart Peters
 
Posts: n/a
Default Is it possible to change a Sheet reference in a formula?

I have the following reference to another sheet:
='[CSTS 38878 432.xls]TIME REPORT'!$U7

The Date serial number and the following three digit number will change and
are values on my sheet. What I would like to do is something like this:
="'[CSTS " & Q1 & " " & S2 & ".xls]TIME REPORT"& "'!$U7"
Where the value of Q1 is 38878 and S2 is 432

Date Serial number (38878) changes week to week, the three digit number
changes from individual employees.

Can this be done, or am I wasting my time?

Thanks In Advance,

Stuart
  #2   Report Post  
Posted to microsoft.public.excel.misc
Elkar
 
Posts: n/a
Default Is it possible to change a Sheet reference in a formula?

This can be done with the INDIRECT function, however both workbooks will need
to be open for it to work.

=INDIRECT("'[CSTS "&$Q$1&" "&$S$2&".xls]TIME REPORT'!$U7")

Note that if copied, the $U7 portion of the formula will not increment. But
if needed, this can be accomplished with use of the ROW() funciton.

Otherwise, you'll need to look into a VB solution.

HTH,
Elkar


"Stuart Peters" wrote:

I have the following reference to another sheet:
='[CSTS 38878 432.xls]TIME REPORT'!$U7

The Date serial number and the following three digit number will change and
are values on my sheet. What I would like to do is something like this:
="'[CSTS " & Q1 & " " & S2 & ".xls]TIME REPORT"& "'!$U7"
Where the value of Q1 is 38878 and S2 is 432

Date Serial number (38878) changes week to week, the three digit number
changes from individual employees.

Can this be done, or am I wasting my time?

Thanks In Advance,

Stuart

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copy a relative reference formula from one sheet to another. jannkatt Excel Discussion (Misc queries) 3 May 17th 06 07:13 PM
Change scales from reference cells value for a chart in a separate sheet ers Charts and Charting in Excel 4 April 2nd 06 07:00 PM
Change sheet reference in new workbook [email protected] Excel Discussion (Misc queries) 2 January 26th 06 04:44 PM
Change sheet name in formula kojimm Excel Worksheet Functions 4 July 15th 05 11:43 PM
Does excel recognise names rather than cells? Sue Excel Worksheet Functions 9 May 22nd 05 04:51 AM


All times are GMT +1. The time now is 09:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"