简体   繁体   English

如何从下拉列表中计算单元格的平均值、最小值、最大值以及它在 Excel 中的变化

[英]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 中的多米诺骨牌和必胜客的价格

Dropdown list image下拉列表图片

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.在多米诺骨牌单元格中,我试图做到这一点,如果您选择平均价格,它会显示我在另一个电子表格中制作的所有多米诺骨牌披萨价格的平均价格。

Dominos price table多米诺骨牌价格表

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.

相关问题 我如何根据某个数字在Excel中计算每周平均值 - How can I calculate a weekly average in Excel from a certain figure 尝试根据 ID 计算一系列数据的平均值、最小值和最大值 - Trying to calculate the average, min and max of a range of data depending their ID 如果在Excel中的日期/时间范围内,则平均每日最高/最低温度 - Average daily max/min temperature if within date/time range in Excel 如何在 Excel 中查找动态单元格的最大值和最小值 - How to find max and min of a dyanamic cell in Excel excel 2003:如何从单元格引用命名范围? - excel 2003: How can I reference a named range from a cell? 如何使用openpyxl计算excel表格单元格范围中的最大字符串长度值? - How to calculate the max string length value in excel sheet cell range using openpyxl? 如何使用“平均”公式限制Excel单元格中的小数位数? - How can I restrict the decimal count in an Excel cell with an “Average” formula? 如何在一个范围内找到MAX()的电子表格单元格引用? - How can I find the spreadsheet cell reference of MAX() in a range? (Excel)在最小/最大函数中使用定义的范围(来自地址函数) - (Excel) Using defined range (from address functions) in min/max functions 是否有一个 excel/VBA 公式来查找长度不同的一系列单元格的最小/最大/平均值等? - Is there an excel/VBA formula to find the min/max/average etc of a range of cells that varies in length?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM