Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Farrel
 
Posts: n/a
Default Change row selection

I want to chage the row selection on a function by using a cell reference
"A(B2)"
so when I change "B2" to 5
the function will read "A5"
TXS
  #2   Report Post  
KL
 
Posts: n/a
Default

Hi Farrel,

try this:

=INDIRECT("A"&B2)

Regards,
KL

"Farrel" wrote in message
...
I want to chage the row selection on a function by using a cell reference
"A(B2)"
so when I change "B2" to 5
the function will read "A5"
TXS



  #3   Report Post  
David Jessop
 
Posts: n/a
Default

Hi,

Try =INDIRECT("A"&B2) which gives you the value in the cell A5. I think
that's what you mean.

HTH

David

"Farrel" wrote:

I want to chage the row selection on a function by using a cell reference
"A(B2)"
so when I change "B2" to 5
the function will read "A5"
TXS

  #4   Report Post  
Farrel
 
Posts: n/a
Default

Hey txs for the Help
but why =SUBTOTAL(1,Sheet2!C3:Sheet2!(INDIRECT("c"&Sheet2! B1)))
doest work?

"KL" wrote:

Hi Farrel,

try this:

=INDIRECT("A"&B2)

Regards,
KL

"Farrel" wrote in message
...
I want to chage the row selection on a function by using a cell reference
"A(B2)"
so when I change "B2" to 5
the function will read "A5"
TXS




  #5   Report Post  
KL
 
Posts: n/a
Default

this should work:

=SUBTOTAL(1,INDIRECT("Sheet2!C3:C"&Sheet2!B1))

KL


"Farrel" wrote in message
...
Hey txs for the Help
but why =SUBTOTAL(1,Sheet2!C3:Sheet2!(INDIRECT("c"&Sheet2! B1)))
doest work?

"KL" wrote:

Hi Farrel,

try this:

=INDIRECT("A"&B2)

Regards,
KL

"Farrel" wrote in message
...
I want to chage the row selection on a function by using a cell
reference
"A(B2)"
so when I change "B2" to 5
the function will read "A5"
TXS








  #6   Report Post  
KL
 
Posts: n/a
Default

....or
=SUBTOTAL(1,INDIRECT("Sheet2!"&CELL("address",C3)& ":C"&Sheet2!B1))




"KL" wrote in message
...
this should work:

=SUBTOTAL(1,INDIRECT("Sheet2!C3:C"&Sheet2!B1))

KL


"Farrel" wrote in message
...
Hey txs for the Help
but why =SUBTOTAL(1,Sheet2!C3:Sheet2!(INDIRECT("c"&Sheet2! B1)))
doest work?

"KL" wrote:

Hi Farrel,

try this:

=INDIRECT("A"&B2)

Regards,
KL

"Farrel" wrote in message
...
I want to chage the row selection on a function by using a cell
reference
"A(B2)"
so when I change "B2" to 5
the function will read "A5"
TXS







  #7   Report Post  
Farrel
 
Posts: n/a
Default

Damn! you're good !!!
TXS

"KL" wrote:

this should work:

=SUBTOTAL(1,INDIRECT("Sheet2!C3:C"&Sheet2!B1))

KL


"Farrel" wrote in message
...
Hey txs for the Help
but why =SUBTOTAL(1,Sheet2!C3:Sheet2!(INDIRECT("c"&Sheet2! B1)))
doest work?

"KL" wrote:

Hi Farrel,

try this:

=INDIRECT("A"&B2)

Regards,
KL

"Farrel" wrote in message
...
I want to chage the row selection on a function by using a cell
reference
"A(B2)"
so when I change "B2" to 5
the function will read "A5"
TXS






  #8   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

Can be set up in a less expensive way:

=SUBTOTAL(1,Sheet2!$C$3:INDEX(Sheet2!$C:$C,B1))

KL wrote:
...or
=SUBTOTAL(1,INDIRECT("Sheet2!"&CELL("address",C3)& ":C"&Sheet2!B1))




"KL" wrote in message
...

this should work:

=SUBTOTAL(1,INDIRECT("Sheet2!C3:C"&Sheet2!B1))

KL


"Farrel" wrote in message
...

Hey txs for the Help
but why =SUBTOTAL(1,Sheet2!C3:Sheet2!(INDIRECT("c"&Sheet2! B1)))
doest work?

"KL" wrote:


Hi Farrel,

try this:

=INDIRECT("A"&B2)

Regards,
KL

"Farrel" wrote in message
...

I want to chage the row selection on a function by using a cell
reference
"A(B2)"
so when I change "B2" to 5
the function will read "A5"
TXS







--

[1] The SumProduct function should implicitly coerce the truth values to
their Excel numeric equivalents.
[2] The lookup functions should have an optional argument for the return
value, defaulting to #N/A in its absence.
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 Change Color - Need Help alani New Users to Excel 3 June 29th 05 03:50 PM
Running code on a drop down selection change Steve Haack Excel Worksheet Functions 1 April 26th 05 05:03 AM
excel change default column sort to current selection john palmer Excel Worksheet Functions 2 March 8th 05 03:07 PM
Change cell back color on click Dave Peterson Excel Discussion (Misc queries) 0 January 24th 05 10:50 PM
In Excel 2000, can I change the direction of the move selection a. GTP Excel Discussion (Misc queries) 2 January 7th 05 01:20 AM


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