+ Reply to Thread
Results 1 to 14 of 14

Having problems with finding the correct excel formula for column

  1. #1
    Registered User
    Join Date
    07-01-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    9

    Question Having problems with finding the correct excel formula for column

    Excel Formula Capture.PNG

    My problem is that i have four different groups in a column and i have to find two totals.
    1 Players
    2 Accompanying Person
    3 Coach
    4 Medical
    The first total was for players only which I used the formula =COUNTIF(C3:C35,"Player") which gave me the correct total.
    The second total i have to find is for the three remaining groups and I have spent all day trying to get the correct formula to add groups 2, 3, and 4 together for a grand total. Can anyone please help me find a solution, its for my tafe course, and although I am learning about formulas I am at a loss as to what I should do

  2. #2
    Registered User
    Join Date
    07-01-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Having problems with finding the correct excel formula for column

    oh and the cell range for this column is C3:C35 so as to make visulation of where each column should be abit easier for anyone offering their help. Thanks bye

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Having problems with finding the correct excel formula for column

    count the total number using counta then subtract the countif from it
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    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,946

    Re: Having problems with finding the correct excel formula for column

    of try countifs()?
    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

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Having problems with finding the correct excel formula for column

    Or sumproduct if it has to be working in the excel 2003 and below versions, also.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  6. #6
    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,946

    Re: Having problems with finding the correct excel formula for column

    good point, oeldere, but they say they use 2010, hence the countifs

  7. #7
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Having problems with finding the correct excel formula for column

    Hi,
    See the attached where you problem is solved using a pivot table.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Having problems with finding the correct excel formula for column

    all op has to do is give 2 totals 1 for players and the other for the rest so the answer is simply total-players no need for countifs/pivots/sumproduct

  9. #9
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Having problems with finding the correct excel formula for column

    Hi Martin,

    Using Pivot Tables it is about 1 second more time to drag the Amt to the values area and sum vs count. I also gave the OP a way to filter the Travel or Not filter along with clicking on the Row Labels filter and removing the Player to get the total of the other 3 types of travelers.

    I'm always worried that the OP will come back and ask the secondary question about how to sum travel amounts etc. If more people would learn about Pivot Tables these problems would be easier.

  10. #10
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Having problems with finding the correct excel formula for column

    yep but it looks like some sort of homework/assignment.i think they would have said "using a pivot table do x"

  11. #11
    Registered User
    Join Date
    07-01-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    9

    Post Re: Having problems with finding the correct excel formula for column

    Excel Formula Capture.PNG

    This is the whole table, as you can see in the status column I need to get a total of the cell range (C3:35) for the three groups
    (Medical Staff(C23:C25)+Coach(C26:C27)+Accompanying Person(C28:C35)) and add the total of these three criteria groups together into cell C38. I don't know how to make the formla work properly or how to put it together.

    I already have the total for "Players" from cell range (C3:C35) using the formula =COUNTIF(C3:C35,"Player") and added the total to cell C37. Going from one criteria to three is what I am having problems with. Any help would be a gift. I hope someone can give me some pointers. I understand how formulas work, but I am still learning, it's part of my Certificate III tafe course, so any help will put me one step closer to finishing my assessment, this question is based on a fictitious sports club taking a trip, along with coaches, medical staff, and a +1 traveller shown by "Accompanying Person" label. Hope that's enough information to let you know what it is I am looking for. Thanks for all your advice so far, it all helps me understand this formula thing a bit more.
    PS I added a new image of cells that includes all the cell numbers for referencing.
    Attached Images Attached Images
    Last edited by aussiemum32; 07-01-2012 at 09:16 PM.

  12. #12
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Having problems with finding the correct excel formula for column

    Hi aussiemum32,

    Open the file I attached above and play with it a little. Click on the dropdowns and see how it works. It can filter, sort and add things together. You will need to make a Pivot Table our of your data. It will be new to you but read these for help.
    http://www.addictivetips.com/windows...-pivot-tables/
    http://chandoo.org/wp/2009/08/19/exc...bles-tutorial/
    You can even watch videos of this at:
    http://www.bing.com/videos/search?q=...ables+tutorial or
    http://www.bing.com/videos/search?q=...ables+tutorial

  13. #13
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Having problems with finding the correct excel formula for column

    lots of ways to skin a cat here everything above will do what you want, do you need seperate totals for the other criteria? you can just countif on each one and ad the formulas together or use countifs, but you know there are 33 people so 33-players is your total if you really need to count the entries use
    counta(c3:c35)-countif(c3:35,"players") ie 33-20=13 or just counta(c3:c35)-c37

  14. #14
    Registered User
    Join Date
    07-01-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Having problems with finding the correct excel formula for column

    solution =COUNTA(C23:C25, C26:C27, C28:C35) thank you for all your help even though I didn't use your solution it gave me the next step to figure it out for myself so thank you for that, and making it possible to figure it out for myself. Thank you everyone cause I have spent better part of a day and half figuring it out. damn formulas, too many to remember.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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