search
HomeTopicsexcelPractical Excel skills sharing: How to sum data with units?

In the previous article "The magical AGGREGATE of Excel function learning, one can actually be worth 19! 》, we learned about a powerful statistical function. Today we are going to talk about data processing. It turns out that numbers plus units can be summed. Take a look, you must not know this method!

Practical Excel skills sharing: How to sum data with units?

In daily work, when we use function formulas to sum data, the data has no units, so we can easily complete the data sum. However, according to our habits, There should be a unit behind the data. How to sum such data?

1. Common units of data

In the material collection registration form, we are used to writing the unit after the data, such as 12, 15 This class. In Excel, when text is added to a number, it becomes text and cannot be summed directly.

In the table shown in the figure below, SUM cannot be used to sum the "numeric text" data in column F directly.

Practical Excel skills sharing: How to sum data with units?

Can you solve it?

Let me introduce 3 methods to you. If you have a better and easier method, please leave a message to share!

The first method: column separation method

We can use the data column method to remove the word "本".

(We have previously discussed data classification in a special tutorial, click to view: https://www.php.cn/topic/excel/491825.html)

Select the data in column F, click "Data" - "Column" - "Separator", you can see the dialog box as shown below.

Practical Excel skills sharing: How to sum data with units?

When the delimiter symbol is used as the basis for column classification, the corresponding symbol will become a dividing line, so here, we can turn "this" into a dividing line. Check "Others" and enter "this" next. In the data preview below, you can immediately see that "this" has become a dividing line.

Practical Excel skills sharing: How to sum data with units?

Click Finish. There are only numbers in the data.

Practical Excel skills sharing: How to sum data with units?

Select the data area in column F, click "Formula" - "Automatic Sum" - "Sum" to complete the sum.

Practical Excel skills sharing: How to sum data with units?

(We have a special tutorial on automatic summation before, click to view: https://www.php.cn/topic/excel/491692 .html)

Second method: Replacement method

In the previous tutorial, I told you that the find and replace tool can delete characters in batches. We can also use it here. this way.

(To find and replace partners who are still unclear, you can click on the link to view: https://www.php.cn/topic/excel/491928.html)

Select the data area in column F and press the replace shortcut key CTRL H. In the pop-up dialog box, enter "this" in "Find content" and do not enter any characters after "Replace with".

Practical Excel skills sharing: How to sum data with units?

Click "Replace All", all "this" in column F will be deleted, and then perform the same summing operation as before.

Practical Excel skills sharing: How to sum data with units?

The third way to open your mind: Custom format method

The first two methods are to remove "this" The data is summed after the word, so is there any way we can sum it without deleting the word "this"? Of course!

Select the data area and first use any of the previous methods to remove the word "本".

Practical Excel skills sharing: How to sum data with units?

Keep the data selected, then press the ctrl 1 shortcut key to pop up the "Format Cells" dialog box, and click "Customize".

Practical Excel skills sharing: How to sum data with units?

Select "G/General Format" as the type, and then enter the word "this" after "G/General Format". The "G/general format" here means that the data is regular data. Adding the word "Ben" at the end only adds a character to the data and does not change the format of the data.

Practical Excel skills sharing: How to sum data with units?

After clicking OK, there will be the unit "Ben" after the number. The data at this time is aligned to the right, indicating that it is regular data rather than text, while the original data at the beginning of the article is aligned to the left, indicating that it is text. (Data is on the right, text is on the left.)

Practical Excel skills sharing: How to sum data with units?

Let’s verify it to see if it can be summed.

Same as the previous operation, after selecting the data, click "AutoSum", you can see the following results. Although there are units after the numbers, you can still perform mathematical operations.

1Practical Excel skills sharing: How to sum data with units?

2. Unit of order of magnitude

We do company statements. When the amount is particularly large, the number after the number There will be a "ten thousand" or "hundred million", as shown in the figure below. You can see that the data is also aligned to the left, so it cannot be summed directly. At this time, the text behind the number is no longer an ordinary unit, but an order of magnitude unit, indicating the size of the data, so it cannot be deleted by column splitting or replacement. How to perform the summation operation at this time?

Practical Excel skills sharing: How to sum data with units?

We can convert "10,000" and "100 million" into data and then do the sum operation.

First method: Replace with scientific notation data

Select the data area, press the ctrl H shortcut key, in the dialog box, enter "Find content" and then " Thousands", enter "E 04" after "Replace with". "E 04" means 10 to the fourth power, which is ten thousand. This replacement turns the text data into data written in scientific notation.

Practical Excel skills sharing: How to sum data with units?

Click "Replace All", you can see that the data containing "10,000" has become scientific notation data.

Practical Excel skills sharing: How to sum data with units?

In the same way, replace "100 million" with "E 08", which means 10 to the 8th power, which is one hundred million.

Practical Excel skills sharing: How to sum data with units?

After clicking "Replace All", the data becomes scientific notation data.

Practical Excel skills sharing: How to sum data with units?

After selecting the data area, click AutoSum to sum the data.

Practical Excel skills sharing: How to sum data with units?

Second method: Custom format method

If we want the data to be uniformly displayed at the "10,000" level after summation , then use customization as before.

After selecting the data area, press ctrl 1, click "Custom" in the pop-up dialog box, and enter the custom number format "0!.0,10,000" for "10,000" under "Type".

Practical Excel skills sharing: How to sum data with units?

Then click "OK" to see the data results.

Practical Excel skills sharing: How to sum data with units?

#The data displayed at this time is rounded off by default after the decimal point, leaving only one decimal place. If you want to see the original appearance of the data, you can see it in the edit bar.

Practical Excel skills sharing: How to sum data with units?

Related learning recommendations: excel tutorial

The above is the detailed content of Practical Excel skills sharing: How to sum data with units?. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:部落窝教育. If there is any infringement, please contact admin@php.cn delete
一文教会你Excel折叠表格分类汇总功能一文教会你Excel折叠表格分类汇总功能May 12, 2022 am 11:58 AM

本篇文章给大家带来了关于excel的相关知识,其中主要介绍了关于折叠表格的相关问题,就是分类汇总的功能,这样查看数据会非常的方便,下面一起来看一下,希望对大家有帮助。

实用Excel技巧分享:计算年数差、月数差、周数差实用Excel技巧分享:计算年数差、月数差、周数差Apr 22, 2022 am 09:56 AM

在之前的文章《实用Excel技巧分享:利用 数据透视表 来汇总业绩》中,我们学习了下Excel数据透视表,了解了利用数据透视表来汇总业绩的方法。而今天我们来聊聊怎么计算时间差(年数差、月数差、周数差),希望对大家有所帮助!

实例总结Excel中AGGREGATE函数的八个用法实例总结Excel中AGGREGATE函数的八个用法May 17, 2022 am 11:37 AM

本篇文章给大家带来了关于excel的相关知识,其中主要介绍了关于AGGREGATE函数的相关内容,该函数用法与SUBTOTAL函数类似,但在功能上比SUBTOTAL函数更加强大,下面一起来看一下,希望对大家有帮助。

Word与Excel联动:表格借用Word进行分栏打印!Word与Excel联动:表格借用Word进行分栏打印!May 07, 2022 am 10:28 AM

在之前的文章《实用Word技巧分享:聊聊你没用过的“行号”功能》中,我们了解了Word中你肯定没用过的"行号”功能。今天继续实用Word技巧分享,看看Excel表格怎么借用Word进行分栏打印,快来收藏使用吧!

实用Excel技巧分享:合并单元格后实现筛选功能实用Excel技巧分享:合并单元格后实现筛选功能May 11, 2022 am 10:22 AM

在之前的文章《实用Excel技巧分享:原来“定位功能”这么有用!》中,我们了解了定位功能的妙用。而今天我们聊聊合并后的单元格如何实现筛选功能,分享一种复制粘贴和方法解决这个问题,另外还会给大家分享一种合并单元格的不错的替代方式。

实例详解利用Excel制作倒计时牌实例详解利用Excel制作倒计时牌May 16, 2022 am 11:53 AM

本篇文章给大家带来了关于excel的相关知识,其中主要介绍了关于zenmm制作倒计时牌的相关内容,使用Excel中的日期函数结合按指定时间刷新的VBA代码,即可制作出倒计时牌,下面一起来看一下,希望对大家有帮助。

Excel怎么查找总和为某个值的组合Excel怎么查找总和为某个值的组合May 18, 2022 am 11:25 AM

本篇文章给大家带来了关于excel的相关知识,其中主要介绍了关于如何使用函数寻找总和为某个值的组合的问题,下面一起来看一下,希望对大家有帮助。

图文详解Excel的折线图图文详解Excel的折线图May 07, 2022 am 11:28 AM

本篇文章给大家带来了关于excel的相关知识,其中主要介绍了关于折线图的相关问题,下面就根据一些示例来看一下怎么去应用,希望对大家有帮助。

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.