+ Reply to Thread
Results 1 to 5 of 5

Concatenate and remove zeros from blank cells

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Concatenate and remove zeros from blank cells

    In the attached file I am trying to elminate the zeros from the list when I concatenate the list.

    JIm O
    Attached Files Attached Files
    Last edited by JO505; 01-01-2015 at 04:58 PM.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Concatenate and remove zeros from blank cells

    Try this...
    =TRIM(SUBSTITUTE(B2&" "&C2&" "&D2,"0",""))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Concatenate and remove zeros from blank cells

    Hi,

    One way,in F2 copied down

    Formula: copy to clipboard
    =B2&IF(C2<>0," "&C2&IF(D2<>0," "&D2,""),"")
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Re: Concatenate and remove zeros from blank cells

    Thanks to both of you,

    That is what I was looking for.

    Jim O

    As an aside, Richards formula will allow zeros as part of the desired value such as (H7 V0), where the substitute and trim option will show that value as (H7 V).
    Last edited by JO505; 01-01-2015 at 05:34 PM.

  5. #5
    Registered User
    Join Date
    07-09-2019
    Location
    United State
    MS-Off Ver
    2019
    Posts
    53

    Re: Concatenate and remove zeros from blank cells

    THANK YOU!!! This helped me soooo much!!!

+ 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. Remove CHAR(10) blank from CONCATENATE formula
    By OLLY-7 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 08-06-2023, 01:44 AM
  2. [SOLVED] Concatenate If Blank - remove blank line if first cell is blank
    By ker9 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-27-2014, 02:14 PM
  3. Concatenate VBA Macro that excludes duplicates and zeros... 30+ cells of data
    By supernovanexus in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 01-20-2012, 01:23 AM
  4. Remove blank or zeros when transposing data
    By tuizner in forum Excel General
    Replies: 3
    Last Post: 03-14-2010, 05:55 AM
  5. Remove cells that contain zeros or are empty from 'pastelink'
    By jad70 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-08-2009, 09:48 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