+ Reply to Thread
Results 1 to 10 of 10

Data Sorting Question

  1. #1
    Registered User
    Join Date
    05-06-2014
    Location
    Sarasota, FL
    MS-Off Ver
    Excel 2003
    Posts
    4

    Data Sorting Question

    I've got what I feel like is a pretty basic problem I'm trying to correct with the proper formula.

    Here is an image for reference:
    ExcelHelp.jpg

    All the trucks in Yellow are "Team South" and the trucks in Green are "Team North"

    I've got the formula's down to calculate each trucks "Overall Score", example: for Avenger Friday Overall Score it would be =SUM(B9:D9)

    However, I want to be able to "sort" the trucks throughout the weekend (so they will be jumbled and not all in order as they are now) but I want the total points for each team (Team South & Team North) to stay the same even after I sort the trucks after each event.

    For example, I can't simply use =SUM(E9:12) for the Team South Friday Overall Score, because if I sort and Team North trucks move up into Rows 9-12 it will not keep the proper total points.

    So again, how do I make the "Team North" and "Team South" points total proprietary to just the "Team North" and "Team South" trucks, regardless of how I sort them?

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Data Sorting Question

    Hi and welcome to the forum

    Please do not upload a picture of your file...rather, upload a sample of your workbook, showing what data you are working with, a few samples of your expected outcome is (manually entered is ok) and how you arrived at that. (exclude sensitive info). Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you Also, not all members can upload picture files (Company firewalls and stuff)

    Having said that, if you have a code/number for each team (maybe in a helper column?), then you could use that in a sumif() or countif() function
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Data Sorting Question

    Hi,

    Welcome to the Excel Forum.

    Tell us the logic how you (already or want to) categorize and color up the truck names as North and South, then conditional formatting could be used accordingly (with an helper column as Ford suggests).
    If my assistance has helped, there is a reputation icon * on the left hand corner below the post - you can show your appreciation to the user who has helped in resolving your requirement.

    If your requirement has been solved please mark your thread as Solved.
    In the menu bar above the very first post, select Thread Tools, then select "Mark this thread as Solved".

    Kindly use [FORMULA] or [CODE] tags when posting your code.

    Regards,
    Sarang

  4. #4
    Registered User
    Join Date
    05-06-2014
    Location
    Sarasota, FL
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Data Sorting Question

    Alright I've attached the excel sheet.

    Sheet 1 - Begin Sheet, this has everything blank. Team South is Yellow and Team North is Green.

    Sheet 2 - Example Points, this would show an example of how the points for a Friday event would work. This also shows what the correct "Team South" points should be (247) and "Team North" points should be (287). The trucks are UNSORTED on this sheet.

    Sheet 3 - Trucks Sorted Wrong Team Points, this is the same as Sheet 2, but the trucks are sorted and as you can see, the Team South and Team North points are wrong.

    Again, I'm looking to make the Team North points proprietary to the Team North trucks and not have the points change no matter how I sor the trucks. What Excel formula would give me the correct Team points no matter how I sort the trucks?
    Attached Files Attached Files

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Data Sorting Question

    Try this, copied across...
    =SUMPRODUCT(($A$9:$A$18={"avenger","wrecking crew","Toxic","Over bored"})*(B$9:B$18))

    You can then just subtract that from the total, for South

  6. #6
    Registered User
    Join Date
    05-06-2014
    Location
    Sarasota, FL
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Data Sorting Question

    Not sure if that formula is working FDibbins.

    For example, I paste that formula into "E17" (The Overall Score for Team North) and it gives me a total of 79. The point total should be 247 (Avenger 78 + Wrecking Crew 62 + Toxic 53 + Over Bored 54 = 247 Total Points for Team North).

    Again for each column, I want the totals for Team North (Avenger, Wrecking Crew, Toxic, & Over Bored all in yellow) on Row 17 to always equal the total for just those 4 trucks, regardless of how I have them sorted.

    So Cell B17 should equal whatever total points Avenger, Wrecking Crew, Toxic, and Over Bored have in Column B. In C17 same thing, D17 same thing and so on.

    Same thing for all the Team South (Stone Crusher, Hooked, Walking Tall, Saigon Shaker all in green), regardless of how I have them sorted, I want the total points for all 4 of those trucks regardless of how I have them sorted.


    Reason being is at this event we are doing an "Individual Champion", as in the truck with the highest points total, and a "Team Champion" which is the team with the highest points total. I would like to always sort the trucks by who has the most points for easier reference, all while keeping the Team Total across the bottom on the same page.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-06-2014
    Location
    Sarasota, FL
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Data Sorting Question

    Bump, anyone have any ideas?

  8. #8
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Data Sorting Question

    Using Ford's formula:
    ExcelForumHelp.xlsx

  9. #9
    Valued Forum Contributor Saarang84's Avatar
    Join Date
    02-19-2009
    Location
    Chennai, India
    MS-Off Ver
    XL 2003 to 2010
    Posts
    812

    Re: Data Sorting Question

    Hi,

    I would also go with Ford's formula, but would place the overall total rows for Team North and Team South first, followed by the Truck names and their corresponding scores. If in case you keep adding new truck names, you can do so and also sort from Row 11 onwards as in the attachment.
    Attached Files Attached Files

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,959

    Re: Data Sorting Question

    When I used that on your sample WB, thats exactly what I got in E17 247...see attached. Perhaps you copied it over incorrectly?
    Attached Files Attached Files

+ 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. Excel 2007 : Data sorting question...
    By budchevy in forum Excel General
    Replies: 5
    Last Post: 05-18-2011, 03:56 PM
  2. Sorting Data in a Row Question
    By karto in forum Excel General
    Replies: 1
    Last Post: 02-08-2009, 11:19 AM
  3. Data sorting question
    By markdill in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 09-07-2007, 03:23 PM
  4. Sorting Data question
    By RPIJG in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-19-2005, 02:47 PM
  5. [SOLVED] Sorting data question
    By Chris Paterson in forum Excel General
    Replies: 0
    Last Post: 06-20-2005, 07:05 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