Skip to main content

[Excel] Multiple Ways to Convert Text to Numbers


Sometimes excel automatically stored numbers as text when you import data or copy data from another source. Good thing is that there are several methods we can apply to convert the text to numbers.


Fixing Numbers by Error Checking

1. When numbers are stored as text, excel will display a green triangle in the cell as indication of an error checking.


2. Click the warning sign that appears beside the cell and select Convert to Number.



Changing the Cell Format

1. Highlight the cells that you want to convert from text to numbers.
2. You can change the format by selecting Format Cells when you right-click the selected cells or by clicking the little arrow in the Number group in 'Home' tab.
3. In the Format Cells box, select Number and click OK.



Using the Value Function

1. Use the value function in the cell in which you want to convert the text to numbers. 
2. Supposed you want to convert cell C1 from text to number, the formula is =VALUE(C1)



Using Paste Special

1. Enter 1 in an empty cell and copy it. Make sure that the cell format is number.
2. Select the cells that contain the numbers formatted as text. 
3. Right-click and select Paste Special.


4. In the Paste Special dialog box, select Multiply under Operation and click OK.



Comments

Popular posts from this blog

[Excel] How to Protect Multiple Excel Tabs with Different Passwords

Requirement:  I have an excel file with multiple tabs which is being updated monthly by many users. I want to create a password for each tab so that each user can only view and edit their own tab. Limitation : Protect Sheet Function in Excel is notoriously weak.  Solution : Use VBA code to set up password on each tab. Protecting Multiple Tabs with Different Passwords Let's say I have three teams which need to report their daily sales in one excel spreadsheet. The three teams are named Team Apple, Team Watermelon and Team Grapes. First, let's create a new tab for each one of them. 1. Add three new tabs and rename each according to the team name. 2. Create a column for 'Name', 'Item', 'Sales' and 'Date' for each team.  3. Click Visual Basic from the 'Developer' tab. 4. From Sheet 2 to Sheet 4, copy and paste the VBA code below: VBA Code: Private Sub Worksheet_Activate()     Dim strPassword As String     'On Error Resume Next        ...

[Microsoft Flow] How to Connect Microsoft Form Responses to Power BI

Requirement : Auto-import of data to Power BI when a new response in Microsoft Forms is submitted. Solution : Connect Microsoft Forms to Power BI through Microsoft Flow. Assumptions : Power BI is already installed. Microsoft Form is already created. Creating a Streaming Dataset 1. Sign into https://powerbi.microsoft.com. 2. On the Power BI homepage, click New under 'My workspace'.  3. Select Streaming dataset . 4. Select API and click Next . 5. Enter a name for your dataset. 6. Enter each question from MS Forms to 'Values from stream' in Power BI and select the type of the answer for each. 7. Click Create . 8. Turn on Historic data analysis and click Done . 9. When you click the name of your dataset under 'My workspace', you are now ready to create a Power BI report. Connecting MS Forms to Power BI 1. Log into https://flow.microsoft.com. 2. Click My flows in the left navigation bar. 3. Click New flow and select Automated cloud flow . 4. Before you create yo...

[Excel] Using the VLOOKUP Function

VLOOKUP is a built-in function in excel that allows users to look up a value in a column vertically based on exact or approximate match types. FORMULA =VLOOKUP (value, table, col_index, [range_lookup]) ARGUMENTS Value - the value that you want to search in the first column. Table - the range where you want to find the value. Col_index_num - the number of the column from which you want to fetch the matching value. Range_lookup - allows you to search for approximate or exact match. Set True for approximate and False for exact. LIMITATIONS OF VLOOKUP 1. It can only look values at the columns to the right. 2. It will only retrieve the data of the first value if the columns contain duplicate values. 3. It is not case sensitive. 4. It uses approximate match by default. 5. Inserting a column in the vlook up table/range will cause incorrect results. VLOOKUP Sample Let's say you receive a list of all employees in your group who completed the annual mandatory training. You have 5 new m...