简体   繁体   English

在 Excel 中使用小于/大于来最大化单元格值

[英]Maximise cell value using less than/ greater than in Excel

I am trying to maximise a cell value by applying several less than conditions.我试图通过应用几个小于条件来最大化单元格值。 I want to adjust the values of the four less than conditions to maximise the cell value.我想调整四个小于条件的值以最大化单元格值。 The values can be negative as well as positive这些值可以是负数也可以是正数

I had looked at using solver for this but as I couldn't find information related to less than/greater than filters assumed this was inappropriate.我曾考虑为此使用求解器,但由于我找不到与小于/大于过滤器相关的信息,因此认为这是不合适的。 Below is my formula下面是我的公式

=SUMIFS('2016-19'!$BG$2:$BG$33583, '2016-19'!$BC$2:$BC$33583, "<" & $B$84, '2016-19'!$BE$2:$BE$33583, "<" & $B$87, '2016-19'!$AU$2:$AU$33583, "<" & $B$86, '2016-19'!$BB$2:'2016-19'!$BB$33583,"<" & $B$85)

Any help would be greatly appreciated.任何帮助将不胜感激。

Edit: To be clear I need to adjust the values of B84:B87 such that this maximises the cell with this formula in (L67).编辑:要清楚,我需要调整 B84:B87 的值,以便在(L67)中使用此公式最大化单元格。 By maximises I mean calculates the optimum filters such that L67 is as high as it can be.通过最大化我的意思是计算最佳滤波器,使 L67 尽可能高。 I have looked at Goal Seek and Solver to do this but can't get Solver output to work which I assume is because of the formula and goal seek as I understand requires a specific target and I can only use one cell to vary when I need to vary all 4我已经查看了 Goal Seek 和 Solver 来执行此操作,但无法让 Solver output 工作,我认为这是因为我理解的公式和目标搜索需要一个特定的目标,我只能在需要时使用一个单元格来改变改变所有 4

This could solve your problem:这可以解决您的问题:

If you have only one input variable you want to optimise for a maximum output, select Data -> What-if-analysis -> Goal Seek .如果您只有一个输入变量,您想优化最大 output, select Data -> What-if-analysis -> Goal Seek Within Goal Seek, you select the input variable (eg B84 ), the maximum value you want to achieve and the output variable for which this maximum value should apply.在 Goal Seek 中,您 select 输入变量(例如B84 )、您想要达到的最大值和 output 变量,该最大值应适用于该变量。

If you have more than one variable, you can add the Excel Data Analysis Add-in in the Excel settings to perform multiple regression analyses for multiple input variables.如果您有多个变量,您可以在 Excel 设置中添加 Excel 数据分析插件,以对多个输入变量执行多重回归分析。 Hope that helps.希望有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM