フィルターのクリア

Searching particular string in an excel spreadsheet

2 ビュー (過去 30 日間)
Ghenji
Ghenji 2018 年 4 月 6 日
編集済み: Ghenji 2018 年 4 月 9 日
What are the options other than 'Range.Find' to search for a string in a spreadsheet? Am using actxserver('Excel.Application'). 'Range.Find' does not help since it start to look from first letter of the string and stops there. For ex. am looking for a string 'Jimmy'. Find would look everything row by row starting with J. if it finds 'John' it shall stop right there. How to make it look for complete string?

採用された回答

Ghenji
Ghenji 2018 年 4 月 9 日
編集済み: Ghenji 2018 年 4 月 9 日
This worked for me.
Range.Find('String', [], [], 1)
Since the position for LookAt is 4th and I need xlWhole. xlWhole = 1; xlPart = 2;

その他の回答 (1 件)

Image Analyst
Image Analyst 2018 年 4 月 6 日
How about hauling it into MATLAB with xlsread() and search each cell for the string with strfind()?
  1 件のコメント
Ghenji
Ghenji 2018 年 4 月 6 日
well am loading all the the parameters using excel.application. Going back to xlsread() would be long road and further even after using strfind() i will have to move back to to excel.application since I want read the data labelled with some color.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by