From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How read cells from an Excel file?

Hi,

 

I want to search in the first column of a Excel file a name and when I found it I want to read the near cells (same row but different column).

 

I try with the Activex but I don't found the rigth solution.

 

Can I help me, please?

 

Thanks

0 Kudos
Message 1 of 9
(3,228 Views)
--------------------------------------------------------------------------------------------------------------
I try with the Activex but I don't found the rigth solution.
--------------------------------------------------------------------------------------------------------------

Please post what you have did so far. That will help in finding out the exact problem.
0 Kudos
Message 2 of 9
(3,224 Views)
You can use "read from spread sheet"
0 Kudos
Message 3 of 9
(3,222 Views)

Hey giada,

Before you can use the read from spreadsheet file VI the data of the Excel file must be copied to a .txt file then using the VI mentioned when set to string you can perform array searches to the data

I shall write you an example to show the search aspect of your problem 


Philip
Applications Engineer
National Instruments
UK Branch

===If this fixes your problem, mark as solution!===
0 Kudos
Message 4 of 9
(3,215 Views)
Ok, thanks
Download All
0 Kudos
Message 5 of 9
(3,208 Views)
Here's the comma spaced .txt file search VI it may be possible to copy the Excel file to a comma spaced text file using active X before performing the search

Philip
Applications Engineer
National Instruments
UK Branch

===If this fixes your problem, mark as solution!===
Message 6 of 9
(3,202 Views)

Sorry, but I have LabView 8.5.1.

 

Thanks

0 Kudos
Message 7 of 9
(3,197 Views)
Here it is I'm currently working on a way to convert the Excel file to a Text file

Philip
Applications Engineer
National Instruments
UK Branch

===If this fixes your problem, mark as solution!===
0 Kudos
Message 8 of 9
(3,193 Views)

This will Search the Excel file for you

 

Hope this helps


Philip
Applications Engineer
National Instruments
UK Branch

===If this fixes your problem, mark as solution!===
0 Kudos
Message 9 of 9
(3,172 Views)