我在 A 至 D 列中有以下数据。
我需要公式来返回 E 列中提到的值。
Date Session IngredientName Qty SessionRank
01-Mar-24 Breakfast Salt 2.5 2
01-Mar-24 Breakfast Sugar 2 3
01-Mar-24 Breakfast Mirchi Powder 0.5 4
01-Mar-24 Breakfast Rawa 5 1
01-Mar-24 Lunch Salt 2.5 2
01-Mar-24 Lunch Sugar 2 3
01-Mar-24 Lunch Mirchi Powder 0.5 4
01-Mar-24 Lunch Rawa 5 1
01-Mar-24 Dinner Salt 2.5 1
01-Mar-24 Dinner Sugar 2 2
01-Mar-24 Dinner Mirchi Powder 0.5 3
02-Mar-24 Breakfast Salt 2.5 1
02-Mar-24 Breakfast Sugar 2 2
02-Mar-24 Breakfast Mirchi Powder 0.5 3
02-Mar-24 Lunch Rawa 5 1
02-Mar-24 Lunch Salt 2.5 2
02-Mar-24 Lunch Sugar 2 3
02-Mar-24 Lunch Mirchi Powder 0.5 5
02-Mar-24 Dinner Salt 2.5 2
02-Mar-24 Dinner Sugar 2 3
02-Mar-24 Dinner Mirchi Powder 0.5 4
02-Mar-24 Dinner Rawa 5 1
我尝试使用以下公式。
=RANK.EQ([@Qty], FILTER(Table1, [@Date]=Table1[Date], [@Session]=Table1[Session]), 0)
=RANK.EQ([@Qty], FILTER(Table1, ([@Date]=Table1[Date]) * ([@Session]=Table1[Session])), 0)
两个公式都返回错误。
请帮忙。
问候 Kalyan
答案1
我得到了答案
=COUNTIFS([Date],[@Date],[Qty],">"&[@Qty])+1
如果您有任何其他方法,请告诉我们。