+ Reply to Thread
Results 1 to 2 of 2

Keep dynamic cell format in concatenation

Hybrid View

  1. #1
    Registered User
    Join Date
    03-14-2018
    Location
    US
    MS-Off Ver
    MS Office2013
    Posts
    1

    Keep dynamic cell format in concatenation

    Hello,

    I have a VBA code to concatenate several columns(Column D- Column G) to one column(Column C) and I want to keep original formats and contents. It works well except for numeric value.

    For example in my attached worksheet,

    Column D is a column for percentages. When I tried to concatenate it to my concatenation column, it lost its format(e.g.50% to 0.5). In my real work, columns will be added. Even if I use codes to format this column(Column D), it will have the same problem after new columns containing percentages are added. I cannot format all numeric value columns to percentages as well because I still have columns that contain normal number(like Column E) The ideal solution will be every time a cell is added to the concatenation, it will keep and original format and content but I don't know how to do it.

    Please let me know if any clarification is needed. Any help is appreciated!!!!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Keep dynamic cell format in concatenation


    Hi !

    Instead of Value cell property (0.5) use Text cell property (50%) …

+ 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] Format a cell for dynamic values
    By aquixano in forum Excel General
    Replies: 5
    Last Post: 04-08-2017, 11:12 AM
  2. [SOLVED] Format dynamic charts Dependent upon cell value
    By Lewster in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 10-12-2015, 06:41 PM
  3. [SOLVED] Format cell via code and make formatting dynamic
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 01-23-2015, 02:10 PM
  4. contionus concatenation every nth cell
    By wilso1050 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-23-2013, 04:46 PM
  5. Replies: 1
    Last Post: 09-27-2012, 02:12 PM
  6. [SOLVED] Excel 2007 : Format date within concatenation
    By jdfjab in forum Excel General
    Replies: 2
    Last Post: 05-08-2012, 12:10 PM
  7. [SOLVED] Date format and concatenation
    By Sandy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-28-2005, 01:05 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