+ Reply to Thread
Results 1 to 2 of 2

Copy only visible values in column

  1. #1
    Registered User
    Join Date
    07-24-2007
    Location
    London, England
    MS-Off Ver
    Office 365 ProPlus
    Posts
    80

    Copy only visible values in column

    I have a spreadsheet containing a number of columns and around 500 rows of data two of the columns are 'train ID' and 'cost'. There are several entries for each 'train ID' so I want to group these together and get a total cost for each 'train ID'. Then sort these totals in order to give me the most expensive 'train ID' at the top running down to the least expensive at the bottom. I have sorted the data by 'train ID' then run subtotals to give me
    the total costs. However I want to now copy the list of totals (train ID & cost) onto another worksheet. If I copy the columns and then paste onto the other worksheet, all the hidden columns on the subtotal sheet appear aswell which is what I don't want. I have tried 'paste specials' and 'values'
    but this also shows the hidden data aswell. I only want the totals for each 'train ID and its associated 'costs'. I hope this makes sense. Any help would be appreciated. Kevin.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Press F5 > special > visible cells

    then copy and paste

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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