Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
azazel
 
Posts: n/a
Default if one cell has "X" textin contents, then pull cell "Y"...


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


--
azazel
------------------------------------------------------------------------
azazel's Profile: http://www.excelforum.com/member.php...o&userid=28250
View this thread: http://www.excelforum.com/showthread...hreadid=478076

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default if one cell has "X" textin contents, then pull cell "Y"...

=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)


"azazel" wrote in
message ...

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


--
azazel
------------------------------------------------------------------------
azazel's Profile:

http://www.excelforum.com/member.php...o&userid=28250
View this thread: http://www.excelforum.com/showthread...hreadid=478076



  #3   Report Post  
azazel
 
Posts: n/a
Default if one cell has "X" textin contents, then pull cell "Y"...


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
------------------------------------------------------------------------
azazel's Profile: http://www.excelforum.com/member.php...o&userid=28250
View this thread: http://www.excelforum.com/showthread...hreadid=478076

  #4   Report Post  
swatsp0p
 
Posts: n/a
Default if one cell has "X" textin contents, then pull cell "Y"...


azazel Wrote:
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.


--
swatsp0p


------------------------------------------------------------------------
swatsp0p's Profile: http://www.excelforum.com/member.php...o&userid=15101
View this thread: http://www.excelforum.com/showthread...hreadid=478076

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
Cell contents as the 'lookup value' parameter in HLOOKUP function EMarre Excel Discussion (Misc queries) 3 August 30th 05 03:49 PM
Conversion of Cell Contents into a Functional Worksheet name ? GMJT Excel Worksheet Functions 1 August 21st 05 04:59 PM
Function syntax to compare cell contents ES Excel Worksheet Functions 2 May 18th 05 03:53 PM
Cell contents vs. Formula contents Sarah Excel Discussion (Misc queries) 3 December 15th 04 06:02 PM
Display actual contents of cell xmasbob Excel Discussion (Misc queries) 1 December 6th 04 05:09 PM


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