Cell Address

G

Gaurav

Hi,

What formula do I need to use to accomplish the following.

Lookup some value in another sheet and return the Cell Address(Column and
Row) that has this value.

Thanks in advance.
 
M

Mike H

Hi,

It depends on how the data we are looking up are laid out but here's a
simple one

="A" & MATCH(A1,Sheet2!A:A,FALSE)

Mike
 
G

Gaurav

Thanks Mike. I have one more question.

How can I use the value returned by this formula in a COUNTIF function. I
mean the formula you just wrote in your reply gives me the row number and
now I want to know how many times a particular value appears in that this
row.

Thanks a ton.
 
M

Mike H

Hi,

One way

=COUNTIF(INDIRECT("Sheet2!" & MATCH(A1,Sheet2!A:A,FALSE)&":"&
MATCH(A1,Sheet2!A:A,FALSE)),"Myvalue")

All in one line. If you are trying to count number change "Myvalue" to the
number you looking for with no quotes.

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Help needed 0
Lookup returning wrong results 0
Vlookup and return sheet name also 2
Need Help 4
Referencing formula using Indirect 4
Odd Lookup 1
How can I do a lookup to a specific cell on another tab 1
Excel VBA 1

Top