+ Reply to Thread
Results 1 to 3 of 3

How to apply multiple formatting in same cell for concatenated values

  1. #1
    Registered User
    Join Date
    02-11-2022
    Location
    Pittsburgh
    MS-Off Ver
    Windows 10
    Posts
    2

    Question How to apply multiple formatting in same cell for concatenated values

    Hi there.

    Complete newbie here and very much struggling.

    Need to concatenate the values of two columns in a newly created column. I need the values (text strings) to be on their own separate lines w/in the same cell. Additionally -- and here's where I'm super confused -- I need each row to be formatted differently.

    In the concatenated column (Column B), I need the top row (string from Column C) to have Calibri, Size 9, Bold, #4472C4 font. The bottom row (string from Column D) needs Calibri, Size 11 font.

    Basically, I'm pasting a cluster of cells from another Excel file into a new worksheet and organizing/formatting the cells in a certain style. I've been doing this manually, but seeing as some of these worksheets are hundreds of rows long, I'd like to learn how to automate this process.

    I've searched the forums here and I have seen that others have asked very similar questions and some lovely folks have provided snippets of code to add to macros. However, I am super super new to this world of macros (just realized their existed literally three days ago lol) and whenever I try to insert these snippets in the code, I obviously do it wrong and I get error messages and can't run the macro. I also can't figure out what I'm doing wrong.

    I can't tell if I want an event macro, or the ability to click on a button/press shortcut keys and have the macro run. I think I'd like the latter option.

    I've attached a sample excel file showing my attempt at concatenation, which I hope is helpful in illustrating my situation.

    Thank you for any help you could spare.
    Attached Files Attached Files

  2. #2
    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: How to apply multiple formatting in same cell for concatenated values

    Here's one macro

    It converts the formulae to values.

    Please Login or Register  to view this content.
    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.

  3. #3
    Registered User
    Join Date
    02-11-2022
    Location
    Pittsburgh
    MS-Off Ver
    Windows 10
    Posts
    2

    Re: How to apply multiple formatting in same cell for concatenated values

    Please forgive my ignorance ... but what does the "Next x" line mean? Also, where should I add this in the code?

    thanks.

+ 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. [SOLVED] How to count partial matches in single cell with multiple concatenated values?
    By therealdees in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-04-2021, 01:45 AM
  2. Lookup and return multiple values concatenated in one cell
    By jstanley41 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-14-2018, 03:12 PM
  3. Multiple values concatenated into one cell
    By brendanlowrywork in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-22-2017, 09:28 AM
  4. return multiple header cell values into one cell concatenated based on a cell value
    By anchuri_chaitanya in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-13-2016, 10:27 PM
  5. Lookup and return multiple values concatenated into one cell
    By funinsum in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-09-2015, 06:26 PM
  6. Lookup multiple values concatenated into one cell without duplicates
    By Atul Maskara in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-23-2013, 09:33 AM
  7. Replies: 10
    Last Post: 12-19-2012, 03:07 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