+ Reply to Thread
Results 1 to 4 of 4

how to combine 2 cells and insert text only in some cases

Hybrid View

  1. #1
    Registered User
    Join Date
    07-20-2022
    Location
    New York, USA
    MS-Off Ver
    Home & Student 2019
    Posts
    13

    how to combine 2 cells and insert text only in some cases

    I'm trying to combine text in 2 cells if 2nd cell has data, insert a # symbol in the combined cell. I've watched a bunch of videos but haven't figured it out completely even though I imagine this is a simple issue. Hopefully, you can help me out with this. Thanks in advance!
    Attached Files Attached Files

  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
    48,313

    Re: how to combine 2 cells and insert text only in some cases

    Try:
    Formula: copy to clipboard
    =A6&IF(B6="",""," #"&B6)
    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
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,655

    Re: how to combine 2 cells and insert text only in some cases

    =TEXTJOIN(" #",,A6:B6)
    Try this formula
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  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
    48,313

    Re: how to combine 2 cells and insert text only in some cases

    Thanks for the rep.



    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. insert rows and insert text in the cells in the inserted row
    By James Keuning in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-04-2023, 02:15 PM
  2. Vba that moves cells with text, (up and to left, insert row/ insert copied cell)
    By sergi117 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-04-2018, 03:12 PM
  3. [SOLVED] Highlighting Cells Containing Similar cases Text ?
    By wiliam_s in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-29-2016, 09:41 AM
  4. Replies: 4
    Last Post: 11-17-2015, 12:07 AM
  5. Replies: 2
    Last Post: 04-08-2015, 08:10 AM
  6. Add cases opened and closed for each month and specifics about the cases.
    By ChrisLaRoc in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-04-2014, 08:19 PM
  7. [SOLVED] Need help to combine 5 difference cases in CONCATENATE formula
    By tuongtu3 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-27-2012, 05:52 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