简体   繁体   English

Excel 2010:如何在多个单元格之间更改公式而不修改其输入值?

[英]Excel 2010: How can I change formulas across multiple cells without modifying their input values?

I would like to bulk-change formulas across multiple cells without altering the input value. 我想在多个单元格之间批量更改公式,而无需更改输入值。 Is there a way to make this change without going cell by cell, or creating a macro to go cell by cell, and manually replacing the formula type? 有没有一种方法可以进行此更改,而无需一个接一个的单元格,或者创建一个宏来逐个单元格地移动,而无需手动替换公式类型?

When I say input values, I mean the contents of the parenthesis, following a given formula; 当我说输入值时,我指的是括号内的内容,遵循给定的公式; which, in this case, is the "(number, significance)" values which are specific to each cell. 在这种情况下,它是特定于每个单元格的“(数量,重要性)”值。

For example: 例如:

I have a column of cells which contain something like the following, 我有一列包含以下内容的单元格,

  • In D40, we have =ROUNDUP(197.3+14.84+109.09+12.18+12.18, 5); 在D40中,我们= ROUNDUP(197.3 + 14.84 + 109.09 + 12.18 + 12.18,5);
  • In D47, we have =MROUND(85.16+40+24+47+24+19+9+8, 5); 在D47中,我们= MROUND(85.16 + 40 + 24 + 47 + 24 + 19 + 9 + 8,5);
  • And so on, for an entire column with hundreds of cells 依此类推,对于包含数百个单元格的整个列

I want to change every function within those cells to =CEILING without changing the inputs, so that 我想将这些单元格中的每个函数更改为= CEILING而不更改输入,因此

  • D40 would change to =CEILING(197.3+14.84+109.09+12.18+12.18, 5); D40将更改为= CEILING(197.3 + 14.84 + 109.09 + 12.18 + 12.18,5);
  • D47 would change to =CEILING(85.16+40+24+47+24+19+9+8, 5); D47将更改为= CEILING(85.16 + 40 + 24 + 47 + 24 + 19 + 9 + 8,5);
  • And so on for every cell 依此类推

Specific Considerations: 具体注意事项:

  • I am not familiar with macros, and I won't be surprised if there is no alternative means to automate the changes; 我对宏不熟悉,如果没有其他方法可以自动执行更改,我不会感到惊讶。

  • I am using Excel 2010, MSFT Office Pro; 我正在使用Excel 2010,MSFT Office Pro;

  • The spreadsheet is a quantity takeoff, where all values within the parenthesis of each cell's formula are input manually and reflect different linear foot values from architectural plans; 电子表格是一个量清单,其中每个单元格公式的括号内的所有值都是手动输入的,并反映出建筑计划中不同的线性支脚值;

  • The group of cells I want to change are all contained in the same column; 我要更改的单元格组都包含在同一列中;

  • The CURRENT formula (the one I want to replace) is the same for every cell, and it is =ROUNDUP; 每个单元格的CURRENT公式(我要替换的那个)是相同的,它是= ROUNDUP;

  • The PROPOSED formula (the one I want to replace the current formula) is the same, and I want it to be =CEILING; 提议的公式(我要替换当前公式的那个)是相同的,并且我希望它是= CEILING; and

  • I REQUIRE that the contents of the parenthesis remain unchanged. 我要求括号的内容保持不变。


I've tried to make sure this is not a duplicate question, but my apologies if I just didn't find the original. 我试图确保这不是一个重复的问题,但是如果我找不到原始问题,我深表歉意。 Thank you for your help! 谢谢您的帮助!

All you need to do "Ctrl+f", then go to "Replace" tab. 所有您需要做的“ Ctrl + f”,然后转到“替换”选项卡。 In textbox for "Find what:" write "ROUNDUP" and in textbox for "Replace with:" write "CEILING". 在“查找内容:”文本框中输入“ ROUNDUP”,在“替换为:”文本框中输入“ CEILING”。 On last step, click "Replace All" button. 在最后一步,单击“全部替换”按钮。

暂无
暂无

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

相关问题 EXCEL:如何计算多个单元格中的值模式? - EXCEL: How do I count a pattern of values across multiple cells? Excel 2010+ VBA - 如何搜索范围的公式而不是值 - Excel 2010+ VBA - How can I Search a Range's Formulas Rather Than Values 在Excel 2010中,如何在包含多个值单元格的单元格范围内删除重复项并连接值? - In Excel 2010, how could I remove duplicates and concatenate values within a cell range that includes multiple values cells? 我想使用3个Excel公式来填充电子表格中的范围,如何确定单元格随行而变化? - I have 3 excel formulas that I would like to fill ranges in a spreadsheet with, how can I make sure the cells change with the rows? 在Excel中跨多个单元格查找多个值 - Find Multiple Values Across Multiple Cells in Excel Excel,如何将多个电子表格链接到具有更改值的单元格? - Excel, how can I link multiple spreadsheets to cells with changing values? 如何使用公式锁定单元格? - How can I lock cells with formulas? 使用Excel计算工作表中的单元格,值和公式的数量 - Counting how many cells, values, and formulas are in a sheet with Excel Excel - 如何在不使用数组公式和辅助列的情况下将唯一值从一列提取到另一列? - Excel - How can I extract unique values from one column to an another column without using array formulas and helper columns? 如何在Excel中定义多个公式? - How do I define multiple formulas in excel?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM