找到Excel用户搜索关键字返回摘要

时间:2015-08-21 09:27:57

标签: excel vba search

我正在尝试创建一个Excel电子表格测验,该测验使用户能够输入单元格/用户表单关键字/短语,以便他们查找相关的详细信息和问题。我的电子表格内容示例包括以下内容:

<table border="1">
  <tr>
  <td>Category	</td>
  <td>Question</td>
  <td> Answer</td>
    </tr>
  <tr>
    <td>Fruit</td>
    <td>How many different types of apple trees are there?</td>
    <td>There are more than 7 493 kinds of different apple trees. At least 55 million tons of apples were grown around in the world in 2005. All together, they cost about $10 billion. China produced about 35% of the world's apples.</td>
    </tr>
  <tr>
    <td>Vegetables	</td>
    <td>How many different types of potatoes are there?	</td>
    <td>There are literally thousands of different varieties of potatoes grown around the world. In the UK around 80 varieties are grown commercially. Below are some of the most popular potato varieties available in this country.</td>
    </tr>
  <tr>
    <td>Juice</td>
    <td>What is juice?</td>
    <td>Juice is a liquid that is naturally contained in fruit and vegetables. </td>
</tr>
  <tr><td>Water</td>
    <td>What is the chemical formula for water?	</td>
    <td>Water is made up of two elements, hydrogen and oxygen. Its chemical formula is H2O.</td>
    </tr>
  </table>

在另一个标签上,将向用户显示键入短语即“马铃薯”的功能。我希望向用户呈现与在不同选项卡上搜索的该短语相关的问题和答案。 研究我找到了搜索和查找函数,但这只能返回一个值。

任何人都可以建议一个有助于此的功能/公式吗?

0 个答案:

没有答案