Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 148
Default Return cell address of a cell based on contents of cell.

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Return cell address of a cell based on contents of cell.

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Return cell address of a cell based on contents of cell.

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 148
Default Return cell address of a cell based on contents of cell.

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 73
Default Return cell address of a cell based on contents of cell.

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
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
return a cell address based on a matched value.. Dave F[_2_] Excel Discussion (Misc queries) 4 January 3rd 08 07:00 PM
Comparing cell contents, know cell address molsansk Excel Discussion (Misc queries) 4 December 10th 07 04:44 PM
linking to contents of a cell vs cell address AinSF Excel Worksheet Functions 0 September 6th 06 06:57 PM
Return cell contents based on conditional lookup jarviscars Excel Worksheet Functions 15 August 5th 05 08:05 AM
Formula to return cell contents based on multiple conditions Bill Excel Worksheet Functions 3 January 19th 05 09:59 AM


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