Returning Cell Locaton From A Text Search

  • Thread starter Thread starter Jim Mac Millan
  • Start date Start date
J

Jim Mac Millan

Hi,

I have been experimenting with the different functions. Vlookup, Search,
Find etc. etc. I am not understanding them or I am using them incorrectly.

I have a range A1:A30. In that range I want to find out what cell the
verbiage "SIC Code" is in. The only thing that seems to come close to what I
want to use the is the MATCH function but even that only gives me the row
#.

I actually want to find the verbiage in the cell below "SIC Code". Since
"SIC Code is a moving target I thought that to be the best reference. There
are other references I will be tracking as well but if figure this out
that'll be half the battle.

Thanks For The Help
Jim Mac Millan
 
One way:
=INDEX(A1:A30,MATCH("sic code",A1:A30,0)+1)

or if "sic code" is in the cell with other stuff:
=INDEX(A1:A30,MATCH("*sic code*",A1:A30,0)+1)
 
=CELL("address",INDEX(A1:A30,MATCH( "SIC Code",A1:A30,0)))

you can also get it using the address function and match

however if you always want the cell value below the match you can use

=INDEX(A1:A30,MATCH( "SIC Code",A1:A30,0)+1)

note that if "SIC Code" is in the last row and the next is empty you will
get an error
with the latter formula

--
Regards,

Peo Sjoblom

Portland, Oregon
 
Thanks Dave and Peo,

This is just what I was looking for " =INDEX(A1:A30,MATCH("sic
code",A1:A30,0)+1)"

Jim Mac Millan :-)
 

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

Back
Top