+ Reply to Thread
Results 1 to 3 of 3

Concatenating with fixed widths despite number of integers in column A

  1. #1
    Registered User
    Join Date
    08-24-2015
    Location
    Raleigh, NC
    MS-Off Ver
    Office 360
    Posts
    4

    Concatenating with fixed widths despite number of integers in column A

    I need to concatenate three columns into one long string at fixed widths. The problem I am having is that column A are numbers 1-500, so that when I use this formula =concatenate(Sheet1!A1," ",Sheet1!B1," ",Sheet1!C1), numbers 1-9 are one space off from 10-99, and then 100-500 are again one space over, making my next task very tedious--the next task being separating all the data using the fixed width function (I've been manually doing 1-9, 10-99, and 100-500 as separate chunks).

    Column B is short text and column C is a long string of text at variable fixed widths. When I say variable fixed widths, I mean that some of the rows are at different fixed widths than the others.

    As you see in the formula above I tried adding extra spaces after the numeral to account for the different number of integers to no avail. I also tried formatting the numbers as "special" so that 1 was 00001, etc, but lost all the formatting when I concatenated.

    Thanks for any help!
    Chloe

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Concatenating with fixed widths despite number of integers in column A

    Try something like this:
    Please Login or Register  to view this content.
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    08-24-2015
    Location
    Raleigh, NC
    MS-Off Ver
    Office 360
    Posts
    4

    Re: Concatenating with fixed widths despite number of integers in column A

    Perfect. Thank you!

+ 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. Replies: 2
    Last Post: 05-21-2014, 12:59 PM
  2. [SOLVED] Fixed Cell Reference Minus a Fixed Number
    By juddykong in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-03-2013, 03:25 PM
  3. [SOLVED] User Form ListBox Column Widths - How to set widths for unknown number of columns
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-10-2013, 05:24 AM
  4. Exporting large number of columns along with 1 fixed column into separate text files
    By akshaynr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-13-2010, 11:08 AM
  5. [SOLVED] Format column Widths - Free and Fixed
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-11-2010, 01:09 PM
  6. fixed column, row number from another cell
    By atabdd in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-25-2007, 06:56 PM
  7. Date column changed to number format while concatenating
    By Biju Jacob in forum Excel General
    Replies: 1
    Last Post: 06-12-2006, 02:15 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