if one cell has "X" textin contents, then pull cell "Y"...

  • Thread starter Thread starter azazel
  • Start date Start date
A

azazel

i need a formula that can search through a column and if a cell has the
text im looking for, pull the adjacent cell...

or i need a contains symbol for the "If" function

ex. if cell A1 contains text dude, then take value of B1 into cell C1
 
=IF(ISNUMBER(MATCH("dude",A:A,0)),INDEX(B:B,MATCH("dude",A:A,0)),"")

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
That didnt work... i tried to play around with it but it wont take the
right cell...

I need the formula to search through column A for a last name, then
take the corresponding cell next to it (column B) into a seperate
cell...

if i cant do this with a fomula; could it be done with two formulas or
a macro???
 
azazel said:
That didnt work... i tried to play around with it but it wont take the
right cell...

I need the formula to search through column A for a last name, then
take the corresponding cell next to it (column B) into a seperate
cell...

if i cant do this with a fomula; could it be done with two formulas or
a macro???

Bob's formula is spot on and works perfectly for me. What results are
you getting in C1 when A1 contains "Dude"? What do you expect the
results to be?

More information, please.
 

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