+ Reply to Thread
Results 1 to 7 of 7

Splitting, sorting and averaging data!

  1. #1
    Registered User
    Join Date
    02-05-2009
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    50

    Splitting, sorting and averaging data!

    I think this maybe the best place to post this question as what I’m trying to do appears to be getting more and more complicated so I’ll try and keep my question simple as I can.

    I have a very large spreadsheet (it’s a dump from a database) that has a lot of information, luckily for me I have only 3 columns I’m interested in, Station, Call Code and Response Time. To keep it simple… See attachment!!

    What I’d like to have excel do is two things..

    Recognize Station and Call code and give me a count on how many calls with codes 100 – 499 and from 500 – 999. I’m trying to as quickly, efficiently and as accurately as possible split emergency calls from non emergency and give a count for each.

    Recognize Station number and Response Time and give me an average based on the Call Code.. e.g. what is the average response time for Codes 100 – 499 from Station 10 or 15 or 13.. etc and response times for Codes 500 – 999 from Station 10 or 13 or 15..etc

    Please ask if you have any questions, sorting this data automatically will I'm sure help me quite a bit which I hope in turn will someday help some people out there in an emergency!

    Thanks!
    Attached Images Attached Images
    Last edited by VBA Noob; 02-06-2009 at 01:34 PM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Splitting, sorting and averaging data!

    Post a small sample workbook for specific help, but in general one approach would be to add another column to sort codes into two categories, viz =IF(CallCode<500,1,2) and then use pivot tables.

  3. #3
    Registered User
    Join Date
    02-05-2009
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    50

    Smile Re: Splitting, sorting and averaging data!

    Quote Originally Posted by StephenR View Post
    Post a small sample workbook for specific help, but in general one approach would be to add another column to sort codes into two categories, viz =IF(CallCode<500,1,2) and then use pivot tables.
    Thanks for the responce, I'll check out your code and check out povot tables. I've attached a very basic example of only the 3 items I'm interested in.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Re: Splitting, sorting and averaging data!

    Hi

    The attached example uses Excel's database functions and can be easily adapted to fit your requirements.

    regards

    Jeff
    Attached Files Attached Files
    Last edited by solnajeff; 02-06-2009 at 12:54 PM. Reason: Missing attachment

  5. #5
    Forum Contributor
    Join Date
    04-21-2007
    Location
    Lima, Peru
    MS-Off Ver
    2000, 2007, 2010
    Posts
    674

    Re: Splitting, sorting and averaging data!

    Hi

    Sorry about that having a problem with attachments.

    Jeff
    Last edited by solnajeff; 02-06-2009 at 12:55 PM.

  6. #6
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Splitting, sorting and averaging data!

    Have added a pivot table to solnajeff's example to give you an idea of another approach.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-05-2009
    Location
    Florida
    MS-Off Ver
    Excel 2007
    Posts
    50

    Re: Splitting, sorting and averaging data!

    Excellent!.. Thank you both I think this is exactly what I need. Now that you’ve both added some formulas I can go back on it see how it works and apply it where we need it. So far looks like everything works excellent once the initial formula is in copy and paste and excel does the rest!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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