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

I am looking for a way to use a list value from a data validation (cell D9)
to use as a value in =OFFSET(Merry!C6,COUNTA(Merry!C6:C364)-6,-1) So Merry
would be removed and the variable put in it's place. Each time I reference
the cell D9 I get a #VALUE! error.

Any help would be appriciated.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default sheet variable

maybe...

=OFFSET(indirect("'"&d9&"'!C6"),COUNTA(indirect("' "&d9&"!C6:C364"))-6,-1)



wagz wrote:

I am looking for a way to use a list value from a data validation (cell D9)
to use as a value in =OFFSET(Merry!C6,COUNTA(Merry!C6:C364)-6,-1) So Merry
would be removed and the variable put in it's place. Each time I reference
the cell D9 I get a #VALUE! error.

Any help would be appriciated.


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default sheet variable

This returns "True" but not the value.

"Dave Peterson" wrote:

maybe...

=OFFSET(indirect("'"&d9&"'!C6"),COUNTA(indirect("' "&d9&"!C6:C364"))-6,-1)



wagz wrote:

I am looking for a way to use a list value from a data validation (cell D9)
to use as a value in =OFFSET(Merry!C6,COUNTA(Merry!C6:C364)-6,-1) So Merry
would be removed and the variable put in it's place. Each time I reference
the cell D9 I get a #VALUE! error.

Any help would be appriciated.


--

Dave Peterson
.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default sheet variable

I think you changed the formula.

Try it again. If it doesn't work, then post your formula and the values in D9,
C6 and the value that =counta() returns.



wagz wrote:

This returns "True" but not the value.

"Dave Peterson" wrote:

maybe...

=OFFSET(indirect("'"&d9&"'!C6"),COUNTA(indirect("' "&d9&"!C6:C364"))-6,-1)



wagz wrote:

I am looking for a way to use a list value from a data validation (cell D9)
to use as a value in =OFFSET(Merry!C6,COUNTA(Merry!C6:C364)-6,-1) So Merry
would be removed and the variable put in it's place. Each time I reference
the cell D9 I get a #VALUE! error.

Any help would be appriciated.


--

Dave Peterson
.


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default sheet variable

I have gotten past the true return but now it doesn't look for the first
empty cell as the reference in the code. So 3,-1 pulls the value from
begining C column instead of using the counta reference.

"Dave Peterson" wrote:

I think you changed the formula.

Try it again. If it doesn't work, then post your formula and the values in D9,
C6 and the value that =counta() returns.



wagz wrote:

This returns "True" but not the value.

"Dave Peterson" wrote:

maybe...

=OFFSET(indirect("'"&d9&"'!C6"),COUNTA(indirect("' "&d9&"!C6:C364"))-6,-1)



wagz wrote:

I am looking for a way to use a list value from a data validation (cell D9)
to use as a value in =OFFSET(Merry!C6,COUNTA(Merry!C6:C364)-6,-1) So Merry
would be removed and the variable put in it's place. Each time I reference
the cell D9 I get a #VALUE! error.

Any help would be appriciated.

--

Dave Peterson
.


--

Dave Peterson
.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default sheet variable

For me to have a guess, you'll still have to post the stuff I mentioned before.

wagz wrote:

I have gotten past the true return but now it doesn't look for the first
empty cell as the reference in the code. So 3,-1 pulls the value from
begining C column instead of using the counta reference.

"Dave Peterson" wrote:

I think you changed the formula.

Try it again. If it doesn't work, then post your formula and the values in D9,
C6 and the value that =counta() returns.



wagz wrote:

This returns "True" but not the value.

"Dave Peterson" wrote:

maybe...

=OFFSET(indirect("'"&d9&"'!C6"),COUNTA(indirect("' "&d9&"!C6:C364"))-6,-1)



wagz wrote:

I am looking for a way to use a list value from a data validation (cell D9)
to use as a value in =OFFSET(Merry!C6,COUNTA(Merry!C6:C364)-6,-1) So Merry
would be removed and the variable put in it's place. Each time I reference
the cell D9 I get a #VALUE! error.

Any help would be appriciated.

--

Dave Peterson
.


--

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
How To make a sheet reference Variable (eq: sum(sheet!D2:H2)) John Linker Excel Discussion (Misc queries) 3 June 16th 08 11:29 PM
passing a variable from sheet to form to another sheet anny Excel Programming 2 May 7th 06 11:45 PM
selecting sheet name in another workbook by variable (same sheet name) Craig[_24_] Excel Programming 1 April 25th 06 05:45 PM
Variable sheet and Formula Sheet Emmett423 Excel Discussion (Misc queries) 2 March 31st 06 02:14 AM
variable in a link where the variable is the name of the sheet darrelly Excel Worksheet Functions 1 October 7th 05 08:24 AM


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