+ Reply to Thread
Results 1 to 5 of 5

Combine text space problem

  1. #1
    Forum Contributor
    Join Date
    08-01-2012
    Location
    rotterdam, holland
    MS-Off Ver
    Excel 2013
    Posts
    170

    Combine text space problem

    In F2 there is a space in the beginning of the name because theres no value in B2. The rest works, but just the beginning of the name has a space. I made this formula, but it doesnt seem to work. Any way it works for both rows 2 and 3? Thanks!
    =IF(B2<>"",""&B2,"")& IF(C2<>""," "&C2,"") & IF(E2<>""," "&E2,"") & IF(A2<>""," "&A2,"")

    Space.xlsx

  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: Combine text space problem

    try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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
    Forum Contributor
    Join Date
    08-01-2012
    Location
    rotterdam, holland
    MS-Off Ver
    Excel 2013
    Posts
    170

    Re: Combine text space problem

    Works as a charm, thanks +rep

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Combine text space problem

    Hi,

    Am I missing something or can you not just use:

    =TRIM(B2&" "&C2&" "&E2&" "&A2) ?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  5. #5
    Forum Contributor
    Join Date
    08-01-2012
    Location
    rotterdam, holland
    MS-Off Ver
    Excel 2013
    Posts
    170

    Re: Combine text space problem

    Your right, shorter formula, thanks! +rep

+ 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: 4
    Last Post: 09-26-2013, 04:15 PM
  2. Replies: 4
    Last Post: 07-25-2013, 05:28 AM
  3. [SOLVED] How to separate last combine characters which is separated by space
    By nur2544 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-08-2013, 10:20 AM
  4. Combine multiple rows into one and seprate columns by space deliminator
    By ahad_bwp in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-24-2012, 06:35 AM
  5. Cell wrap text: Some cells have blank white space above text
    By stuckagain in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 06-09-2009, 06:47 AM

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