Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Changing Row Referencing

Hi There,

I wonder if anybody knows how to change a row reference
dynamically within an argument string...

I have the following example of a row array lookup from
one sheet to another looking at column values that I want
to make dynamic so it can apply to ANY row in a
worksheet...

Main sheet is called "Working", and the lookup sheet is
called "Worksheet A"

eg.
MATCH(1, 'Worksheet A'!42:42, 0)

I want to reference the row dynamically, ie. get rid of
the 42:42 row reference and replace with a generic column
lookup based on changing row which will be consecutive in
sequence (they look at a pivot table).

eg.
MATCH(1, 'Worksheet A'!XX:XX, 0)

Where I can change the "XX:XX" dynamically, with each
iteration of the lookup (I will be incrementing and
changing the reference, ie. 42:42, then 43:43, then 81:81,
then 82:82, then 83:83, etc...

I know this sounds tricky, but I wonder if anyone can help.

Thanks in advance.

Andrew
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Changing Row Referencing

This is a worksheet formula?

=MATCH(1, Indirect("'Worksheet A'!" & B9 & ":" & B9), 0)

Where B9 is a cell containing the number 42 or the number 83.

--
Regards,
Tom Ogilvy

"Andrew Scurrah" wrote in message
...
Hi There,

I wonder if anybody knows how to change a row reference
dynamically within an argument string...

I have the following example of a row array lookup from
one sheet to another looking at column values that I want
to make dynamic so it can apply to ANY row in a
worksheet...

Main sheet is called "Working", and the lookup sheet is
called "Worksheet A"

eg.
MATCH(1, 'Worksheet A'!42:42, 0)

I want to reference the row dynamically, ie. get rid of
the 42:42 row reference and replace with a generic column
lookup based on changing row which will be consecutive in
sequence (they look at a pivot table).

eg.
MATCH(1, 'Worksheet A'!XX:XX, 0)

Where I can change the "XX:XX" dynamically, with each
iteration of the lookup (I will be incrementing and
changing the reference, ie. 42:42, then 43:43, then 81:81,
then 82:82, then 83:83, etc...

I know this sounds tricky, but I wonder if anyone can help.

Thanks in advance.

Andrew



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Changing Row Referencing

Thanks...that totally works !!!

Andrew
-----Original Message-----
This is a worksheet formula?

=MATCH(1, Indirect("'Worksheet A'!" & B9 & ":" & B9), 0)

Where B9 is a cell containing the number 42 or the number

83.

--
Regards,
Tom Ogilvy

"Andrew Scurrah" wrote in

message
...
Hi There,

I wonder if anybody knows how to change a row reference
dynamically within an argument string...

I have the following example of a row array lookup from
one sheet to another looking at column values that I

want
to make dynamic so it can apply to ANY row in a
worksheet...

Main sheet is called "Working", and the lookup sheet is
called "Worksheet A"

eg.
MATCH(1, 'Worksheet A'!42:42, 0)

I want to reference the row dynamically, ie. get rid of
the 42:42 row reference and replace with a generic

column
lookup based on changing row which will be consecutive

in
sequence (they look at a pivot table).

eg.
MATCH(1, 'Worksheet A'!XX:XX, 0)

Where I can change the "XX:XX" dynamically, with each
iteration of the lookup (I will be incrementing and
changing the reference, ie. 42:42, then 43:43, then

81:81,
then 82:82, then 83:83, etc...

I know this sounds tricky, but I wonder if anyone can

help.

Thanks in advance.

Andrew



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Changing Row Referencing

Sorry...email address was wrong...

please send replies to "
-----Original Message-----
Hi There,

I wonder if anybody knows how to change a row reference
dynamically within an argument string...

I have the following example of a row array lookup from
one sheet to another looking at column values that I want
to make dynamic so it can apply to ANY row in a
worksheet...

Main sheet is called "Working", and the lookup sheet is
called "Worksheet A"

eg.
MATCH(1, 'Worksheet A'!42:42, 0)

I want to reference the row dynamically, ie. get rid of
the 42:42 row reference and replace with a generic column
lookup based on changing row which will be consecutive in
sequence (they look at a pivot table).

eg.
MATCH(1, 'Worksheet A'!XX:XX, 0)

Where I can change the "XX:XX" dynamically, with each
iteration of the lookup (I will be incrementing and
changing the reference, ie. 42:42, then 43:43, then

81:81,
then 82:82, then 83:83, etc...

I know this sounds tricky, but I wonder if anyone can

help.

Thanks in advance.

Andrew
.

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
Changing the range for averages with out changing the formula. JessLRC Excel Worksheet Functions 0 April 20th 10 03:10 PM
Formula referencing a changing range?? Stacie2410 Excel Worksheet Functions 3 April 14th 10 10:55 PM
Changing background colour when changing data in a cell Paoul Excel Discussion (Misc queries) 7 December 26th 08 07:25 AM
Changing footers on all worksheets without changing print set up KC Excel Discussion (Misc queries) 1 October 26th 07 03:31 PM
referencing a different tab by referencing a list in the current s Kevin Excel Worksheet Functions 3 July 6th 07 07:57 PM


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