Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 683
Default CONCATENATE text to create a formula to be evaluated

Hi,

I am wanting to concatenate a set of text to create a formula. I have done
so below.

=CONCATENATE("=MAX('",O1,"'!A3:A65536)")

The result is: =MAX('2009'!A3:A65536)
....but it treats this as a text string when I try to use INDIRECT

Cell O1 contains the year minus 1. In this case O1 = 2009. All of my
worksheets are named as a year e.g. 2007....2008....2009...2010. I am
entering this on sheet 2010.

Now the real question: How do I make another cell evaluate this string as an
actual formula and spit out the highest number for A3:A65536 from sheet 2009.

Thanks and Happy New Year!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,203
Default CONCATENATE text to create a formula to be evaluated

Brian,
Try rewriting it as
=MAX( INDIRECT(O1 & "!A3:A65536"))
or even more simply (as long as A1 & A2 on the sheets don't have numbers in
them
=MAX( INDIRECT(O1 & "!A:A"))


"Brian" wrote:

Hi,

I am wanting to concatenate a set of text to create a formula. I have done
so below.

=CONCATENATE("=MAX('",O1,"'!A3:A65536)")

The result is: =MAX('2009'!A3:A65536)
...but it treats this as a text string when I try to use INDIRECT

Cell O1 contains the year minus 1. In this case O1 = 2009. All of my
worksheets are named as a year e.g. 2007....2008....2009...2010. I am
entering this on sheet 2010.

Now the real question: How do I make another cell evaluate this string as an
actual formula and spit out the highest number for A3:A65536 from sheet 2009.

Thanks and Happy New Year!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 683
Default CONCATENATE text to create a formula to be evaluated

Thanks JLatham! Happy New Year!

"JLatham" wrote:

Brian,
Try rewriting it as =MAX( INDIRECT(O1 & "!A3:A65536"))


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
How to concatenate text into a formula? Wmm Excel Discussion (Misc queries) 5 August 12th 09 09:29 PM
Formula needed to concatenate text with result from calculation Mgville Excel Discussion (Misc queries) 1 February 13th 09 02:48 PM
Formula not evaluated automaticly in Office 2003 Hz-man Excel Worksheet Functions 2 January 30th 06 11:39 PM
how can i use concatenate to create a linking formula? DRandolph Excel Worksheet Functions 10 January 25th 06 07:27 PM
CONCATENATE text formula Lauren Excel Worksheet Functions 7 January 7th 06 10:24 PM


All times are GMT +1. The time now is 05:59 AM.

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"