+ Reply to Thread
Results 1 to 7 of 7

Sorting and Copying to a new sheet based on values

Hybrid View

  1. #1
    Registered User
    Join Date
    09-15-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel Mac 2011
    Posts
    10

    Lightbulb Sorting and Copying to a new sheet based on values

    Morning All,

    I have a worksheet that contains grades for a group of students called "Grade Reading"

    What i need to do is have a macro or formula that will sort the data based on column L.

    Then copy the ID in column H from "Grade Reading" and paste it into a new sheet based on the value of column L "Grade Reading".

    Then to add another layer colour code the cell based on the growth in colum O from "Grade Reading" in the new sheet.

    ANy help would be awesome
    Attached Files Attached Files
    Last edited by Jacko2stars; 09-04-2017 at 09:10 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    02-04-2009
    Location
    Texas
    MS-Off Ver
    Excel 2016
    Posts
    667

    Re: Sorting and Copying to a new sheet based on values

    Without a macro - I would add a column A:A with Rank() to rank L
    Then on the New sheet number Column A:A 1,2,3..... and use VLookup() to return what you want. In this case Vlookup(Ax,Sheetname!$A$1:$L$500,8,False) where Ax x=row number Sheetname! is your sheetname Sheet1! or Grades! and 500 is the last row of your data

  3. #3
    Registered User
    Join Date
    09-15-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel Mac 2011
    Posts
    10

    Re: Sorting and Copying to a new sheet based on values

    Hi Crimedog,

    Thanks for your reply.

    I have placed the formula as suggested (i think). Not sure what to do next though.

    Any help would be great.

    Cheers.

    I have attached the changed document
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    19,033

    Re: Sorting and Copying to a new sheet based on values

    If I understand correctly then sheet1 of the attached file does what you want.
    The student's ID is placed using the formula: =IF(B$1='Grade Reading '!$F2,'Grade Reading '!$A2,"")
    Three formulas set the rules for the conditional formatting.
    Green: =AND(B3<>"",$A3-B$1>0.5)
    Amber: =AND(B3<>"",$A3-B$1=0.5)
    Red: =AND(B3<>"",$A3-B$1<0.5)
    Note: Row 1 of sheet 1 may be hidden for aesthetic purposes.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    09-15-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel Mac 2011
    Posts
    10

    Re: Sorting and Copying to a new sheet based on values

    Thanks JeteMc,

    Awesome work!

    Is it in anyways possible to have the ids listed from the top down?

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    19,033

    Re: Sorting and Copying to a new sheet based on values

    Not sure that I understand what you mean by 'top down', however if you mean in alphabetical order then sort either column D or K of the Grade Reading sheet in ascending order. The change should carry over to Sheet 1, or at least it did when I tested with the file attached to post #4.
    Let us know if you have any questions.

  7. #7
    Registered User
    Join Date
    09-15-2012
    Location
    Melbourne, Australia
    MS-Off Ver
    Excel Mac 2011
    Posts
    10

    Re: Sorting and Copying to a new sheet based on values

    Sorry,

    Is it possible to fill to have the ids start in the top row under the heading for each score.

    So it forms a sort of a bell curve graph?

+ 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. copying specific columns from one sheet to another based on look up values
    By manojuasc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-30-2015, 03:30 PM
  2. [SOLVED] Copying values to 2nd sheet based on specific changing circumstances.
    By markDuffy in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 04-23-2015, 11:31 AM
  3. Sorting/Copying from one sheet to another based on Employee Name
    By SmokiinAces in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-18-2015, 08:05 PM
  4. [SOLVED] Copying and sorting from one sheet to another.
    By mtouhig in forum Excel General
    Replies: 3
    Last Post: 08-23-2014, 12:30 PM
  5. Copying & Sorting Data from one sheet to another
    By nosikliw in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-15-2013, 12:34 PM
  6. Copying specific cell based on two parameters and then sorting based on one parameter
    By buntalan80 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-17-2012, 02:27 AM
  7. sorting a sheet and copying to new sheets
    By jjh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-24-2006, 02:35 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