+ Reply to Thread
Results 1 to 14 of 14

HELP to find the difference between two lengths in feet and decimal inches format

  1. #1
    Registered User
    Join Date
    08-20-2015
    Location
    Louisiana
    MS-Off Ver
    2010
    Posts
    6

    HELP to find the difference between two lengths in feet and decimal inches format

    First off, I'm new here. I'm not positive I worded the title well enough to understand my issue. I have attached a spreadsheet to show what I'm looking for. I currently have a spreadsheet with two columns. Our target draft listed in ft and inches (11' 5"), and our actual draft listed in ft and decimal inches (11' 0.547"). I need to find the difference between the two values in inches. in the sample spreadsheet I have highlighted the 3 columns I'll be working with. I need to subtract the figures in column M from the figures in column F. I have tried to research and find a way to do this and I just cannot seem to make this work. Any help would be GREATLY appreciated.

    Thanks,
    Lauren
    Attached Files Attached Files
    Last edited by lbourgeois; 08-20-2015 at 02:50 PM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: HELP to find the difference between two lengths in feet and decimal inches format

    Some awkward little " ' in there. try this to transform column F into inches:

    =IF(F2="","",LEFT(F2,FIND("'",F2)-1)*12+LEFT(MID(F2,FIND("'",F2)+1,255),LEN(MID(F2,FIND("'",F2)+1,255))-1))

    and this to transform actual draft to inches:
    =IF(M2="","",LEFT(M2,FIND("’",M2)-1)*12+SUBSTITUTE(MID(M2,FIND("’",M2)+1,255),"”",""))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    08-20-2015
    Location
    Louisiana
    MS-Off Ver
    2010
    Posts
    6

    Re: HELP to find the difference between two lengths in feet and decimal inches format

    Thanks Glenn. It worked for transforming column F to inches but it didn't work for column N.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: HELP to find the difference between two lengths in feet and decimal inches format

    Can you explain what you mean by £it didn't work" for column N?

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: HELP to find the difference between two lengths in feet and decimal inches format

    I had a wee concern that it might break down for M... some unusual character symbols.

    try this, instead:

    =IF(M2="","",LEFT(M2,FIND("’",M2)-1)*12+LEFT(MID(M2,FIND("’",M2)+1,255),LEN(MID(M2,FIND("’",M2)+1,255))-1))

  6. #6
    Registered User
    Join Date
    08-20-2015
    Location
    Louisiana
    MS-Off Ver
    2010
    Posts
    6

    Re: HELP to find the difference between two lengths in feet and decimal inches format

    THAT WORKED!!Thanks a million!

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: HELP to find the difference between two lengths in feet and decimal inches format

    Here's an alternative:
    Column M =IF(M2="","",LEFT(M2,FIND(CHAR(146),M2)-1)*12+SUBSTITUTE(MID(M2,FIND(CHAR(146),M2)+1,255),CHAR(148),""))
    Column F =IF(F2="","",LEFT(F2,FIND(CHAR(39),F2)-1)*12+SUBSTITUTE(MID(F2,FIND(CHAR(39),F2)+1,255),CHAR(34),""))

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: HELP to find the difference between two lengths in feet and decimal inches format

    Oh good - the approach at Post 5 worked for you!! You can try/ignore the alternatives suggested at Post 7, as you wish.

    Anyhow, glad to have helped! If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.

  9. #9
    Registered User
    Join Date
    08-20-2015
    Location
    Louisiana
    MS-Off Ver
    2010
    Posts
    6

    Re: HELP to find the difference between two lengths in feet and decimal inches format

    Glenn, so sorry but when I went to use the formula in my spreadsheet it only worked for about 5 rows and then it gave me the value error. I've attached an updated spreadsheet that is the actual spreadsheet I work from. any thoughts?

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: HELP to find the difference between two lengths in feet and decimal inches format

    Hi. How are the data in P being entered? If you look closely at the feet symbol - there are TWO different symbols in use!! That's what's causing the problem. The feet symbol in P1162 is not the same as P 1163. Is this being manually entered, or what??

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: HELP to find the difference between two lengths in feet and decimal inches format

    Is there ALWAYS a space between the feet and the inches in column P??

  12. #12
    Registered User
    Join Date
    08-20-2015
    Location
    Louisiana
    MS-Off Ver
    2010
    Posts
    6

    Re: HELP to find the difference between two lengths in feet and decimal inches format

    I see what you mean! The info in column F is sent to me and is copied and pasted into the spreadsheet. The info in Q is sometimes entered manually and sometimes copied and pasted from an email. Thus creating slightly differentiating apostrophes. I will try and make them all consistent and see if that resolves my issue! Thanks for the catch and I'll revert with an update.

  13. #13
    Registered User
    Join Date
    08-20-2015
    Location
    Louisiana
    MS-Off Ver
    2010
    Posts
    6

    Re: HELP to find the difference between two lengths in feet and decimal inches format

    THAT SOLVED IT! You're a lifesaver.

  14. #14
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: HELP to find the difference between two lengths in feet and decimal inches format

    Are you doing that consistency check manually? If so, we can get Excel to do it for you. Let me know.

+ 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 to decimal feet
    By hrg in forum Excel General
    Replies: 12
    Last Post: 04-11-2016, 05:19 PM
  2. Convert Feet and inches to decimal feet
    By Laserdude in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-05-2014, 12:10 AM
  3. [SOLVED] Feet in decimal form to feet/inches
    By devpatel85 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-26-2013, 10:18 AM
  4. Convert Decimal Feet to Feet and Inches
    By Surveyour in forum Excel General
    Replies: 6
    Last Post: 10-17-2013, 12:48 PM
  5. Conversions of Decimal Feet to Decimal Inches - Formula??
    By shubhamdev in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-15-2012, 01:27 PM
  6. Conversions of Decimal Feet to Decimal Inches - Formula??
    By shubhamdev in forum Excel General
    Replies: 2
    Last Post: 04-15-2012, 03:57 AM
  7. How do i convert feet and inches to a decimal value?
    By go_chrisg in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-22-2005, 12:06 PM

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