+ Reply to Thread
Results 1 to 6 of 6

Add cell value to correct list in another Sheet

  1. #1
    Registered User
    Join Date
    06-06-2013
    Location
    Cambridge,England
    MS-Off Ver
    Excel 2010
    Posts
    15

    Add cell value to correct list in another Sheet

    I have a list of Grades (Job Description). Each of them is allocated a SCH No = SCH1 / SCH2 etc
    I need a macro that will go through this list and copy the Grade into the correct SCH Column on Sheet List2.
    The columns in List 2 then need to be sorted A-Z.



    Thanks.
    DK




    AddNamestolist.xlsx

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Add cell value to correct list in another Sheet

    Hi,

    You don't necesarily need a macro when a standard VLOOKUP will do the job. i.e. A2 in List2 copied across

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If you really do need a macro then just get the macro to create this formula and copy it across.

    Similarly with the sort. Just select all the data in list 2 and pick the Sort Left to Right in the sort Options.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Valued Forum Contributor Hawkeye16's Avatar
    Join Date
    02-27-2013
    Location
    Holland
    MS-Off Ver
    ├•┤ Pew Pew
    Posts
    441

    Re: Add cell value to correct list in another Sheet

    I just recorded the sort macro but this should get you what you want I think. It sorts the names and then just uses an array formula to pull the correct stuff into the List2 tab.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-06-2013
    Location
    Cambridge,England
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Add cell value to correct list in another Sheet

    Hi Hawkeye

    This works. I've tried moving this across into the format/positions that I actually have for the data and it's now not working. I suspect it's because my actual layout doesn't start on A1. Could you kindly look at and see if there is a solution.

    DK




    AddNamestolist2-coded.xlsm

  5. #5
    Valued Forum Contributor Hawkeye16's Avatar
    Join Date
    02-27-2013
    Location
    Holland
    MS-Off Ver
    ├•┤ Pew Pew
    Posts
    441

    Re: Add cell value to correct list in another Sheet

    Put this in A5 on List2 and press CTRL + SHIFT + ENTER. Then you can just copy over and down.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    *You may need to replace the ; with , depending on your excel setup.

  6. #6
    Registered User
    Join Date
    06-06-2013
    Location
    Cambridge,England
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: Add cell value to correct list in another Sheet

    Hi Hawkeye

    That works great.
    Thanks
    DK

+ 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. Adding a date to the bottom of a list and finding the correct cell
    By nappy1001 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-05-2014, 04:48 AM
  2. Not getting the correct cell from another sheet to return
    By jhaywood02 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-22-2014, 05:01 PM
  3. [SOLVED] script to selecting correct sheet calculated via cell formula
    By Kramxel in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-17-2013, 09:42 AM
  4. Replies: 1
    Last Post: 08-13-2012, 11:18 AM
  5. Replies: 5
    Last Post: 09-22-2011, 07:28 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