+ Reply to Thread
Results 1 to 30 of 30

Top 12 Scores based on specific criteria

  1. #1
    Registered User
    Join Date
    02-20-2018
    Location
    Hamilton, Mississippi
    MS-Off Ver
    2010
    Posts
    16

    Top 12 Scores based on specific criteria

    I am a teacher and I really need help! I am trying to create a formula that will give the top 12 results but make sure that at least 4 is the opposite gender. How can I do this? I am attaching my file. Any help will be appreciated!

    Thanks,
    Attached Files Attached Files
    Last edited by lachellebryan; 02-20-2018 at 05:28 PM. Reason: Rules

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Formula

    Hello and welcome to the forum.

    Please update your sample to include some sample scores and the desired results based off of those scores.

    You can enter these manually.

  3. #3
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Formula

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  4. #4
    Registered User
    Join Date
    02-20-2018
    Location
    Hamilton, Mississippi
    MS-Off Ver
    2010
    Posts
    16

    Re: Formula

    So how do I do that? I updated my personal file but how do I show that to you?

  5. #5
    Registered User
    Join Date
    02-20-2018
    Location
    Hamilton, Mississippi
    MS-Off Ver
    2010
    Posts
    16

    Re: Formula

    I hope this is better. I am new to all this forum stuff. Sorry.

    Thanks,

  6. #6
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Formula Problem

    Formula Problem isn't any more descriptive of your issue - as stated above, Use terms appropriate to a Google search - what would you search for if you were searching for your problem? Once you've done this you're more likely to get responses - right now some will ignore the thread because the title is so generic.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  7. #7
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Formula Problem

    Quote Originally Posted by lachellebryan View Post
    I hope this is better. I am new to all this forum stuff. Sorry.

    Thanks,
    No worries. You changed it to one of the poor thread titles in post #3.

    May I suggest something more along the lines of "Top 12 Scores"?

    Quote Originally Posted by lachellebryan View Post
    So how do I do that? I updated my personal file but how do I show that to you?
    You can click "Edit" on Post #1 and remove the workbook that's there then upload the updated workbook with the scores and desired results.

  8. #8
    Registered User
    Join Date
    02-20-2018
    Location
    Hamilton, Mississippi
    MS-Off Ver
    2010
    Posts
    16

    Re: Formula Problem

    I have updated the file as well.

  9. #9
    Registered User
    Join Date
    02-20-2018
    Location
    Hamilton, Mississippi
    MS-Off Ver
    2010
    Posts
    16

    Re: Formula Problem

    How is that?

  10. #10
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Formula Problem

    Quote Originally Posted by lachellebryan View Post
    How is that?
    Thread title looks good.

    Now, looking at your updated workbook, I see the sample scores but I don't see your expected results/outcome.

  11. #11
    Registered User
    Join Date
    02-20-2018
    Location
    Hamilton, Mississippi
    MS-Off Ver
    2010
    Posts
    16

    Re: Top 12 Scores based on specific criteria

    That is what I need help with. Take Hamilton, I am trying to come up with a score of 2988 and need the top 4 female and male scores.

  12. #12
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Top 12 Scores based on specific criteria

    We need to see what your expected results are (which you can manually type into the cell/s) and where in the workbook they should be.

    Once we know exactly what it is that you are expecting and where you are expecting it, we can build formulas to automate that for you.

    I don't see where 2988 is coming from.

  13. #13
    Registered User
    Join Date
    02-20-2018
    Location
    Hamilton, Mississippi
    MS-Off Ver
    2010
    Posts
    16

    Re: Top 12 Scores based on specific criteria

    I have updated the file. The scores in yellow is what I am trying to get.

  14. #14
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Top 12 Scores based on specific criteria

    Thank you for including the desired results. Now, before we can build a formula to calculate the values automatically, we have to know how you got to those numbers.

    Why should B28 be 2988, F27 be 2727, and J29 be 3019? How do you get to those numbers?

  15. #15
    Registered User
    Join Date
    02-20-2018
    Location
    Hamilton, Mississippi
    MS-Off Ver
    2010
    Posts
    16

    Re: Top 12 Scores based on specific criteria

    I want to have the 12 highest averages, but at least 4 have to be female and 4 have to be male. Does that make sense?

  16. #16
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Top 12 Scores based on specific criteria

    When you say 'highest averages' it seems that you mean 'highest scores' - the numbers in the second columns of each table.

    I can see how you get 2988 for the first table (Hamilton) - that's the sum of the 12 highest scores, of which 6 are M and 6 are F, so meet your other criterion.

    I think you've just made a mistake with the second table (Tupelo) and 2727. The top 12 scores sum to 2957, with 5 x M and 7 x F, but you seem to have taken just the top 11 scores - was that just a mistake or am I missing something?

    I can't see at all how you get 3019 for the third table (Starkville). The top 12 scores sum to 3058 and judging by the names seem to be 4 x F and 8 x M. How did you get 3019?

    Right now, I can't see an easy solution to this. It will need to involve finding the top 4 male scores, top 4 female scores and then ranking the remaining scores to get the other 4 you want. Making sure the same name/score isn't double-counted is going to be complicated though. I suspect it will involve adding a few helper tables (or at least helper columns to existing tables) to do intermediate calculations.
    Before any of us take this any further, can you please confirm how you get to the numbers you have?

    Also, please confirm that the names in the tables are made up? If not, there is an issue with confidentiality, so please remove the attachment you have and replace it in which the names are not real - just call them 'Child 1' 'Child 2' etc - the only essential info is the scores and the genders.
    If you need to remove the attachment but can't, click 'Report Post' on your post and ask a moderator to remove it for you.

  17. #17
    Registered User
    Join Date
    02-20-2018
    Location
    Hamilton, Mississippi
    MS-Off Ver
    2010
    Posts
    16

    Re: Top 12 Scores based on specific criteria

    It was a mistake. I have updated the file with the most current data. I hope this is better. Sorry about before. I just went ahead and did the Child suggestion so that no one will question the names.

    Thanks,

  18. #18
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Top 12 Scores based on specific criteria

    Okay, I've got a solution for you, using six (!) helper columns - though you can hide five of them once they're done.

    1. First, you need to Sort the Scores column - Smallest to Largest or vice-versa doesn't matter. If you don't do this, then if there's a tie-break you could get 13 scores instead of 12 (column H deals with the tie-break by assigning different ranks, so 2 x 10= becomes 10 and 11).

    2. Now insert the extra columns to the right of the table and put the following headings in row 3:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    3. Enter the formulae below into the relevant cells on row 4 and copy down the columns:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    4. Select Sum at the bottom of column I (cell I28) - you should get 2988 as you expected.

    5. Now you can hide columns D to H if you want.

    6. Repeat for the other tables.


    It's a bit messy, but I think this does what you asked for. There's probably a 'better' way to do it, with fewer helper columns, but I can't work that out right now.

    I've attached a file showing this working - it's based on your previous attachment, but with 'Archer 101' etc in place of the names.

    Hope that does what you want.

  19. #19
    Registered User
    Join Date
    02-20-2018
    Location
    Hamilton, Mississippi
    MS-Off Ver
    2010
    Posts
    16

    Re: Top 12 Scores based on specific criteria

    It was going good until I got to F4. It said something about a comma or quotation. So, from there on, it doesn't work.

  20. #20
    Registered User
    Join Date
    02-20-2018
    Location
    Hamilton, Mississippi
    MS-Off Ver
    2010
    Posts
    16

    Re: Top 12 Scores based on specific criteria

    Nevermind, I thought that something was suppose to show in F4 besides the formula! Thank you a bunch!!! It works great!!!!!!!!!!!!!!!!!!

  21. #21
    Registered User
    Join Date
    02-20-2018
    Location
    Hamilton, Mississippi
    MS-Off Ver
    2010
    Posts
    16

    Re: Top 12 Scores based on specific criteria

    So what would I need to adjust to add it to the other table?

  22. #22
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Top 12 Scores based on specific criteria

    Just insert columns to the right of the other tables then copy D3:I4 to the new columns and drag the formulae down. As long as your table headings are the same in each table (Score and Gender are the important ones) then the formulae should work fine for any table you copy them to.

    Actually, if you have lots of tables to do, it'll probably be easier to copy the table with the extra columns, paste it elsewhere, erase the data in the 'Archer' 'Score' and 'Gender' columns (leave the formulae, obviously). Then you can just copy that as many times as you need, then copy/paste the data from previous tables.

  23. #23
    Registered User
    Join Date
    02-20-2018
    Location
    Hamilton, Mississippi
    MS-Off Ver
    2010
    Posts
    16

    Re: Top 12 Scores based on specific criteria

    So, if they are even next to each other, like mine are, it will work?

  24. #24
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Top 12 Scores based on specific criteria

    Just make sure there's at least one empty column between each table.

  25. #25
    Registered User
    Join Date
    02-20-2018
    Location
    Hamilton, Mississippi
    MS-Off Ver
    2010
    Posts
    16

    Re: Top 12 Scores based on specific criteria

    If I wanted to list the overall top scoring Male and overall top scoring Female, how would I do that?

  26. #26
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Top 12 Scores based on specific criteria

    The top-scoring Male in each table is the one with the lowest number in the M-rank column, the top scoring Female is the one with the number 1 in the F-rank column.

  27. #27
    Registered User
    Join Date
    02-20-2018
    Location
    Hamilton, Mississippi
    MS-Off Ver
    2010
    Posts
    16

    Re: Top 12 Scores based on specific criteria

    But if I want to type Top Female: (insert formula for student name) and Top Male: (insert formula for student name), how would I do that?

    Thanks,

  28. #28
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Top 12 Scores based on specific criteria

    Assuming you want to put it below your table, try this:

    In the cell below where it says 'Total', type 'Top Female'.
    In the cell to the right of that, put in this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In the cell below where you typed 'Top Female', type 'Top Male'.
    In the cell to the right of that, put in this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    You'll need to change the table reference for each table, from the Table3 in the formulae above to whatever the name of each table is.
    To find out the name of each table, click somewhere in it, then click the Table Tools tab which appears on the ribbon. The name is at the left-hand end.

  29. #29
    Registered User
    Join Date
    02-20-2018
    Location
    Hamilton, Mississippi
    MS-Off Ver
    2010
    Posts
    16

    Re: Top 12 Scores based on specific criteria

    Would there be a way to do it to search all three tables for the top Male and top Female Name and Score?

  30. #30
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,559

    Re: Top 12 Scores based on specific criteria

    This may be of help.
    I followed Aardigspook's instructions about putting the top female and male below the line with the total, then I added cells to retrieve their scores using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    I then linked Tupelo's top scorers and scores (Starkville's table couldn't be completed because there were no gender designations) below Hamiltons.
    I used the following array entered formula* to identify the overall top female and male:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    *Array entered formulas are confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Replies: 5
    Last Post: 02-16-2018, 06:50 AM
  2. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  3. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  4. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  5. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 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