LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

value lookup in excel on network

Solved!
Go to solution

I'm trying to figure out a way to lookup a value in an excel sheet that is on a network drive and on multiple tabs with different names inside of the spreadsheet.

 

Example: I'm trying to lookup 200041 in tab "Test C" and report back parameter #2 and parameter #4.

it's located on network drive \\Common\test\Test_Plan.xls

 

Example

 

Thank you

0 Kudos
Message 1 of 9
(5,648 Views)
Solution
Accepted by cb4004
Message 2 of 9
(5,628 Views)

A few little things I'm still trying to figure out how you did it.

 

See the red boxes - I'm trying to figure out how to define the output bundles as row and I can't find the array that you used in the middle. What's it called?

 

Thanks

 

Symbols.JPG

0 Kudos
Message 3 of 9
(5,495 Views)

right click on terminal -> create->constant.
You'll get const with correct names

001.png

now you can bundle values.

 

002.png

Message 4 of 9
(5,481 Views)

It is sometimes easyer and more efficient to use Excel native function throught ActiveX (when you familiar with ActiveX) in conjunction with the RGT.

 

Using Excel VLookup.png

 

Ben64

0 Kudos
Message 5 of 9
(5,474 Views)

Thanks guys.

 

Last questions on this, I got the clusters to name but I ended up with "start row" instead of "row" will this impact the output and if so, how can I fix it?

Also, my output tunnels seem wrong. I played around with it a bit and it seems that I need to create something in the case structure to link them to if the value isnt found, what should I use? or other methods to make them correct..?

 

 

Tunnels.JPG

0 Kudos
Message 6 of 9
(5,426 Views)

I posted a response here to another Excel/RGT query yesterday that discusses and illustrates the Start Row parameters and clusters, including showing a VI with explanations of the functions that you might find helpful.

 

Bob Schor

0 Kudos
Message 7 of 9
(5,415 Views)

Bob's original image is a VI snippet.  Drag that image and drop it in your block diagram and you have code.  You can see what is in the other case.  I'm certaing the Report reference wire and the error are are just wired through.  The cluster is probably the default.  Just right click on the tunnel and pick create constant.

0 Kudos
Message 8 of 9
(5,398 Views)

Thanks- I'm actually running 2013 so the drag and drop doesn't work for me at this time. I'm going to try the computers at my school later today and see if they have the 2015 version then i'll just convert it to 2013.

0 Kudos
Message 9 of 9
(5,345 Views)