LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
Paulo
 
Posts: n/a
Default Variable Names in Formulas

Depending on the contents of two cells, I would like to include in a formula
a different variable name (already defined). The problem is, I would like to
concatenate a given text together with the contents of those 2 cells to form
the name of a specific variable. I have looked for a function which could do
the trick (I mean, converting a string to a variable name), but apparently
there is not one.

Example: =Sum("Variable"&Q1&Q2)

If Q1 = "A" and Q2 = "5", the formula should hipothetically return the sum
of the cells referred by the variable named VariableA5. Unfortunately, it
shows a VALUE error.

Thanks in advance
 
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
Shortcut for referring to tab names in formulas Stilla Excel Worksheet Functions 5 December 6th 05 08:08 PM
Replace variable row number in formulas Ldub Excel Discussion (Misc queries) 0 November 3rd 05 10:25 PM
Combining workbooks with some variable field names Bob Dobalina Excel Discussion (Misc queries) 8 May 17th 05 09:48 PM
Locking Sheet names in formulas O'C Excel Worksheet Functions 2 December 16th 04 06:31 PM
Relative addressing using names or labels in formulas? Tony Excel Worksheet Functions 1 November 21st 04 09:49 PM


All times are GMT +1. The time now is 03:02 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"