+ Reply to Thread
Results 1 to 6 of 6

Sorting fishing data in 2 sectors

Hybrid View

  1. #1
    Registered User
    Join Date
    01-22-2024
    Location
    Belgium
    MS-Off Ver
    Microsoft? Excel? 2019 MSO (Versie 2312 Build 16.0.17126.20132) 32 bits
    Posts
    2

    Sorting fishing data in 2 sectors

    Best,
    In our fishing club we want to use a different way of sorting competition data from this year onwards. Normally we just sort by weight from highest to lowest. Now we work with 2 sectors and we want to sort according to a different principle. 1st sector A, 1st sector B, 2nd sector A, 2nd sector B in case if sector A has the heighest weight. Otherwise it's first sector B, first sector A, seconde sector B, second sector A, ...

    Now we just used the sort function from largest to smallest, but in this case this is a little more complicated to sort automatically. I have some basic knowledge of Excel, but I am unable to do this. Is there anyone who can help me with this? Thank you very much!

    Check example in attachement.
    Attached Files Attached Files
    Last edited by Catvisser; 01-22-2024 at 11:19 AM.

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

    Re: Sorting fishing data in 2 sectors

    Welcome to the forum.

    Can I just check that this is definitely for Excel 2019 and not for 2021 or 365?
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,658

    Re: Sorting fishing data in 2 sectors

    Not sure about your expected results - are they really in the right order? If Mario is fourth and Tom is third in sector A, why are they paired with third and fourth in sector B respectively?

  4. #4
    Registered User
    Join Date
    01-22-2024
    Location
    Belgium
    MS-Off Ver
    Microsoft? Excel? 2019 MSO (Versie 2312 Build 16.0.17126.20132) 32 bits
    Posts
    2

    Re: Sorting fishing data in 2 sectors

    Dear AliGW,

    My version is Excel 2019.

    I did indeed make a mistake. You noticed that well
    I have now adjusted it.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,658

    Re: Sorting fishing data in 2 sectors

    OK - that's a huge shame. 2021 and 365 have the SORT function that would have made this much easier.

    So it's now out of my wheelhouse, I am afraid, Someone else will assist.

  6. #6
    Forum Contributor
    Join Date
    03-28-2021
    Location
    China
    MS-Off Ver
    O365
    Posts
    111

    Re: Sorting fishing data in 2 sectors

    columnH:
    Formula: copy to clipboard
    =INDEX($A:$A,MOD(LARGE(IF($B$2:$B$11=$I2,$D$2:$D$11/1%%+ROW($2:$11)),COUNTIF($I$2:$I2,$I2)),100))


    ColumnI
    Formula: copy to clipboard
    =MID(IF(INDEX(B:B,MATCH(MAX(D:D),D:D,))="B",REPT("BA",MIN(COUNTIF(B:B,"A"),COUNTIF(B:B,"B")))&IFERROR(REPT("B",COUNTIF(B:B,"B")-COUNTIF(B:B,"A")),"")&IFERROR(REPT("A",COUNTIF(B:B,"A")-COUNTIF(B:B,"B")),""),REPT("AB",MIN(COUNTIF(B:B,"A"),COUNTIF(B:B,"B")))&IFERROR(REPT("B",COUNTIF(B:B,"B")-COUNTIF(B:B,"A")),"")&IFERROR(REPT("A",COUNTIF(B:B,"A")-COUNTIF(B:B,"B")),"")),ROW(A1),1)


    ColumnJ
    Formula: copy to clipboard
    =INDEX($C:$C,MOD(LARGE(IF($B$2:$B$11=$I2,$D$2:$D$11/1%%+ROW($2:$11)),COUNTIF($I$2:$I2,$I2)),100))


    ColumnK
    Formula: copy to clipboard
    =LARGE(IF($B$2:$B$11=$I2,$D$2:$D$11),COUNTIF($I$2:$I2,$I2))
    Last edited by ben8563; 01-22-2024 at 01:24 PM.

+ 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] Ranking with Tie-breaker for Fishing Tournament
    By PaulCunni in forum Excel General
    Replies: 11
    Last Post: 04-14-2022, 02:36 AM
  2. [SOLVED] Match fishing results and league tables
    By gowster88 in forum Excel General
    Replies: 19
    Last Post: 09-01-2020, 10:40 AM
  3. How to find fishing competition winner
    By leecoque in forum Excel General
    Replies: 2
    Last Post: 03-06-2017, 09:04 AM
  4. Data from web query of sectors not get updated in Excel
    By satav in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-25-2016, 10:54 AM
  5. fish or fishing rod?
    By tony h in forum The Water Cooler
    Replies: 14
    Last Post: 09-13-2013, 04:17 PM
  6. Fishing weights
    By ged u field in forum Excel General
    Replies: 16
    Last Post: 06-06-2011, 10:39 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