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,
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,
Last edited by lachellebryan; 02-20-2018 at 05:28 PM. Reason: Rules
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.
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.
So how do I do that? I updated my personal file but how do I show that to you?
I hope this is better. I am new to all this forum stuff. Sorry.
Thanks,
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.
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"?
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.
I have updated the file as well.
How is that?
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.
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.
I have updated the file. The scores in yellow is what I am trying to get.
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?
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?
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.
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,
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: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: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.
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.
Nevermind, I thought that something was suppose to show in F4 besides the formula! Thank you a bunch!!! It works great!!!!!!!!!!!!!!!!!!
So what would I need to adjust to add it to the other table?
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.
So, if they are even next to each other, like mine are, it will work?
Just make sure there's at least one empty column between each table.
If I wanted to list the overall top scoring Male and overall top scoring Female, how would I do that?
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.
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,
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: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: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.
Would there be a way to do it to search all three tables for the top Male and top Female Name and Score?
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: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: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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks