Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 170
Default Embedding formula in a formula

What is maximum character length of a formula in Excel 2000?

I have the following formula, which properly returns a file name and range:
="'C:\Documents and Settings\jhester\Desktop\Testing for
clarissa\[sample"&RIGHT(0&DAY(C2),2)&CHOOSE(MONTH(C2),
"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","S ep","Oct","Nov","Dec")&YEAR(C2)&".xls]Sheet1!$A$3:$E$14"

however, when I place this inside a Vlookup() function it returns that awful
VALUE# response.The character count is approximately 220, including spaces
and punctuation. Have I exceeded a length limit or am I missing soemthing
else?
Here is the formula that fails
=Vlookup(A3, "'C:\Documents and Settings\jhester\Desktop\Testing for
clarissa\[sample"&RIGHT(0&DAY(C2),2)&CHOOSE(MONTH(C2),
"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","S ep","Oct","Nov","Dec")&YEAR(C2)&".xls]Sheet1!$A$3:$E$14", 4)
Please note in the second example, that I simply added is the "Vlookup(A3,"
at the beginning and the" , 4)" at the end

Thanks for your assistance


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default Embedding formula in a formula

Formula limit in XL 2000 is 1,024 characters:
http://support.microsoft.com/default.aspx/kb/264626

What happens if you add the FALSE argument to the VLOOKUP?

Dave
--
A hint to posters: Specific, detailed questions are more likely to be
answered than questions that provide no detail about your problem.


"JR Hester" wrote:

What is maximum character length of a formula in Excel 2000?

I have the following formula, which properly returns a file name and range:
="'C:\Documents and Settings\jhester\Desktop\Testing for
clarissa\[sample"&RIGHT(0&DAY(C2),2)&CHOOSE(MONTH(C2),
"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","S ep","Oct","Nov","Dec")&YEAR(C2)&".xls]Sheet1!$A$3:$E$14"

however, when I place this inside a Vlookup() function it returns that awful
VALUE# response.The character count is approximately 220, including spaces
and punctuation. Have I exceeded a length limit or am I missing soemthing
else?
Here is the formula that fails
=Vlookup(A3, "'C:\Documents and Settings\jhester\Desktop\Testing for
clarissa\[sample"&RIGHT(0&DAY(C2),2)&CHOOSE(MONTH(C2),
"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","S ep","Oct","Nov","Dec")&YEAR(C2)&".xls]Sheet1!$A$3:$E$14", 4)
Please note in the second example, that I simply added is the "Vlookup(A3,"
at the beginning and the" , 4)" at the end

Thanks for your assistance


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 947
Default Embedding formula in a formula

RIGHT(0&DAY(C2),2)&CHOOSE(MONTH(C2),
"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","S ep","Oct","Nov","Dec")&YEAR(C2)

Hi. If I am not mistaken, the Date part of the code above may be written
like this...

=TEXT(C2,"ddmmmyyyy")

--
HTH :)
Dana DeLouis
Windows XP & Office 2007


"JR Hester" wrote in message
...
What is maximum character length of a formula in Excel 2000?

I have the following formula, which properly returns a file name and
range:
="'C:\Documents and Settings\jhester\Desktop\Testing for
clarissa\[sample"&RIGHT(0&DAY(C2),2)&CHOOSE(MONTH(C2),
"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","S ep","Oct","Nov","Dec")&YEAR(C2)&".xls]Sheet1!$A$3:$E$14"

however, when I place this inside a Vlookup() function it returns that
awful
VALUE# response.The character count is approximately 220, including spaces
and punctuation. Have I exceeded a length limit or am I missing soemthing
else?
Here is the formula that fails
=Vlookup(A3, "'C:\Documents and Settings\jhester\Desktop\Testing for
clarissa\[sample"&RIGHT(0&DAY(C2),2)&CHOOSE(MONTH(C2),
"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","S ep","Oct","Nov","Dec")&YEAR(C2)&".xls]Sheet1!$A$3:$E$14",
4)
Please note in the second example, that I simply added is the
"Vlookup(A3,"
at the beginning and the" , 4)" at the end

Thanks for your assistance




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 170
Default Embedding formula in a formula

Adding the FALSE argument made no difference in the results. Thanks for the
suggestion.

"Dave F" wrote:

Formula limit in XL 2000 is 1,024 characters:
http://support.microsoft.com/default.aspx/kb/264626

What happens if you add the FALSE argument to the VLOOKUP?

Dave
--
A hint to posters: Specific, detailed questions are more likely to be
answered than questions that provide no detail about your problem.


"JR Hester" wrote:

What is maximum character length of a formula in Excel 2000?

I have the following formula, which properly returns a file name and range:
="'C:\Documents and Settings\jhester\Desktop\Testing for
clarissa\[sample"&RIGHT(0&DAY(C2),2)&CHOOSE(MONTH(C2),
"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","S ep","Oct","Nov","Dec")&YEAR(C2)&".xls]Sheet1!$A$3:$E$14"

however, when I place this inside a Vlookup() function it returns that awful
VALUE# response.The character count is approximately 220, including spaces
and punctuation. Have I exceeded a length limit or am I missing soemthing
else?
Here is the formula that fails
=Vlookup(A3, "'C:\Documents and Settings\jhester\Desktop\Testing for
clarissa\[sample"&RIGHT(0&DAY(C2),2)&CHOOSE(MONTH(C2),
"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","S ep","Oct","Nov","Dec")&YEAR(C2)&".xls]Sheet1!$A$3:$E$14", 4)
Please note in the second example, that I simply added is the "Vlookup(A3,"
at the beginning and the" , 4)" at the end

Thanks for your assistance


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,718
Default Embedding formula in a formula

I don't believe what you're trying to do will fly. The second argument of
VLOOKUP requires a _range reference_. You are providing a string that looks
like a range reference. It's much the same thing as entering ="A1" in a
cell and expecting it to evaluate like =A1. Excel does provide the INDIRECT
function which turns a string into a range reference, but that does not work
with closed workbooks. If the target workbook will be open then I think you
can do what you want. In that event the reference string would include the
file's name without a path.

--
Jim
"JR Hester" wrote in message
...
| What is maximum character length of a formula in Excel 2000?
|
| I have the following formula, which properly returns a file name and
range:
| ="'C:\Documents and Settings\jhester\Desktop\Testing for
| clarissa\[sample"&RIGHT(0&DAY(C2),2)&CHOOSE(MONTH(C2),
|
"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","S ep","Oct","Nov","Dec")&YEAR(C2)&".xls]Sheet1!$A$3:$E$14"
|
| however, when I place this inside a Vlookup() function it returns that
awful
| VALUE# response.The character count is approximately 220, including spaces
| and punctuation. Have I exceeded a length limit or am I missing soemthing
| else?
| Here is the formula that fails
| =Vlookup(A3, "'C:\Documents and Settings\jhester\Desktop\Testing for
| clarissa\[sample"&RIGHT(0&DAY(C2),2)&CHOOSE(MONTH(C2),
|
"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","S ep","Oct","Nov","Dec")&YEAR(C2)&".xls]Sheet1!$A$3:$E$14",
4)
| Please note in the second example, that I simply added is the
"Vlookup(A3,"
| at the beginning and the" , 4)" at the end
|
| Thanks for your assistance
|
|




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,574
Default Embedding formula in a formula

So what are you trying to do here? Your RIGHT-DAY-CHOOSE-MONTH-YEAR
combination can easily be replaced by the (more concise) =TEXT(C2,"ddmmmyyyy")

You need to use INDIRECT here, but that function doesn't work on closed
workbooks.

Dave
--
A hint to posters: Specific, detailed questions are more likely to be
answered than questions that provide no detail about your problem.


"JR Hester" wrote:

Adding the FALSE argument made no difference in the results. Thanks for the
suggestion.

"Dave F" wrote:

Formula limit in XL 2000 is 1,024 characters:
http://support.microsoft.com/default.aspx/kb/264626

What happens if you add the FALSE argument to the VLOOKUP?

Dave
--
A hint to posters: Specific, detailed questions are more likely to be
answered than questions that provide no detail about your problem.


"JR Hester" wrote:

What is maximum character length of a formula in Excel 2000?

I have the following formula, which properly returns a file name and range:
="'C:\Documents and Settings\jhester\Desktop\Testing for
clarissa\[sample"&RIGHT(0&DAY(C2),2)&CHOOSE(MONTH(C2),
"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","S ep","Oct","Nov","Dec")&YEAR(C2)&".xls]Sheet1!$A$3:$E$14"

however, when I place this inside a Vlookup() function it returns that awful
VALUE# response.The character count is approximately 220, including spaces
and punctuation. Have I exceeded a length limit or am I missing soemthing
else?
Here is the formula that fails
=Vlookup(A3, "'C:\Documents and Settings\jhester\Desktop\Testing for
clarissa\[sample"&RIGHT(0&DAY(C2),2)&CHOOSE(MONTH(C2),
"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","S ep","Oct","Nov","Dec")&YEAR(C2)&".xls]Sheet1!$A$3:$E$14", 4)
Please note in the second example, that I simply added is the "Vlookup(A3,"
at the beginning and the" , 4)" at the end

Thanks for your assistance


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 170
Default Embedding formula in a formula

Thanks for that suggestion. That does indeed redunce the length of the overal
formula.

Unfortunately I still get the same Value# error. This seems to be resulting
from inserting the filename generation routine inside the Vlookup() function.

"Dana DeLouis" wrote:

RIGHT(0&DAY(C2),2)&CHOOSE(MONTH(C2),

"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","S ep","Oct","Nov","Dec")&YEAR(C2)

Hi. If I am not mistaken, the Date part of the code above may be written
like this...

=TEXT(C2,"ddmmmyyyy")

--
HTH :)
Dana DeLouis
Windows XP & Office 2007


"JR Hester" wrote in message
...
What is maximum character length of a formula in Excel 2000?

I have the following formula, which properly returns a file name and
range:
="'C:\Documents and Settings\jhester\Desktop\Testing for
clarissa\[sample"&RIGHT(0&DAY(C2),2)&CHOOSE(MONTH(C2),
"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","S ep","Oct","Nov","Dec")&YEAR(C2)&".xls]Sheet1!$A$3:$E$14"

however, when I place this inside a Vlookup() function it returns that
awful
VALUE# response.The character count is approximately 220, including spaces
and punctuation. Have I exceeded a length limit or am I missing soemthing
else?
Here is the formula that fails
=Vlookup(A3, "'C:\Documents and Settings\jhester\Desktop\Testing for
clarissa\[sample"&RIGHT(0&DAY(C2),2)&CHOOSE(MONTH(C2),
"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","S ep","Oct","Nov","Dec")&YEAR(C2)&".xls]Sheet1!$A$3:$E$14",
4)
Please note in the second example, that I simply added is the
"Vlookup(A3,"
at the beginning and the" , 4)" at the end

Thanks for your assistance





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
Embedding Objects... Steven Sinclair Excel Discussion (Misc queries) 1 October 30th 06 09:18 PM
Embedding a macro within a formula rjhutch Excel Worksheet Functions 3 May 9th 06 01:29 AM
Help with embedding sheets Tom Weston Excel Discussion (Misc queries) 0 February 13th 06 10:02 AM
Embedding a Hyperlink cincode5 Excel Discussion (Misc queries) 2 January 24th 05 11:21 PM
embedding excel Alex Links and Linking in Excel 1 December 1st 04 08:01 AM


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