LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default SEARCH but for cell contents rather than text

OK so I want to use the SEARCH function but to look for the contents of one
cell in another. Example

|A|B|C|
1|orange|an orange|(my formula)
2|apple|an orange|(my formula)
3|pear|a pear|(my formula)

So I want to put a formula in C1 that searches B1 for any occurance of the
text that appears in A1 and return the position (like CHARINDEX in SQL)

So
|A|B|C|
1|orange|an orange|3
2|apple|an orange|#VALUE
3|pear|pear|1

I can't 'hardcode' my search value as it's changing each row. Whats the
secret?


 
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
Can I search for the displayed value in a cell, not the contents? Eric_NY Excel Discussion (Misc queries) 2 July 14th 09 04:19 PM
search if cell contents exist in other cells CharileBaker Excel Worksheet Functions 1 April 12th 07 11:00 AM
Can I out the contents of a text box into a cell? Linda B Excel Discussion (Misc queries) 2 July 10th 06 07:45 AM
Display contents of cell in another cell as part of text string? [email protected] New Users to Excel 3 July 8th 06 07:44 PM
Cell only shows link in text, not contents of reference cell Jay Mac New Users to Excel 4 August 23rd 05 08:36 PM


All times are GMT +1. The time now is 10:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"