简体   繁体   English

将非数字值替换为excel中真正缺失的值

[英]Replace non-numeric values as truly missing in excel

I want to use the data analysis toolpack (and perform other analyses) on data which (unintentionally) have strings where there should be numbers. 我想使用数据分析工具包(并执行其他分析)来处理那些(无意间)在应该有数字的字符串的数据。 For example, I might have a column: 例如,我可能有一列:

0,
1,
don't know,
7

I use the following statement to generate a new column: 我使用以下语句来生成新列:

=IF(ISNUMBER(A1),A1,"")

Returning: 返回:

0,
1,
"",
7

I'm unable to do data analysis on these because of the "". 由于出现“”,因此无法对此进行数据分析。 However, if I just type the following into cells skipping the third row, I am able to do analysis: 但是,如果我在跳过第三行的单元格中键入以下内容,则可以进行分析:

0,
1,
,
7

Any tips on how to properly do this replacement using missing values is appreciated. 感谢您提供有关如何使用缺失值正确进行此替换的任何技巧。 Thanks, 谢谢,

Do the following: 请执行下列操作:

  1. Apply your above formula to the range of data. 将您的上述公式应用于数据范围。
  2. Copy and paste special as values entire column with formula to the same range. 将具有公式的整列复制并粘贴为值到相同范围。
  3. Apply autofilter (better have column header for this above the data). 应用自动过滤器(最好在数据上方具有此列的标题)。
  4. Filter only (Blanks) . 仅过滤(Blanks)
  5. Select all filtered cells and press Delete or select Clear Contents from the right-click menu. 选择所有过滤的单元格,然后按Delete键或从右键单击菜单中选择Clear Contents

Thus you'll get the new list that match your requirements. 因此,您将获得符合您要求的新列表。 A bit straightforward, but will go) Good luck! 有点简单,但是会走)祝你好运!

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

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