+ Reply to Thread
Results 1 to 5 of 5

Data Sort Error

  1. #1
    Registered User
    Join Date
    03-26-2015
    Location
    Aberdeen
    MS-Off Ver
    2010
    Posts
    9

    Data Sort Error

    Hi all,

    I have a basic report to work with which covers all employees training taken and needed. I want a quick way of sorting the report by employee no (col A) then expiry date (col g) which would be simple but the employee no is only on the first line then the training lists beneath it and there are over 500 employees its a lot of data to manually sort.

    Is there a way to do this quickly? or to auto fill every row beneath the employee no until it reaches a new one?

    I've attached a sample of the data as I probably haven't been very clear.

    Appreciate any help on this one!

    T
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Data Sort Error

    This code will populate the Employee Number in all of the blank ones.

    Please Login or Register  to view this content.
    You can then sort them as you want.
    If someone has helped you then please add to their Reputation

  3. #3
    Registered User
    Join Date
    06-08-2012
    Location
    Liverpool
    MS-Off Ver
    Office 365
    Posts
    84

    Re: Data Sort Error

    Try adding a helper column to the right of Column A and give it a header such as Emp Number. Then add
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    to cell B3 and
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    to B4.

    Copy this formula down and then sort Custom Sort by B and G

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,645

    Re: Data Sort Error

    This will fill in the blanks in the Emp No. column.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  5. #5
    Registered User
    Join Date
    03-26-2015
    Location
    Aberdeen
    MS-Off Ver
    2010
    Posts
    9

    Re: Data Sort Error

    This worked perfectly - thank you!

+ 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. Replies: 1
    Last Post: 03-04-2015, 02:57 PM
  2. [SOLVED] Sort Macro Run-time error '1004': Application/Object-defined error.
    By sam1212 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-22-2014, 10:05 AM
  3. [SOLVED] [SOLVED]VBA Sort Error-runtime error 2147417848(80010108)
    By sureshtrb in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-30-2014, 12:59 PM
  4. [SOLVED] How to sort the data by item code first, then sort them by date?
    By Zecond in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-04-2013, 01:55 AM
  5. Replies: 4
    Last Post: 11-20-2012, 06:00 PM
  6. [SOLVED] error when trying to sort data.
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-30-2012, 07:24 PM
  7. [SOLVED] Pls. reply Sort Data and copy to next coulmn when sort order chang
    By shital shah in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2005, 10: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