+ Reply to Thread
Results 1 to 12 of 12

Bold certain text in concconate formula

  1. #1
    Registered User
    Join Date
    02-21-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    64

    Bold certain text in concconate formula

    Hi Team,

    Could you advise on, how to achive the desired results as below with the help of formula.

    Sl School Name Section First Name Last Name Formula Desired Results
    1 NPS A Jon Peter NPS-A Jon Peter NPS-A Jon Peter
    2 NLS B Andy Novel NLS-B Andy Novel NLS-B Andy Novel

    Attached sample excel for reference.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Bold certain text in concconate formula

    Only VBA can help. Do you want to use VBA?
    Quang PT

  3. #3
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,481

    Re: Bold certain text in concconate formula

    Anyway, here is VBA code:
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-21-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    64

    Re: Bold certain text in concconate formula

    Hi bebo021999,

    Truely amazing, I am getting desired results, Thanks you very much, much appreciated.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,417

    Re: Bold certain text in concconate formula

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

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) 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 each of those who offered help.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  6. #6
    Registered User
    Join Date
    02-21-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    64

    Re: Bold certain text in concconate formula

    Hi Bebo021999,

    Could you create VBA with similar example
    Attachment 864191
    SL No Date Events Remarks 1 Remarks 2 Desired Results
    1 20-03-2024 Admission of Student A Annexure A Annexure - A Admission of Student A, dated 20-03-2024
    2 26-03-2024 Admission of Student C Annexure B Annexure - B Admission of Student C, dated 26-03-2024



    Attached sample excel for reference.

    Thanks in advance.

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Bold certain text in concconate formula

    You should just be able to swap around some of the elements within the code that bebo021999 suggested. Try this

    Please Login or Register  to view this content.
    Last edited by jeffreybrown; 03-26-2024 at 11:28 AM.
    HTH
    Regards, Jeff

  8. #8
    Registered User
    Join Date
    02-21-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    64

    Re: Bold certain text in concconate formula

    Hi Jeff, Thank you very much.

    it is appearing as below if i use your VBA code
    Annexure - A Admission of Student A, 20-03-2024

    however i need to prefix ", dated " before date, like below
    Annexure - A Admission of Student A, dated 20-03-2024

    Could you help me to write vba code...
    Thanks in advance

  9. #9
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Bold certain text in concconate formula

    Post # 7 updated. Please try the code there.

  10. #10
    Registered User
    Join Date
    02-21-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    64

    Re: Bold certain text in concconate formula

    Thank you very much for quick help, much appreciated.

  11. #11
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: Bold certain text in concconate formula

    You are very welcome and thank you for the feedback!

    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.

  12. #12
    Registered User
    Join Date
    02-21-2015
    Location
    London
    MS-Off Ver
    2010
    Posts
    64

    Re: Bold certain text in concconate formula

    Added reputation...

+ 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 bar text always bold?
    By deanusa in forum Excel General
    Replies: 3
    Last Post: 02-25-2018, 04:18 PM
  2. [SOLVED] SUM if Bold UDF to Ignore Bold Formatted Text
    By HangMan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-18-2015, 01:15 PM
  3. [SOLVED] How to bold the text in the formula?
    By mso3 in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 07-31-2014, 12:27 PM
  4. Using Bold and Italic on certain text in formula
    By pakida in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-27-2014, 07:53 PM
  5. Split cell - bold text and non bold text.
    By desertshift in forum Excel General
    Replies: 10
    Last Post: 11-21-2010, 08:13 PM
  6. Delete all text which is not 'bold' in cells with 'mingled bold' text
    By Excelfriend in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-23-2010, 04:47 PM
  7. Join bold and non-bold text in one cell
    By bkincaid in forum Excel General
    Replies: 3
    Last Post: 03-20-2006, 09:10 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