+ Reply to Thread
Results 1 to 17 of 17

Formula for transferring numbers from one column to a different column in ascending order

  1. #1
    Registered User
    Join Date
    07-17-2015
    Location
    Raleigh
    MS-Off Ver
    2007
    Posts
    8

    Formula for transferring numbers from one column to a different column in ascending order

    To all,

    Brand new here to I'm sorry for the possible silly questions to follow.

    I have built a spreadsheet for a British Open Golf Pool at my work. I need to figure out a way to transfer the information in the "Total" column (E Column) of my table in to the "Rankings" column (I Column) in ascending order. Each day of the golf tournament I will be changing the data in column E so a simple copy and paste is obviously not an option. Ideally, the corresponding team Name from Column B would transfer over as well perhaps to Column H but that might be too much to ask at the moment. My number ranges are from E3:E556 but there are only 70 filled numbers in that range due to the formatting.

    I hope this makes sense and that someone can help, I'm obviously lost! THanks so much guys and I have attached the file for further confirmation as it is a little hard to describe exactly what I have going on!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formula for transferring numbers from one column to a different column in ascending or

    I'm sure you may want more than this but this value in H3 copied down will give you the rank of each team

    =IF(ISNUMBER(E3), RANK([@TOTAL],[TOTAL],1),"")
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

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

  3. #3
    Registered User
    Join Date
    07-17-2015
    Location
    Raleigh
    MS-Off Ver
    2007
    Posts
    8

    Re: Formula for transferring numbers from one column to a different column in ascending or

    Chemist,

    Thanks so much for your prompt reply. I tried both copying that formula and manually entering it but an error code continued to pop up that the "name is not valid". I made sure to take out any spaces. Any recommendations?

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formula for transferring numbers from one column to a different column in ascending or

    Here's a workbook. In addition to the post above, I added a new sheet called Rankings where I used formulas to Rank the teams in order.

    I am assuming that teams tied in rank share that number and next lower number is skipped (i.e. if there's 2 2nd places, next person is 4th)
    In Entries-Table 1, I made a key to give unique values to all ranks by using this formula in G2 copied down

    =IF(ISNUMBER([@TOTAL]), RANK([@TOTAL],[TOTAL],1)&"_"& COUNTIF($E$2:$E2,VALUE(E2)),"")

    Then in RANKING
    Score in C2 copied down
    =IFERROR(SMALL(Entries[TOTAL],ROWS($A$1:$A1)),"")

    Rank in A2 copied down
    =IFERROR(RANK(C2,$C$2:$C$80,1),"")

    TEAM in B2 copied down
    =IFERROR(INDEX(Entries[TEAM NAME],MATCH(A2&"_" &COUNTIF($A$2:$A2,A2), Entries[Column2],0)),"")
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    06-05-2015
    Location
    Manchester, UK
    MS-Off Ver
    2016
    Posts
    94

    Re: Formula for transferring numbers from one column to a different column in ascending or

    Is this what you're looking for? It's a kind of messy solution with quite a few hidden helper columns but it does return the correct ranking.

    British Open Pool Entries.xlsx

  6. #6
    Registered User
    Join Date
    06-05-2015
    Location
    Manchester, UK
    MS-Off Ver
    2016
    Posts
    94

    Re: Formula for transferring numbers from one column to a different column in ascending or

    I've gone for a similar solution to ChemistB it seems, but I've assumed that if you have 3 people in 2nd place for example, the one after would be 3rd place.

  7. #7
    Registered User
    Join Date
    07-17-2015
    Location
    Raleigh
    MS-Off Ver
    2007
    Posts
    8

    Re: Formula for transferring numbers from one column to a different column in ascending or

    wow guys, thank you so much. This is way advanced stuff that I have been trying to figure out on youtube. Ya'll are amazing! Makes my life so much easier and Works like a charm!

    If I can be extra greedy and ask another question, no worries if you guys don't wanna do this cuz you've already helped more than you know. On my second sheet with my players table. I am manually inputting the scores after each day. How do I create a formula to have those numbers transfer to the corresponding names on the first sheet? So when I input Tiger Woods' score in sheet 2, his score will pop into sheet 1 column D "Scores" wherever his name is typed in?

    THANK YOU!!!!

  8. #8
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formula for transferring numbers from one column to a different column in ascending or

    You can use a VLOOKUP

    To make it easier, I converted the data on Players-Table 1 into an actual table (Insert> Table) called "Table"
    Then under Scores in Entries-Table 1
    =VLOOKUP([@Players], Table, 2, FALSE)

    WARNING: I noticed that some of the scores that were in Entries are not the same as those in Players sheet., i.e Jim Furyk. Also some return errors because you spelled them differently, i.e Russel Henley

  9. #9
    Registered User
    Join Date
    07-17-2015
    Location
    Raleigh
    MS-Off Ver
    2007
    Posts
    8

    Re: Formula for transferring numbers from one column to a different column in ascending or

    Chemist you are the man! I converted the information into a Table named "Table" and checked all the spellings and scores. I went in to the Scores column to enter the formula and for some reason it still gives me the error code. I tried a few things to manipulate the formula but I don't know if it is because of my excel version or what.

    Sorry to be such a pain!

  10. #10
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formula for transferring numbers from one column to a different column in ascending or

    Can you upload a new workbook with the error in it?

  11. #11
    Registered User
    Join Date
    07-17-2015
    Location
    Raleigh
    MS-Off Ver
    2007
    Posts
    8

    Re: Formula for transferring numbers from one column to a different column in ascending or

    Absolutely, I put the formula in the first spot in SCORES in Entries - Table 1.
    Attached Files Attached Files

  12. #12
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formula for transferring numbers from one column to a different column in ascending or

    Your table isn't formatted as a table by Excel. Therefore it doesn't understand what [@[Players] means.

    Select your data and go to Insert tab > Table check that it has headers. That should fix your problem

  13. #13
    Registered User
    Join Date
    07-17-2015
    Location
    Raleigh
    MS-Off Ver
    2007
    Posts
    8

    Re: Formula for transferring numbers from one column to a different column in ascending or

    Chemist thanks again for your help. Took your advice, made sure there were headers and renamed the table "Results". After looking in the formula helper it suggested adding the quotes =VLOOKUP("[@Players]",Results,2,FALSE) The system now takes the formula but spits out a #N/A into the cell.
    Attached Files Attached Files

  14. #14
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formula for transferring numbers from one column to a different column in ascending or

    When I said select the data, I meant the data in Entries. Also, you need to include the headers in your selection. So select A1:L576, Insert > Table
    Then take [@[players]] out of quotes and it should work fine.

  15. #15
    Registered User
    Join Date
    07-17-2015
    Location
    Raleigh
    MS-Off Ver
    2007
    Posts
    8

    Re: Formula for transferring numbers from one column to a different column in ascending or

    I don't know if I am just excel handicapped or what but i can't get it to work. I went through the help section and looked online also after following your instructions. You've taken a lot of time to help me and I really appreciate it. Is it possible for you to go in there and try to fix it and attach the file for me? Sorry Chemist I just can't get it to work!
    Attached Files Attached Files

  16. #16
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Formula for transferring numbers from one column to a different column in ascending or

    Okay, I replaced
    '=VLOOKUP([@Players],Table,2,FALSE) with
    =VLOOKUP([@Players],Results,2,FALSE)
    I copied the formula down into all the right rows (skipping the rows between teams)
    You have 3 names that give errors because they are not on your Players sheet.
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    07-17-2015
    Location
    Raleigh
    MS-Off Ver
    2007
    Posts
    8

    Re: Formula for transferring numbers from one column to a different column in ascending or

    Thanks a million Chemist!! Hopefully I can start to gain a little more knowledge for the future from what you've provided me with. Have a good weekend!

+ 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. [SOLVED] Find column location by header and then sort rows below it be ascending order
    By Boo123 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-04-2015, 11:58 AM
  2. Transferring a column of numbers to a vertical string
    By shellsbells in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-24-2012, 01:20 PM
  3. How to add ascending numbers after finding last row of data in adjacent column
    By Emmaly in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2012, 10:25 AM
  4. sorting numbers into ascending order
    By stevy123 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 04-03-2012, 08:00 AM
  5. How to get a column of numbers in ascending order?
    By walrasianxl in forum Excel General
    Replies: 2
    Last Post: 09-14-2010, 08:59 AM
  6. Formula to Copy Column and Paste in new Worksheet in Ascending Order
    By drew4 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-02-2010, 10:19 AM
  7. Replies: 1
    Last Post: 05-11-2010, 08:56 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