+ Reply to Thread
Results 1 to 15 of 15

How to get the right numbers behind the right teams, from a sorted list.

  1. #1
    Registered User
    Join Date
    05-17-2020
    Location
    Heiloo, Nederland
    MS-Off Ver
    2007
    Posts
    32

    Question How to get the right numbers behind the right teams, from a sorted list.

    Good evening (it's evening here, anyway...)

    I've got a question because I can't solve the issue. I got quite far, but I can't get it to the end, so I am hoping for your help.

    In the excelsheet added to this post, there's a list of numbers, sorted from low to high, with next to it the Formula 1-team the driver using that starting number is using. Now I am looking to find a way to get the starting numbers behind the team, in order from low to high (second example, left from the list). I entered the numbers by hand, but I am looking for a way to do that automatically, because not every driver enlisted is always present. So... how to do it?

    I don't care how many steps it will take, I have room enough in Excel, so even if it takes 30 steps, I don't really care... as long as it works.

    Thanks in advance for the help.

    Daniël.
    Attached Files Attached Files
    Last edited by Daniel-1973; 10-24-2020 at 12:46 PM. Reason: Title changed.
    Thank you for your helpful answer.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,687

    Re: How to do this...

    Please update your thread title to explain what the issue is, as per the forum rules.

    No help to be offered until this has been done.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    05-17-2020
    Location
    Heiloo, Nederland
    MS-Off Ver
    2007
    Posts
    32

    Re: How to do this...

    Quote Originally Posted by AliGW View Post
    Please update your thread title to explain what the issue is, as per the forum rules.

    No help to be offered until this has been done.
    Done. My apologies.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,075

    Re: How to get the right numbers behind the right teams, from a sorted list.

    How about in F2 copied down & across
    =IFERROR(SMALL(IF($B$2:$B$23=$D2,$A$2:$A$23),COLUMNS($F2:F2)),"")

    This needs to be confirmed with Ctrl Shift Enter, not just Enter.
    Also the teams in col D need to match the teams in col B

  5. #5
    Registered User
    Join Date
    05-17-2020
    Location
    Heiloo, Nederland
    MS-Off Ver
    2007
    Posts
    32

    Re: How to get the right numbers behind the right teams, from a sorted list.

    Quote Originally Posted by Fluff13 View Post
    How about in F2 copied down & across
    =IFERROR(SMALL(IF($B$2:$B$23=$D2,$A$2:$A$23),COLUMNS($F2:F2)),"")

    This needs to be confirmed with Ctrl Shift Enter, not just Enter.
    Also the teams in col D need to match the teams in col B
    Thanks for the suggestion. Sadly, all I get is '7's... 30 of them. And yes, I changed the names of the teams to match.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,687

    Re: How to get the right numbers behind the right teams, from a sorted list.

    Did you enter the formula with CSE as instructed? Sounds unlikely.

  7. #7
    Registered User
    Join Date
    05-17-2020
    Location
    Heiloo, Nederland
    MS-Off Ver
    2007
    Posts
    32

    Re: How to get the right numbers behind the right teams, from a sorted list.

    Quote Originally Posted by AliGW View Post
    Did you enter the formula with CSE as instructed? Sounds unlikely.
    I did. Now I see what is happening. All 30 formulae are the same (i.e. the last 'F2' doesn't change in the CSE formula into F3, F4, G2, G3, etc...).

    Having solved that, I have another issue that results in this...

    Team res.cour. Team afk Cour.1 Cour.2 Cour.3
    Alfa Romeo Alf 0
    AlphaTauri Alp 0
    Ferrari Fer 3 4 5
    Haas Haa 0
    McLaren McL 0
    Mercedes Mer 0
    Racing Point Rac 0
    Red Bull Red 0
    Renault Ren 0
    Williams Wil 0
    Last edited by Daniel-1973; 10-24-2020 at 01:22 PM.

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,075

    Re: How to get the right numbers behind the right teams, from a sorted list.

    Can you post a workbook showing the problem?

  9. #9
    Registered User
    Join Date
    05-17-2020
    Location
    Heiloo, Nederland
    MS-Off Ver
    2007
    Posts
    32

    Re: How to get the right numbers behind the right teams, from a sorted list.

    Here is the current result.
    Attached Files Attached Files

  10. #10
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,075

    Re: How to get the right numbers behind the right teams, from a sorted list.

    You haven't entered the formula with Ctrl Shift Enter.
    Also are you still using Excel 2007?

  11. #11
    Registered User
    Join Date
    05-17-2020
    Location
    Heiloo, Nederland
    MS-Off Ver
    2007
    Posts
    32

    Re: How to get the right numbers behind the right teams, from a sorted list.

    Quote Originally Posted by Fluff13 View Post
    You haven't entered the formula with Ctrl Shift Enter.
    Also are you still using Excel 2007?
    When changing into CSE, this is what happens. Yes, sadly I have only Excel 2007...
    Attached Files Attached Files

  12. #12
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,075

    Re: How to get the right numbers behind the right teams, from a sorted list.

    You need to put the formula in F2 & confirm with Ctrl Shift Enter, then drag it down & across.

  13. #13
    Registered User
    Join Date
    05-17-2020
    Location
    Heiloo, Nederland
    MS-Off Ver
    2007
    Posts
    32

    Re: How to get the right numbers behind the right teams, from a sorted list.

    Quote Originally Posted by Fluff13 View Post
    You need to put the formula in F2 & confirm with Ctrl Shift Enter, then drag it down & across.
    Yes, that works...
    How come I didn't see that... :o Thanks Now I can try to fit this into column AXD of my database... Yes, column AXD...
    I feel silly that I didn't see this, actually. But thanks again, it's solved now.

  14. #14
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,075

    Re: How to get the right numbers behind the right teams, from a sorted list.

    Glad to help & thanks for the feedback.

  15. #15
    Registered User
    Join Date
    05-17-2020
    Location
    Heiloo, Nederland
    MS-Off Ver
    2007
    Posts
    32

    Re: How to get the right numbers behind the right teams, from a sorted list.

    And now I am searching how to close the thread... I feel like a real nit-wit, sometimes...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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