Return Cell Adress

Caribeiro77

Well-known Member
Joined
Sep 24, 2010
Messages
1,261
Hy, i have this scenario:
From A1 to A1000 i have random data, and want i to write someting, for example in cell C1, and what i need is a formula to tell me if what i wrote in C1 is or isn't in that thousand cells range, and if it is, what's the cell adress?

Thanks..
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
I understood your formula, you concatenate de "A", with the ordinal position of the data, but what if i want the extend the range of data, let's say to A1:D500, I think i no longer can't use this formula because the concatenation won't work with this range.
New solution?

Thanks once again...

Try

=IF(ISNUMBER(MATCH(C1,A:A,0)),"A"&MATCH(C1,A:A,0),"")
 
Upvote 0
Try this UDF in a standard module

Code:
Function RetAdd(r As Range, c As Range) As String
Dim Found As Range
Set Found = r.Find(what:=c.Value, LookIn:=xlValues, lookat:=xlWhole)
If Found Is Nothing Then
    RetAdd = "Not found"
Else
    RetAdd = Found.Address(False, False)
End If
End Function

To use, for example

=retadd(A1:D20,F1)
 
Upvote 0
working.
Can you tell me if this code can be used every time i open excel, or only works in this workbook??
Try this UDF in a standard module

Code:
Function RetAdd(r As Range, c As Range) As String
Dim Found As Range
Set Found = r.Find(what:=c.Value, LookIn:=xlValues, lookat:=xlWhole)
If Found Is Nothing Then
    RetAdd = "Not found"
Else
    RetAdd = Found.Address(False, False)
End If
End Function

To use, for example

=retadd(A1:D20,F1)
 
Upvote 0

Forum statistics

Threads
1,224,561
Messages
6,179,521
Members
452,923
Latest member
JackiG

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top