简体   繁体   English

将值添加到一系列单元格中,这些单元格的相邻单元格包含相同的值

[英]Add the values in a range of cells, whose adjacent cells contain same value

I have multiple columns of data. 我有多列数据。 What I need is that excel should find all the cells containing similar values in first column and add the values present in the adjacent column and keep one line and delete all the lines with similar values. 我需要的是excel应该在第一列中找到所有包含相似值的单元格,并添加相邻列中存在的值,并保留一行并删除所有具有相似值的行。

http://i.stack.imgur.com/kPgr9.png http://i.stack.imgur.com/kPgr9.png

In this Image, I need excel to check the values under shipment tab and for all same values, add the net weight values. 在此图像中,我需要Excel来检查“装运”选项卡下的值,并为所有相同的值添加净重值。 After that , i need to keep one line containing shipment no, net weight and rest of the fields but delete the repeating rows. 之后,我需要保留一行,其中包含装运编号,净重和其余字段,但要删除重复的行。

You can create a new table (same columns) with a single row for each unique shipment number. 您可以为每个唯一的发货编号创建一个新表(同一列),并在其中创建一行。 Then you can use a sumif formula to sum the "Total Weight" column based on the shipment number as the criteria. 然后,您可以使用sumif公式以货件编号为标准对“总重量”列进行求和。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM