+ Reply to Thread
Results 1 to 7 of 7

Copy Column Numbers only , keep formatting.

  1. #1
    Registered User
    Join Date
    03-30-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    38

    Copy Column Numbers only , keep formatting.

    Hi Guys,

    I am been working on the project for quite some time now, and it just doesnt seem to do what I want.

    I need to copy only numbers from Column G Sheet 6 to Column I in Sheet 4 in the same location, so if it finds a number in Sheet6!G11, it needs to be copied to Sheet4!I11 , and I would also like to keep destination format.

    Column G has empty cells and texts, but I need to copy only numbers, if it finds text in Sheet6 is it possible to skip it and leave what it is in Sheet4 ?

    Many thanks for any ideas.

    Aiva

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Copy Column Numbers only , keep formatting.

    Please Login or Register  to view this content.
    If you are happy with my response please click the * in the lower left of my post.

  3. #3
    Registered User
    Join Date
    03-30-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    38

    Re: Copy Column Numbers only , keep formatting.

    Thank you for your code, but it still copies text and formats,

    So for example in sheet 6 I have.
    A- -B
    1 TEXT1
    2 100%
    3 100%
    4 TEXT1

    and in SHeet 4

    A--B
    1 TEXT2
    2
    3
    4TEXT2



    So I the result would be

    A--B
    1 TEXT2
    2 100%
    3 100%
    4TEXT2

    and it would keep Sheet4 destination

    Many thanks,

    Aiva

  4. #4
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Copy Column Numbers only , keep formatting.

    Woops, I read your post wrong. I thought you wanted to maintain the source format. Sorry about that. Try this:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    03-30-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    38

    Re: Copy Column Numbers only , keep formatting.

    Thank you it works perfectly,

    Really appreciated

  6. #6
    Registered User
    Join Date
    03-30-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    38

    Re: Copy Column Numbers only , keep formatting.

    If you could also please let me know how do I change to one sheet .

    I would also like to copy the same principle from sheet6 column G to Column I .

    Many thanks,

    Aiva

  7. #7
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Copy Column Numbers only , keep formatting.

    The sheets are set as variables (e.g. ws4 and ws6). If you want to copy and paste into a single worksheet only you simply code for that sheet in the destination range.

    For example this line sets the values in Sheet4 (ws4) to be equal to the values in Sheet6 (ws6).
    Please Login or Register  to view this content.
    If you want it all on sheet6 you would change ws4 to ws6

+ 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. Need formula to copy numbers from a column to another column based on a value
    By bluechip23 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-13-2015, 01:36 AM
  2. Replies: 3
    Last Post: 02-19-2014, 10:47 AM
  3. Replies: 2
    Last Post: 05-15-2013, 11:08 PM
  4. Formatting Phone Numbers in a column to be consistent
    By paunkst99 in forum Excel General
    Replies: 0
    Last Post: 04-22-2013, 09:58 AM
  5. Can't Sum Column Even After Formatting as Numbers
    By viet658 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-01-2013, 02:01 PM
  6. Replies: 2
    Last Post: 07-29-2010, 09:57 AM
  7. [SOLVED] large numbers not losing the end without formatting column
    By Kevin in forum Excel General
    Replies: 4
    Last Post: 09-14-2005, 05:05 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