Google sheets Google Sheets-按日期分组按项目的行排名
原始数据Google sheets Google Sheets-按日期分组按项目的行排名,google-sheets,Google Sheets,原始数据 fruit date orange 01/01/2016 mango 02/02/2015 apple 03/03/2017 mango 02/02/2014 apple 03/03/2018 orange 01/01/2017 orange 01/01/2015 我想把它们按水果分类,并按日期排列 结果是 fruit date rank orange 01/01/2016 2 mango 02/0
fruit date
orange 01/01/2016
mango 02/02/2015
apple 03/03/2017
mango 02/02/2014
apple 03/03/2018
orange 01/01/2017
orange 01/01/2015
我想把它们按水果分类,并按日期排列
结果是
fruit date rank
orange 01/01/2016 2
mango 02/02/2015 2
apple 03/03/2017 1
mango 02/02/2014 1
apple 03/03/2018 2
orange 01/01/2017 3
orange 01/01/2015 1
如果
水果
在A1中,请尝试在C2中输入,并复制下来以适合:
=countifs(A$2:A,A2,B$2:B,"<"&B2)+countifs(A$2:A2,A2,B$2:B2,B2)
=countifs(A$2:A,A2,B$2:B,“谢谢,我试过使用数组和秩函数,但没有成功,我很惊讶使用countifs:)