Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • Last row number in range
  • How to reference named range different sheet in Excel
  • How to get last row in text data in Excel
  • To count total rows in a range in Excel
  • How to get last row in numeric data in Excel

Data Analysis Examples

  • How to Create Gantt Chart in Excel
  • How to add Trendline to a chart in Excel
  • How To Sort One Column or Multiple Columns in Excel
  • Add Outline to Data in Excel
  • Excel Pie Chart

Data Validation Examples

  • Excel Data validation number multiple 100
  • Excel Data validation whole percentage only
  • Excel Data validation must not contain
  • Excel Data validation require unique number
  • Excel Data validation don’t exceed total

Convert feet and inches to inches in Excel

by

To convert a measurement in feet and inches to inches only (i.e. 4’5″ to 53) you can use a formula based on several functions, including LEFT, FIND, MID, and SUBSTITUTE. See illustration below:

Formula

=LEFT(B5,FIND("'",B5)-1)*12+SUBSTITUTE
(MID(B5,FIND("'",B5)+1,LEN(B5)),"""","")

Explanation

In the example shown, the formula in D5 is:

=LEFT(B5,FIND("'",B5)-1)*12+SUBSTITUTE
(MID(B5,FIND("'",B5)+1,LEN(B5)),"""","")

How this formula works

In the first part of the formula, feet are extracted and converted LEFT and FIND like this:

=LEFT(B5,FIND("'",B5)-1)*12

Working from the inside out, FIND is used to locate the position of the single quote (‘) in the string. This number (minus one) goes into the LEFT function as the number of characters to extract. For cell B5, LEFT returns 8, which is then multiplied by 12 to get inches.

Worked Example:   Basic outline numbering in Excel

Note: LEFT will return text, but multiplying by 12 will covert the text a number.

In the second part of the formula, we extract the inches part of the text value with this:

SUBSTITUTE(MID(B5,FIND("'",B5)+1,LEN(B5)),"""","")

Here we again locate the position of the single quote (‘) in the string with FIND. This time however we add one, and feed the result into the MID function as the starting point for extracting characters.

Worked Example:   How to Separate Text Strings in Excel

For the number of characters to extract, we cheat and use the LEN function. LEN will return the total characters in B5, which is a larger number than exist after the single quote in the string. however, MID will simply extract all remaining characters. For B5, MID will return ” 4″””, which goes into the SUBSTITUTE function as text.

Worked Example:   Convert column letter to number in Excel

SUBSTITUTE is configured to look for a double quote (“”””) and replace with nothing (“”). In the case of B5, SUBSTITUTE returns ” 4″ as text, which is added to the feet number already determined. As before, the math operation converts the text a number, and Excel returns a final result of 100.

Other units

Once you have the measurement in inches, you can use the CONVERT function to convert to other units of measure.

Post navigation

Previous Post:

Change negative numbers to positive in Excel

Next Post:

Convert inches to feet and inches in Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others
  • SUBSTITUTE function: Description, Usage, Syntax, Examples and Explanation
  • How to convert numbers to text using TEXT function in Excel
  • How to check cell contains which things in Excel
  • How to count line breaks in cell in Excel worksheet
  • Split numbers from units of measure in Excel
  • Assign points based on late time in Excel
  • Convert date string to date time in Excel
  • Extract time from a date and time in Excel
  • WEEKNUM function: Description, Usage, Syntax, Examples and Explanation
  • List holidays between two dates in Excel
  • CUMIPMT function: Description, Usage, Syntax, Examples and Explanation
  • PMT, RATE, NPER, PV and FV Financial Functions in Excel
  • How to calculate Net Present Value (NPV) in Excel
  • ISPMT function: Description, Usage, Syntax, Examples and Explanation
  • DISC function: Description, Usage, Syntax, Examples and Explanation
© 2022 xlsoffice . All Right Reserved. | Teal Smiles