Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/excel/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Excel-重复项的总和_Excel_Excel Formula_Formula - Fatal编程技术网

Excel-重复项的总和

Excel-重复项的总和,excel,excel-formula,formula,Excel,Excel Formula,Formula,我需要公式以这种方式整合价值观: 乔安娜9,凯特6,玛丽9,杰克5,尼娜4,乔安娜3,凯特2,乔安娜1 得到 乔安娜13,凯特8,玛丽9,杰克5,尼娜4 第一个数据列表被输出,粗体是我想要得到的结果。 我既不能用按钮也不能用枢轴,只能用公式。 提前感谢。您可以按照以下步骤操作,我已尝试解决您的问题:- 首先尝试将所有这些值存储在一列中(删除分隔符) 然后,您可以尝试使用“”(空格)作为分隔符拆分每个字符串,并且必须使用以下两个公式将名称和编号存储在两个不同的列中:- To Store name

我需要公式以这种方式整合价值观:

乔安娜9,凯特6,玛丽9,杰克5,尼娜4,乔安娜3,凯特2,乔安娜1

得到

乔安娜13凯特8玛丽9杰克5尼娜4

第一个数据列表被输出,粗体是我想要得到的结果。 我既不能用按钮也不能用枢轴,只能用公式。
提前感谢。

您可以按照以下步骤操作,我已尝试解决您的问题:-

  • 首先尝试将所有这些值存储在一列中(删除分隔符)

  • 然后,您可以尝试使用“”(空格)作为分隔符拆分每个字符串,并且必须使用以下两个公式将名称和编号存储在两个不同的列中:-

    To Store name use this Formulae :- 
       =LEFT(A1, SEARCH(" ",A1,1)-1)
    
    What the above function is doing:- Let's consider that SEARCH(" ", A1,1) returns 5, it means that you are only considering the first five characters of the string starting from left.
    

  • 顺便说一句,SEARCH(“,A1,1)函数用于获取分隔符在字符串中的位置(这里我们的分隔符是”“-->Space)

  • 现在有两列,一列只有名称,另一列只有数字,现在可以对这些列进行聚合求和,并将值存储到另一列

    为此,我们可以使用以下公式

      =SUMPRODUCT((B1:B8=B1)*(C1))
    
    What the above function is doing:- Let's consider that names are present in the B column and the number is present in the C column. So based on names present in column B1 to B8, it will aggregate the sum on the C column and give you the results.
    
  • 我用同样的公式在我的本地网站上建立了这个网站,我正在粘贴屏幕截图,让你更好地了解这个过程

    我希望这将回答您的问题,如果需要进一步澄清,请在评论中联系

    谢谢

      =SUMPRODUCT((B1:B8=B1)*(C1))
    
    What the above function is doing:- Let's consider that names are present in the B column and the number is present in the C column. So based on names present in column B1 to B8, it will aggregate the sum on the C column and give you the results.