在我的 Google 表格中,我使用=AVERAGE(). 在這些平均值中,我可以看到=MAX()使用=MIN(). 我想為一個單元格創建一個代碼:
- 無論哪個百分比最高,它都會輸出主題值(旁邊的列)。
- 然后,我想要另一個代碼(我認為我可以編碼)列印“最高平均值:主題|百分比”
我能做什么?

| 百分比 | 主題 |
|---|---|
| 65.1428571428572% | 生物學 |
| 66% | 化學 |
| 37.2549019607843% | 物理 |
| 75% | 法語 |
| 58.6206896551724% | 地理 |
| 81.7058823529412% | 英語 |
| 77.6923076923077% | 數學 |
| 94.1741071428569% | 計算機科學 |
| 78.7435897436% | 測繪 |
uj5u.com熱心網友回復:
利用:
={"Highest Average: "&JOIN(" | ", INDEX(TEXT(SORT({B:B, A:A}, 2, 0), {"@", "#.00%"}), 1));
"Lowest Average: "& JOIN(" | ", INDEX(TEXT(SORT({B:B, A:A}, 2, 1), {"@", "#.00%"}), 1))}

uj5u.com熱心網友回復:
我已經嘗試了第 1 步,但即使條件為真,我也得到了空白值。
=IF(LEFT(C151,2) = (LEFT (E157,2))="TRUE","TRUE"," ")
uj5u.com熱心網友回復:
嘗試
=query(A:B,"select * order by A desc limit 1 ",0)
或者
="Highest Average: "& query(A:B,"select B order by A desc limit 1 ",0) &" | Percentage " &text(query(A:B,"select A order by A desc limit 1 ",0),"0.00%")
和
=query(A2:B,"select * where A is not null order by A asc limit 1 ",0)
或者
="Lowest Average: "&
query(A2:B,"select B where A is not null order by A asc limit 1 ",0) &
" | Percentage " &
text(query(A2:B,"select A where A is not null order by A asc limit 1 ",0),"0.00%")

轉載請註明出處,本文鏈接:https://www.uj5u.com/qukuanlian/386307.html
上一篇:如何使多個if陳述句更加“pythonic”和濃縮?
下一篇:當輸入輸入y時我如何回圈這個
