Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
VDU VDU is offline
external usenet poster
 
Posts: 16
Default Define a sheet in an array using a cell value

Hello,

I have a problem trying to make a formula that can search for a value in an
array based on 3 starting values contained in 3 separate cells.

Each of the 3 starting cells contains :
1. sheet name
2. value to search in a row
3. value to search in a column.

Setting the sheet is the hardest part.

the main function is not a problem, an index with 2 match functions for
row_num and col_num but defining the arrays in which the functions search
seems difficult as the sheet name in the array has to be taken from a cell.

I also tried an Indirect (match(Adress)) solution but that doesn't worork
either, here is the formula I came up with:

INDIRECT("'"&B$2&"'!R"&(10+Match(B5, address(11, 2, 1, true,
B2):Address(65000, 2, 1, true), 0))&"C"&(2+Match(A5, address(2, 3, 1, true,
B2):Address(2, 200, 1, true, B2), 0)), false), FALSE)

If you can tell me what to change for any of the 2 solutions or have a third
one please help. Important to mention is that I used to use a macro for this
operation but I can't do that any more, I have to use a function.

Thank you,


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Define a sheet in an array using a cell value

Did you not see the reply I posted to your thread of yesterday? If
not, here's a link to it:

http://groups.google.com/group/micro...2daf2a9b7aa7a7

Please don't repeat a post when it's not necessary.

Pete

On Nov 14, 2:15 pm, VDU wrote:
Hello,

I have a problem trying to make a formula that can search for a value in an
array based on 3 starting values contained in 3 separate cells.

Each of the 3 starting cells contains :
1. sheet name
2. value to search in a row
3. value to search in a column.

Setting the sheet is the hardest part.

the main function is not a problem, an index with 2 match functions for
row_num and col_num but defining the arrays in which the functions search
seems difficult as the sheet name in the array has to be taken from a cell.

I also tried an Indirect (match(Adress)) solution but that doesn't worork
either, here is the formula I came up with:

INDIRECT("'"&B$2&"'!R"&(10+Match(B5, address(11, 2, 1, true,
B2):Address(65000, 2, 1, true), 0))&"C"&(2+Match(A5, address(2, 3, 1, true,
B2):Address(2, 200, 1, true, B2), 0)), false), FALSE)

If you can tell me what to change for any of the 2 solutions or have a third
one please help. Important to mention is that I used to use a macro for this
operation but I can't do that any more, I have to use a function.

Thank you,



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
VDU VDU is offline
external usenet poster
 
Posts: 16
Default Define a sheet in an array using a cell value

Hello,

My hotmail account was reseted and I didn't see the notification for the
first topic, I didn't see it in my account info as an open thread so I was
under the impression that I wrote the message but didn't post it. Thank you
for the answer and the link to it, sorry for reposting.

Regards,
VDU

"Pete_UK" wrote:

Did you not see the reply I posted to your thread of yesterday? If
not, here's a link to it:

http://groups.google.com/group/micro...2daf2a9b7aa7a7

Please don't repeat a post when it's not necessary.

Pete

On Nov 14, 2:15 pm, VDU wrote:
Hello,

I have a problem trying to make a formula that can search for a value in an
array based on 3 starting values contained in 3 separate cells.

Each of the 3 starting cells contains :
1. sheet name
2. value to search in a row
3. value to search in a column.

Setting the sheet is the hardest part.

the main function is not a problem, an index with 2 match functions for
row_num and col_num but defining the arrays in which the functions search
seems difficult as the sheet name in the array has to be taken from a cell.

I also tried an Indirect (match(Adress)) solution but that doesn't worork
either, here is the formula I came up with:

INDIRECT("'"&B$2&"'!R"&(10+Match(B5, address(11, 2, 1, true,
B2):Address(65000, 2, 1, true), 0))&"C"&(2+Match(A5, address(2, 3, 1, true,
B2):Address(2, 200, 1, true, B2), 0)), false), FALSE)

If you can tell me what to change for any of the 2 solutions or have a third
one please help. Important to mention is that I used to use a macro for this
operation but I can't do that any more, I have to use a function.

Thank you,




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
Need VBA Code to Let User Define Active Sheet zulfer7 Excel Discussion (Misc queries) 3 March 29th 07 02:59 PM
Cannot define cell name from menu kufdam Setting up and Configuration of Excel 0 January 9th 07 03:32 PM
using cells to define sheet references patrickgamer Excel Discussion (Misc queries) 1 April 27th 06 08:55 PM
open at define work sheet kit Excel Discussion (Misc queries) 3 October 23rd 05 03:57 PM
how to define a cell to where i can link to it. daneyb Excel Discussion (Misc queries) 6 March 13th 05 07:27 PM


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