+ Reply to Thread
Results 1 to 8 of 8

Copy values from 1 sheet and paste into another while keeping a counter

  1. #1
    Registered User
    Join Date
    07-17-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    19

    Question Copy values from 1 sheet and paste into another while keeping a counter

    Hello all,

    I'm wondering how to copy values of cells in one column and pasting those values into another sheet while keeping a count. I've attached an example of what I'm looking for where the left side is what my file currently looks like, and the right side is what a new sheet would look like. Any help is much appreciated - thanks!

    example.xlsx
    Sorry, forgot to attach it the first time..
    Last edited by JaydenK; 08-06-2013 at 11:50 AM.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Copy values from 1 sheet and paste into another while keeping a counter

    No attachment...

  3. #3
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Copy values from 1 sheet and paste into another while keeping a counter

    JaydenK,

    The attachment is missing, so there is currently no example file to look at.
    However, here is some generic code (with comments) that will perform as requested and hopefully you can adapt it to your needs:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy values from 1 sheet and paste into another while keeping a counter

    If the numbers in column A are consecutive, this should work.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-17-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Copy values from 1 sheet and paste into another while keeping a counter

    tigeravatar, thanks for the code!

    A833, if the column I'm collecting numbers from isn't the next one (B in the example), would I be changing this part of the code?
    Please Login or Register  to view this content.
    Thanks for the help!

  6. #6
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Copy values from 1 sheet and paste into another while keeping a counter

    JaydenK,

    Updated code to work with your sample file:
    Please Login or Register  to view this content.

  7. #7
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy values from 1 sheet and paste into another while keeping a counter

    These two lines of the code refer to column B.
    Please Login or Register  to view this content.
    So, 2, refers to column B. All you have to do is change that number to what ever column B is replaced by for.

  8. #8
    Registered User
    Join Date
    07-17-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Copy values from 1 sheet and paste into another while keeping a counter

    Thank you tigeravatar and AB33, I tried both codes and they're both great!

+ 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. Macro to copy sheet(s) and paste as values only
    By Greed in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-05-2014, 12:32 PM
  2. [SOLVED] should copy and paste the intersect values from sheet 1 to sheet 2
    By Apps in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 03-12-2013, 10:06 AM
  3. Conditional copy paste values to new sheet. (WB Attached)
    By Mayweed in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-08-2011, 09:59 AM
  4. copy paste values to a new sheet
    By rainbow_1985 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-19-2009, 01:49 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