Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Using a cell reference within a cell reference in a formula

I believe it is possible to use a cell reference as one component of a
formula but I can't remember how. What I want the overall formula to do
is pick up the letter component from another cell reference - can
anyone help please?

Thanks

David

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 459
Default Using a cell reference within a cell reference in a formula

Nel post oups.com
*david* ha scritto:

I believe it is possible to use a cell reference as one component of a
formula but I can't remember how. What I want the overall formula to
do is pick up the letter component from another cell reference - can
anyone help please?

Thanks

David


Hi David,

You can use the INDIRECT function.

Try to check the on line guide, then If you should need any help, post your
formula here.

I'll show you an example:

=SUM(INDIRECT(A1&"2:"&A1&"100"))

so if in A1 there is B the above formula is equivalent to:

=SUM(B2:B100)


Be aware that if you use the INDIRECT function in connection with another
file, for example:

=SUM(INDIRECT([WB2]Sheet1!A1&"2:"&[WB2]Sheet1!A1&"100"))

also the second file should be open to have a result; if not, you will have
a #REF! error.

--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Using a cell reference within a cell reference in a formula

Thank you - I'll try it

David


Franz Verga wrote:
Nel post oups.com
*david* ha scritto:

I believe it is possible to use a cell reference as one component of a
formula but I can't remember how. What I want the overall formula to
do is pick up the letter component from another cell reference - can
anyone help please?

Thanks

David


Hi David,

You can use the INDIRECT function.

Try to check the on line guide, then If you should need any help, post your
formula here.

I'll show you an example:

=SUM(INDIRECT(A1&"2:"&A1&"100"))

so if in A1 there is B the above formula is equivalent to:

=SUM(B2:B100)


Be aware that if you use the INDIRECT function in connection with another
file, for example:

=SUM(INDIRECT([WB2]Sheet1!A1&"2:"&[WB2]Sheet1!A1&"100"))

also the second file should be open to have a result; if not, you will have
a #REF! error.

--
Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


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
Function/ formula to output a cell reference Creator Excel Worksheet Functions 19 February 17th 06 06:39 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
copied formula has correct cell reference, but result of original lvito Excel Worksheet Functions 1 October 14th 05 04:37 PM
Reference to One Cell stays the same in Different Formula ISMEGORDO Excel Discussion (Misc queries) 10 June 16th 05 11:13 PM
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 05:57 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"