+ Reply to Thread
Results 1 to 6 of 6

Length and width from four columns to one

  1. #1
    Registered User
    Join Date
    02-19-2013
    Location
    New York, New York
    MS-Off Ver
    Excel 2011
    Posts
    3

    Length and width from four columns to one

    Hi all,

    I've recently come upon a spreadsheet that has four columns thus: width feet, width inches, length feet, length inches. There is a fifth column with the length and width formatted traditionally (x'y" x a'b"). Is there a formula I could put in the fifth column ("Size" below) to just grab the data from the other four and put it in the right format? Thank you and let me know if this isn't clear.

    Width (ft) Width (in) Length (ft) Length (in) Size
    4 7 6 10 4'7" x 6'10"
    2 10 7 3 2'10" x 7'3"
    2 11 7 2 2'11" x 7'2"
    8 0 10 6 8' x 10'6"
    14 3 16 11 14'3" x 16'11"
    2 1 3 1 2'1" x 3'1"

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Length and width from four columns to one

    Try:

    Cell E2: =A2&"'"&IF(B2<>0,B2&"""","")&" x "&C2&"'"&IF(D2<>0,D2&"""","") and drag down


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    02-19-2013
    Location
    New York, New York
    MS-Off Ver
    Excel 2011
    Posts
    3

    Re: Length and width from four columns to one

    TMS,

    Thank you, that's a beautiful formula, it works perfectly.

    Chris

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Length and width from four columns to one

    You're welcome.


    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

  5. #5
    Registered User
    Join Date
    02-19-2013
    Location
    New York, New York
    MS-Off Ver
    Excel 2011
    Posts
    3

    Re: Length and width from four columns to one

    Thank you again! That's good to know.

    Cheers,
    Chris

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,464

    Re: Length and width from four columns to one

    Again, you're welcome. Thanks for the rep.

    You're table showed an example of "not showing inches" ... so that's what I did

    Cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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