Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,814
Default cell formula references

I have the following formula and it works great:
=INDEX(sheet1!A3:C13,MATCH("bob",sheet1!C3:C13,0), 0)

Is is possible to change the static reference "A3:C13" to be dynamic? The
row reference of this formula needs to change dynamically based on the
results of another cell. I.e. it can change to A23:C47 or A99:C122 etc. I.e.
=INDEX(sheet1!A23:C47,MATCH("bob",sheet1!C23:C47,0 ),0)

The 23 and 47 values are found in sheet2, cells A17 and A18 respectively.

I've tried to name the A17 (and A18) cells on sheet2 "NameOne" (and
"NameTwo") and use it in the formula. I.e.
=INDEX(sheet1!ANameOne:CNameTwo,MATCH("bob",sheet1 !CNameOne:CNameTwo,0),0)

No such luck no matter what syntax I try. Can this be done?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 468
Default cell formula references

Watch word wrap on this single formula:

=INDEX(INDIRECT("A"&Sheet2!A17&":A"&Sheet2!A18),MA TCH("bob",INDIRECT("A"&Sheet2!A17&":A"&Sheet2!A18) ,0),0)

Report back,,



"steve" wrote:

I have the following formula and it works great:
=INDEX(sheet1!A3:C13,MATCH("bob",sheet1!C3:C13,0), 0)

Is is possible to change the static reference "A3:C13" to be dynamic? The
row reference of this formula needs to change dynamically based on the
results of another cell. I.e. it can change to A23:C47 or A99:C122 etc. I.e.
=INDEX(sheet1!A23:C47,MATCH("bob",sheet1!C23:C47,0 ),0)

The 23 and 47 values are found in sheet2, cells A17 and A18 respectively.

I've tried to name the A17 (and A18) cells on sheet2 "NameOne" (and
"NameTwo") and use it in the formula. I.e.
=INDEX(sheet1!ANameOne:CNameTwo,MATCH("bob",sheet1 !CNameOne:CNameTwo,0),0)

No such luck no matter what syntax I try. Can this be done?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,814
Default cell formula references

Thanks for the response JMay, and I apologize for the delayed response. I
ended up naming the ranges instead of the cells and got it working. I'll keep
your solution around in case I run into a similar situation. Thanks again.

"JMay" wrote:

Watch word wrap on this single formula:

=INDEX(INDIRECT("A"&Sheet2!A17&":A"&Sheet2!A18),MA TCH("bob",INDIRECT("A"&Sheet2!A17&":A"&Sheet2!A18) ,0),0)

Report back,,



"steve" wrote:

I have the following formula and it works great:
=INDEX(sheet1!A3:C13,MATCH("bob",sheet1!C3:C13,0), 0)

Is is possible to change the static reference "A3:C13" to be dynamic? The
row reference of this formula needs to change dynamically based on the
results of another cell. I.e. it can change to A23:C47 or A99:C122 etc. I.e.
=INDEX(sheet1!A23:C47,MATCH("bob",sheet1!C23:C47,0 ),0)

The 23 and 47 values are found in sheet2, cells A17 and A18 respectively.

I've tried to name the A17 (and A18) cells on sheet2 "NameOne" (and
"NameTwo") and use it in the formula. I.e.
=INDEX(sheet1!ANameOne:CNameTwo,MATCH("bob",sheet1 !CNameOne:CNameTwo,0),0)

No such luck no matter what syntax I try. Can this be done?

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
copy formula down a column and have cell references change within formula brad New Users to Excel 5 May 13th 07 04:38 PM
locking formula cell references Superchikn Excel Worksheet Functions 3 March 16th 06 07:32 PM
how to use cell contents as references in a formula hussam81 Excel Worksheet Functions 1 February 28th 06 06:59 PM
how do i copy a formula when cell references r not together jon104 New Users to Excel 1 January 9th 06 03:25 PM
Using cell references as text in a formula David V Excel Worksheet Functions 1 July 21st 05 07:50 PM


All times are GMT +1. The time now is 11:55 AM.

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"