[英]How can I calculate the average, min, max, range for a cell from a dropdown and it changes in Excel
I am trying to make price comparison between Dominos and Pizza Hut in Excel by making a dropdown list like this我正在尝试通过制作这样的下拉列表来比较 Excel 中的多米诺骨牌和必胜客的价格
And in the Dominos cell I'm trying to make it so that if you choose average price it shows the average price out of all the Dominos pizza prices which I've done a table on in another spreadsheet.在多米诺骨牌单元格中,我试图做到这一点,如果您选择平均价格,它会显示我在另一个电子表格中制作的所有多米诺骨牌披萨价格的平均价格。
What I am struggling with is how does this cell the one highlighted in green change it's price to whatever option you choose out of the dropdown.我正在努力解决的是这个以绿色突出显示的单元格如何将其价格更改为您从下拉列表中选择的任何选项。
I would appreciate it if someone helps me.如果有人帮助我,我将不胜感激。
without knowing the name of your reference sheets or their ranges, you will have to update the references in the formula below to meet your needs:在不知道参考表的名称或其范围的情况下,您必须更新以下公式中的参考以满足您的需求:
IF(Price_Type_Cell="Average Price:",
AVERAGE(Dominoes_Price_Range),
IF(Price_Type_Cell="Maximum_Price:",
MAXIMUM(Dominoes_Price_Range),
IF(Price_Type_Cell="Minimum Price:",
MINIMUM(Dominoes_Price_Range),
IF(Price_Type_Cell="Range Price:",
"enter formula for Range Price",
""))))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.