+ Reply to Thread
Results 1 to 5 of 5

Concatenate formula to skip blank cells

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    California
    MS-Off Ver
    Excel 2013
    Posts
    6

    Concatenate formula to skip blank cells

    Is there a way to skip blank cells in a concatenate formula? I'm not using macros and prefer not to jump into that if possible. Thanks in advance!

    Here is my formula:

    =CONCATENATE(TEXT(Timecard!J12,"h:mm AM/PM;@"),"-",TEXT(Timecard!J17,"h:mm AM/PM;@"))

    **Where "Timecard!J12" and "Timecard!J17" are blank cells

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Concatenate formula to skip blank cells

    Try using Textjoin instead.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    04-18-2013
    Location
    California
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: Concatenate formula to skip blank cells

    Hi mehmetcik,

    Thanks for the response. I tried using Textjoin but it's giving me the same result.

    =TEXTJOIN("-",,TEXT(Timecard!M12,"H:MM AM/PM"),TEXT(Timecard!M17,"H:MM AM/PM"))

    Produces: 12:00 AM- 12:00 AM

    Even though the cells M12 and M17 are blank

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Concatenate formula to skip blank cells

    You'd need to use IF statements prior to converting cells to time text.

    =TEXTJOIN("-",,IF(ISBLANK(Timecard!M12),"",TEXT(Timecard!M12,"H:MM AM/PM")),IF(ISBLANK(Timecard!M17),"",TEXT(Timecard!M17,"H:MM AM/PM")))
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    04-18-2013
    Location
    California
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: Concatenate formula to skip blank cells

    Thank you! Got it!

+ 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. Formula to skip blank cells
    By Sthomson1984 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-19-2017, 05:20 AM
  2. [SOLVED] Help with an array formula to skip blank cells.
    By thianphat in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-28-2015, 04:34 PM
  3. Fill Down Formula, but skip blank cells
    By jmo1112 in forum Excel General
    Replies: 3
    Last Post: 02-21-2015, 02:22 AM
  4. How to skip blank cells and use formula
    By emp2013 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-16-2014, 08:56 PM
  5. Concatenate, Skip Blanks and Carriage Return only after non-blank
    By GTide in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-14-2014, 05:08 PM
  6. [SOLVED] How to concatenate text cells but skip blank cells
    By jontherev in forum Excel General
    Replies: 5
    Last Post: 03-26-2014, 05:38 PM
  7. A Formula to skip blank cells (array?)
    By nemo74 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-16-2013, 12:44 PM

Tags for this Thread

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