Comparing, matching and combining columns of data

时间:2015-10-30 23:50:27

标签: excel matlab vba excel-vba

I need some help matching data and combining it. I currently have four columns of data in an Excel sheet, similar to the following: Column: 1 2 3 4 U 3 A 0 W 6 B 0 R 1 C 0 T 9 D 0 ... ... ... ... Column two is a data value that corresponds to the letter in column one. What I need to do is compare column 3 with column 1 and whenever it matches copy the corresponding value from column 2 to column 4. You might ask why don't I do this manually ? I have a spreadsheet with around 100,000 rows so this really isn't an option! I do have access to MATLAB and have the information imported, if this would be more easily completed within that environment, please let me know.

1 个答案:

答案 0 :(得分:0)

如@bla所述:

  

类似于=IF(A1=C1,B1,0)

的公式

应该服务(Excel)。