LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

compare data on excel

Solved!
Go to solution

Hi ander99,

 

You can talk to any of our Applications Engineer. They will be able to assist you on your problem.

 

Thank you & Regards

Lee

NI ASEAN AE

0 Kudos
Message 11 of 23
(2,482 Views)
Myself Joseph! I am new here in this forum.
I just want to say hello to all. I am glad to be a member here.
 
Joseph
 
Message 12 of 23
(2,475 Views)
Anyone can guide me on how to compare 2d array with another 2d array? Like 1st array list will go thru the list in 2nd array
0 Kudos
Message 13 of 23
(2,455 Views)
Below is my problem which i think if i copy both data from ms word or ms excel to two 2d array and do the comparision will be easier. But is there possible to do in 2d array comparision?
0 Kudos
Message 14 of 23
(2,453 Views)
Solution
Accepted by topic author ander99

Hi ander99,

 

From your explanation in your screenshot, here is how I interpret your question:

 

1. You have the data from these two Excel spreadsheets in two separate arrays. I will assume that the spreadsheet on the left is called Spreadsheet 1

2. For every element in Column A of _result, you want to find the element with equal value value in Column A of Spreadsheet 1, and extract the corresponding element in Column B of Spreadsheet 1. For example, if you want to find 1000 in Column A of Spreadsheet 1, then you want to extract the value 24.93 from Column B of Spreadsheet 1.

 

If I am right there, you can use the Index Array VIs to separate your 2D arrays into columns, then use the Search 1D array VI to find the element you are interested in. Then use the index of the found element, and extract the element of that index in the second column. Attached is an example VI I threw together to implement what I'm talking about (and a screenshot of it working). Notice that the found value in the first column is 0, and the corresponding output value is 10 (circled in the screenshot). Naturally you should include some contingencies for dealing with what happens if no value is found (i.e. output of the Search 1D array VI is -1).

 

I hope this helps.

Best regards,
Vern Yew
Applications Engineer
Download All
Message 15 of 23
(2,415 Views)

Hi friends

 

To  compare  two datasheet I think you copy the data of one sheet and paste it into another sheet.

Now check the the datasheet.

 

Joseph

 

0 Kudos
Message 16 of 23
(2,405 Views)
Thank you Vern Yew for your time to decipher my explanations.
0 Kudos
Message 17 of 23
(2,399 Views)

STTLLER wrote:

Hi friends

 

To  compare  two datasheet I think you copy the data of one sheet and paste it into another sheet.

Now check the the datasheet.

 

Joseph

 


Joseph,

 

How does this statement make any sense?

 

Copy, paste, compare.  Hey, what do you know, the data is identical!Smiley Very Happy

0 Kudos
Message 18 of 23
(2,365 Views)

Hi ,

i am having quite the same problem. I tried the search_array.vi, which was posted and it works fantastic for my needs.

But how could i manage it  to compare a 2D array with two values at a time  and  then extract elements from different columns?

I imported data from excel , which contains a steamtable, in the first column is the pressure and in the second the temperature etc., now i want to compare this with a temperature and pressure (which i measure) and then extract the third and fourth column which contain the enthalpy and entropy.

Does somebody has an idea?

 

Greetings

0 Kudos
Message 19 of 23
(2,234 Views)

Problem solved Smiley Very Happy

 

0 Kudos
Message 20 of 23
(2,222 Views)