Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default Reference a cell for a formula

Is there a way to have a formula that references a cell as part of the
formula. For example, I have the following formula in many cells...

'G:\B\BUDGET\2008 Variance\Jul08\[Jul Variances.xls]010 New York'!
$L32/1000. Is there a way to have the word "Jul" in a cell (A2) and
have +A2 as part of the formula. This is so that each month, I just
change A2 to the next month and all of my formulas change easily.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Reference a cell for a formula

hi
you could use a concatinator. at the end of you formula add this...

&A2

if you want a space between the number and july add this...
& " " & A2

or an edited verson of your formula.....

'G:\B\BUD\\J\[Jul V.xls]010 New York'! $L32/1000 & " " & A2

regards
FSt1

"snax500" wrote:

Is there a way to have a formula that references a cell as part of the
formula. For example, I have the following formula in many cells...

'G:\B\BUDGET\2008 Variance\Jul08\[Jul Variances.xls]010 New York'!
$L32/1000. Is there a way to have the word "Jul" in a cell (A2) and
have +A2 as part of the formula. This is so that each month, I just
change A2 to the next month and all of my formulas change easily.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Reference a cell for a formula

Not clear which 'Jul' or both. These should give you an idea

=INDIRECT("'G:\B\BUDGET\2008 Variance\Jul08\[" & A2 & "Variances.xls]010 New
York'!$L32/1000")

=INDIRECT("'G:\B\BUDGET\2008 Variance\" " A2 &"08\[" & A2 &
"Variances.xls]010 New York'!$L32/1000")

That is =INDIRECT( doublke-quote single-quote .....
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"snax500" wrote in message
...
Is there a way to have a formula that references a cell as part of the
formula. For example, I have the following formula in many cells...

'G:\B\BUDGET\2008 Variance\Jul08\[Jul Variances.xls]010 New York'!
$L32/1000. Is there a way to have the word "Jul" in a cell (A2) and
have +A2 as part of the formula. This is so that each month, I just
change A2 to the next month and all of my formulas change easily.

Thanks



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default Reference a cell for a formula

I think Bernard entered a " instead of an &...
also a space before Variances.xls

Second formula should be
=INDIRECT("'G:\B\BUDGET\2008 Variance\" & A2 &"08\[" & A2 &
" Variances.xls]010 New York'!$L32/1000")


"Bernard Liengme" wrote:

Not clear which 'Jul' or both. These should give you an idea

=INDIRECT("'G:\B\BUDGET\2008 Variance\Jul08\[" & A2 & "Variances.xls]010 New
York'!$L32/1000")

=INDIRECT("'G:\B\BUDGET\2008 Variance\" " A2 &"08\[" & A2 &
"Variances.xls]010 New York'!$L32/1000")

That is =INDIRECT( doublke-quote single-quote .....
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"snax500" wrote in message
...
Is there a way to have a formula that references a cell as part of the
formula. For example, I have the following formula in many cells...

'G:\B\BUDGET\2008 Variance\Jul08\[Jul Variances.xls]010 New York'!
$L32/1000. Is there a way to have the word "Jul" in a cell (A2) and
have +A2 as part of the formula. This is so that each month, I just
change A2 to the next month and all of my formulas change easily.

Thanks




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
format a cell with a formula so an empty reference cell shows blan M2 Excel Discussion (Misc queries) 3 November 7th 06 10:42 PM
Using a cell reference within a cell reference in a formula david Excel Worksheet Functions 2 July 1st 06 01:05 PM
How do I leave formula cell blank if 2nd reference cell is empty? Liana S Excel Discussion (Misc queries) 2 October 21st 05 04:38 PM
Cell Formula reference to cell Based On third Cell Content Gabriel Excel Discussion (Misc queries) 1 February 11th 05 06:36 AM
Cell Formula reference to cell Based On third Cell Content Gabriel Excel Discussion (Misc queries) 0 February 11th 05 05:35 AM


All times are GMT +1. The time now is 01:34 PM.

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

About Us

"It's about Microsoft Excel"