Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 109
Default Error in cell function

I am trying to use the cell function to create a dynamic hyper link to
several sheets.
i can use: =HYPERLINK("#"&CELL("address",'Mall1 1-7'!A3),A2)
but i need to do a whole bunch and the sheet names change frequently so i
try:
=HYPERLINK("#"&CELL("address","'"&Intro!A3&" 1-7'"!A3),A2)
I keep getting error messeges.

Help
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 78
Default Error in cell function

Hi,

The following are my observations.
1. You shoud leave a space before and after & to concatenate two strings
2. You have not specified the exact error message !!

"Jared" wrote:

I am trying to use the cell function to create a dynamic hyper link to
several sheets.
i can use: =HYPERLINK("#"&CELL("address",'Mall1 1-7'!A3),A2)
but i need to do a whole bunch and the sheet names change frequently so i
try:
=HYPERLINK("#"&CELL("address","'"&Intro!A3&" 1-7'"!A3),A2)
I keep getting error messeges.

Help

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 109
Default Error in cell function

The error is that excel is not accepting the formula. I have tried adding the
spaces like you suggested. No success. It seems as if i cannot put a cell
reference in a formula which will represent a sheets name

"Madhan" wrote:

Hi,

The following are my observations.
1. You shoud leave a space before and after & to concatenate two strings
2. You have not specified the exact error message !!

"Jared" wrote:

I am trying to use the cell function to create a dynamic hyper link to
several sheets.
i can use: =HYPERLINK("#"&CELL("address",'Mall1 1-7'!A3),A2)
but i need to do a whole bunch and the sheet names change frequently so i
try:
=HYPERLINK("#"&CELL("address","'"&Intro!A3&" 1-7'"!A3),A2)
I keep getting error messeges.

Help

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Error in cell function

Try wrapping that range in =indirect().

=HYPERLINK("#"&CELL("address","'"&Intro!A3&" 1-7'"!A3),A2)
becomes
=HYPERLINK("#"&CELL("address",indirect("'"&Intro!A 3&" 1-7'"!A3")),A2)

You're really trying to grab the worksheet name from Intro!A3?

If this doesn't work, describe what's in each of those cells and where you want
the link to point.

Jared wrote:

I am trying to use the cell function to create a dynamic hyper link to
several sheets.
i can use: =HYPERLINK("#"&CELL("address",'Mall1 1-7'!A3),A2)
but i need to do a whole bunch and the sheet names change frequently so i
try:
=HYPERLINK("#"&CELL("address","'"&Intro!A3&" 1-7'"!A3),A2)
I keep getting error messeges.

Help


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 109
Default Error in cell function

That is the solution, but the formula actually is:
=HYPERLINK("#"&CELL("address",INDIRECT("'"&Intro!A 3&" 1-7'!A3")),A2)
without the quotation marks after the 7

Thanks

Yes exactly. I've been trying to grab the sheet's name from that cell.
maybe you can explain why the regular reference wouldn't work and i would
need the indirect function.

"Dave Peterson" wrote:

Try wrapping that range in =indirect().

=HYPERLINK("#"&CELL("address","'"&Intro!A3&" 1-7'"!A3),A2)
becomes
=HYPERLINK("#"&CELL("address",indirect("'"&Intro!A 3&" 1-7'"!A3")),A2)

You're really trying to grab the worksheet name from Intro!A3?

If this doesn't work, describe what's in each of those cells and where you want
the link to point.

Jared wrote:

I am trying to use the cell function to create a dynamic hyper link to
several sheets.
i can use: =HYPERLINK("#"&CELL("address",'Mall1 1-7'!A3),A2)
but i need to do a whole bunch and the sheet names change frequently so i
try:
=HYPERLINK("#"&CELL("address","'"&Intro!A3&" 1-7'"!A3),A2)
I keep getting error messeges.

Help


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Error in cell function

Glad you got it working. (I didn't test it and missed that set of " marks.

=cell() expects a range as that second argument.

The first version you tried used a string--not a range.

Kind of the difference between:
=A1
and
="A1"
the first returns the value in A1. The second just returns the string "A1".

Wrapping a string inside of =indirect() makes excel return the reference (or
range).


Jared wrote:

That is the solution, but the formula actually is:
=HYPERLINK("#"&CELL("address",INDIRECT("'"&Intro!A 3&" 1-7'!A3")),A2)
without the quotation marks after the 7

Thanks

Yes exactly. I've been trying to grab the sheet's name from that cell.
maybe you can explain why the regular reference wouldn't work and i would
need the indirect function.

"Dave Peterson" wrote:

Try wrapping that range in =indirect().

=HYPERLINK("#"&CELL("address","'"&Intro!A3&" 1-7'"!A3),A2)
becomes
=HYPERLINK("#"&CELL("address",indirect("'"&Intro!A 3&" 1-7'"!A3")),A2)

You're really trying to grab the worksheet name from Intro!A3?

If this doesn't work, describe what's in each of those cells and where you want
the link to point.

Jared wrote:

I am trying to use the cell function to create a dynamic hyper link to
several sheets.
i can use: =HYPERLINK("#"&CELL("address",'Mall1 1-7'!A3),A2)
but i need to do a whole bunch and the sheet names change frequently so i
try:
=HYPERLINK("#"&CELL("address","'"&Intro!A3&" 1-7'"!A3),A2)
I keep getting error messeges.

Help


--

Dave Peterson


--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 109
Default Error in cell function

Now i see. That makes sense.

Thanks for your help.


"Dave Peterson" wrote:

Glad you got it working. (I didn't test it and missed that set of " marks.

=cell() expects a range as that second argument.

The first version you tried used a string--not a range.

Kind of the difference between:
=A1
and
="A1"
the first returns the value in A1. The second just returns the string "A1".

Wrapping a string inside of =indirect() makes excel return the reference (or
range).


Jared wrote:

That is the solution, but the formula actually is:
=HYPERLINK("#"&CELL("address",INDIRECT("'"&Intro!A 3&" 1-7'!A3")),A2)
without the quotation marks after the 7

Thanks

Yes exactly. I've been trying to grab the sheet's name from that cell.
maybe you can explain why the regular reference wouldn't work and i would
need the indirect function.

"Dave Peterson" wrote:

Try wrapping that range in =indirect().

=HYPERLINK("#"&CELL("address","'"&Intro!A3&" 1-7'"!A3),A2)
becomes
=HYPERLINK("#"&CELL("address",indirect("'"&Intro!A 3&" 1-7'"!A3")),A2)

You're really trying to grab the worksheet name from Intro!A3?

If this doesn't work, describe what's in each of those cells and where you want
the link to point.

Jared wrote:

I am trying to use the cell function to create a dynamic hyper link to
several sheets.
i can use: =HYPERLINK("#"&CELL("address",'Mall1 1-7'!A3),A2)
but i need to do a whole bunch and the sheet names change frequently so i
try:
=HYPERLINK("#"&CELL("address","'"&Intro!A3&" 1-7'"!A3),A2)
I keep getting error messeges.

Help

--

Dave Peterson


--

Dave Peterson

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
CELL Function: cell reference by formula Alex C Excel Worksheet Functions 1 June 19th 06 03:30 PM
numerical integration integreat Excel Discussion (Misc queries) 4 May 12th 06 02:40 AM
Can function in one cell change value or function in another cell? me Excel Worksheet Functions 4 February 27th 06 01:04 PM
Function that Returns address of that cell? RayWolfDog Excel Worksheet Functions 2 February 15th 06 04:54 PM
Reading Cell Function??? roy.okinawa Excel Worksheet Functions 2 December 1st 05 11:29 PM


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