Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have a list (sheet1) of about 300 items (a1:a300) that appear in random
locations on sheet 2 of my workbook (a1:cf13). I want to find the items in my list a1:a300 on sheet 2 and return their location (cell address) to b1:b300. If you know whether or not this can be done I would greatly appreciate it. I have searched the forum for something similar to this but cant find what I am looking for. I found a couple that use the address function with the max function but that seems to just be for a single row or column. I am trying to search through a range about 13x83. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
As long as each item is unique.
Try this array formula** : =ADDRESS(MAX((Sheet2!A$1:CF$13=A1)*ROW(Sheet2!A$1: CF$13)),MAX((Sheet2!A$1:CF$13=A1)*COLUMN(Sheet2!A$ 1:CF$13)),4) ** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER) Copy down as needed If there are duplicate items then it becomes a nightmare! -- Biff Microsoft Excel MVP "Danny" wrote in message ... I have a list (sheet1) of about 300 items (a1:a300) that appear in random locations on sheet 2 of my workbook (a1:cf13). I want to find the items in my list a1:a300 on sheet 2 and return their location (cell address) to b1:b300. If you know whether or not this can be done I would greatly appreciate it. I have searched the forum for something similar to this but cant find what I am looking for. I found a couple that use the address function with the max function but that seems to just be for a single row or column. I am trying to search through a range about 13x83. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
This is a perfect candidate for using range names. Name the range A1:CF13 D Then the formula simplifies to =ADDRESS(MAX(ROW(D)*(A1=D)),MAX(COLUMN(D)*(A1=D))) still array entered. Notice no need for sheet references, no need for absolute notation! Cheers, Shane Devenshire "Danny" wrote: I have a list (sheet1) of about 300 items (a1:a300) that appear in random locations on sheet 2 of my workbook (a1:cf13). I want to find the items in my list a1:a300 on sheet 2 and return their location (cell address) to b1:b300. If you know whether or not this can be done I would greatly appreciate it. I have searched the forum for something similar to this but cant find what I am looking for. I found a couple that use the address function with the max function but that seems to just be for a single row or column. I am trying to search through a range about 13x83. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thank you both. This is really helpful. I figured that if all the numbers
were not unique then it would make it more difficult, that is why I made a point of mentioning that. Also, the named range makes it a lot simpler function to check if something goes wrong. I noticed one difference in the two (the 4) at the end so i tried both and realized that changed the result from $e$4 to e4. But thank you both again. "Shane Devenshire" wrote: Hi, This is a perfect candidate for using range names. Name the range A1:CF13 D Then the formula simplifies to =ADDRESS(MAX(ROW(D)*(A1=D)),MAX(COLUMN(D)*(A1=D))) still array entered. Notice no need for sheet references, no need for absolute notation! Cheers, Shane Devenshire "Danny" wrote: I have a list (sheet1) of about 300 items (a1:a300) that appear in random locations on sheet 2 of my workbook (a1:cf13). I want to find the items in my list a1:a300 on sheet 2 and return their location (cell address) to b1:b300. If you know whether or not this can be done I would greatly appreciate it. I have searched the forum for something similar to this but cant find what I am looking for. I found a couple that use the address function with the max function but that seems to just be for a single row or column. I am trying to search through a range about 13x83. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You're welcome. Thanks for the feedback!
-- Biff Microsoft Excel MVP "Danny" wrote: Thank you both. This is really helpful. I figured that if all the numbers were not unique then it would make it more difficult, that is why I made a point of mentioning that. Also, the named range makes it a lot simpler function to check if something goes wrong. I noticed one difference in the two (the 4) at the end so i tried both and realized that changed the result from $e$4 to e4. But thank you both again. "Shane Devenshire" wrote: Hi, This is a perfect candidate for using range names. Name the range A1:CF13 D Then the formula simplifies to =ADDRESS(MAX(ROW(D)*(A1=D)),MAX(COLUMN(D)*(A1=D))) still array entered. Notice no need for sheet references, no need for absolute notation! Cheers, Shane Devenshire "Danny" wrote: I have a list (sheet1) of about 300 items (a1:a300) that appear in random locations on sheet 2 of my workbook (a1:cf13). I want to find the items in my list a1:a300 on sheet 2 and return their location (cell address) to b1:b300. If you know whether or not this can be done I would greatly appreciate it. I have searched the forum for something similar to this but cant find what I am looking for. I found a couple that use the address function with the max function but that seems to just be for a single row or column. I am trying to search through a range about 13x83. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
return a cell address based on a matched value.. | Excel Discussion (Misc queries) | |||
Comparing cell contents, know cell address | Excel Discussion (Misc queries) | |||
linking to contents of a cell vs cell address | Excel Worksheet Functions | |||
Return cell contents based on conditional lookup | Excel Worksheet Functions | |||
Formula to return cell contents based on multiple conditions | Excel Worksheet Functions |