Looking for a string in Excel file with multiple sheets

1 vue (au cours des 30 derniers jours)
Swasti Khuntia
Swasti Khuntia le 6 Nov 2012
Hello,
I want to read an Excel file with multiple sheets. From the file, I want to search for a particular string.
How shall I do it?
Any ideas?
Thanks
  2 commentaires
David Barry
David Barry le 6 Nov 2012
Modifié(e) : David Barry le 6 Nov 2012
Is this a one off task or are you looking to automate for many spreadsheets? When you say "search for a particular string", what exactly are you looking to return?
Swasti Khuntia
Swasti Khuntia le 7 Nov 2012
Hello David,
I mean, if I found the particular string, then I'll be extracting the information from a particular row.
I hope it's clear to you now.

Connectez-vous pour commenter.

Réponse acceptée

David Barry
David Barry le 7 Nov 2012
You should try looking up the xlsread, strmatch, find and strncmp functions in the help. There are comprehensive examples that should demonstrate what you need to do.
If you are still struggling then please upload some sample data.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by