+ Reply to Thread
Results 1 to 8 of 8

Convert feet, inches, fractions to inches and decimals

  1. #1
    Registered User
    Join Date
    09-26-2008
    Location
    North Myrtle Beach
    MS-Off Ver
    365 Business
    Posts
    82

    Question Convert feet, inches, fractions to inches and decimals

    I need to create a macro that will convert feet, inches, fractions to inches and decimals. But, I need the "answer" to end up in the same cells where the current feet, inches and fractions reside. In attached sample, Column E, row 4-6, shows measurements in feet, inches fractions (0'-9 3/8"), sometimes there will be feet included instead of the "0'). I will also be deleting the first top two rows within the macro, so that can be done at the beginning of the macro or at the end. This is a very repetitive task that our CAD department works on so I will be creating a button for their toolbar that will initiate it.

    Any help you can give would be appreciated. Just the formula in excel alone is complicated enough, I am not even sure this can be accomplished.
    Attached Files Attached Files
    Last edited by bjohnsonac; 10-11-2016 at 12:37 PM. Reason: Solved

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Convert feet, inches, fractions to inches and decimals

    Try this:

    Please Login or Register  to view this content.
    Select the cells to convert, then run the macro 'ConvertSelectionToInches'
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    09-26-2008
    Location
    North Myrtle Beach
    MS-Off Ver
    365 Business
    Posts
    82

    Re: Convert feet, inches, fractions to inches and decimals

    Thank you! ALMOST there That works perfect, until one of the cells does not include a fraction, then it bugs out. (3'-6").

  4. #4
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Convert feet, inches, fractions to inches and decimals

    Okay, changed slightly:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-26-2008
    Location
    North Myrtle Beach
    MS-Off Ver
    365 Business
    Posts
    82

    Talking Re: Convert feet, inches, fractions to inches and decimals

    Perfecto! Thank you so much!!

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: Convert feet, inches, fractions to inches and decimals

    Go metric

  7. #7
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Convert feet, inches, fractions to inches and decimals

    Quote Originally Posted by bjohnsonac View Post
    Perfecto! Thank you so much!!
    Happy to help

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. You can also 'Add Reputation' to those who have provided help. Thanks.

  8. #8
    Registered User
    Join Date
    05-06-2015
    Location
    Texas
    MS-Off Ver
    2010
    Posts
    1

    Re: Convert feet, inches, fractions to inches and decimals

    Not sure if I should have started a new thread. I have numerous feet, inches & fraction strings that have extra blank spaces between the (feet and inches) and also between the (inches and fractions). I need to trim these out of the mid section. Any suggestions. Your code works excellent other than that.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Convert Feet and Inches (Fractions) to Decimal Feet
    By kellser in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-29-2022, 10:15 AM
  2. formula to convert cell numbers in inches and feet: 1'2" to decimals
    By ihill in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-16-2015, 09:45 AM
  3. Convert inches to feet and inches
    By emkramp in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-30-2013, 10:39 AM
  4. Convert feet and inches to inches
    By shernandez in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 11-16-2012, 05:41 PM
  5. [SOLVED] Convert feet and inches to just inches
    By mrr2 in forum Excel General
    Replies: 2
    Last Post: 06-09-2012, 11:57 AM
  6. [SOLVED] is there a macro that will convert from inches to feet and inches
    By cable guy in forum Excel General
    Replies: 1
    Last Post: 06-20-2005, 03:05 PM
  7. Convert decimals to feet / inches in excel
    By rk@morsesteel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-18-2005, 01:06 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1