+ Reply to Thread
Results 1 to 5 of 5

Adding cell values found in different rows/columns based on specific values

  1. #1
    Registered User
    Join Date
    06-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Adding cell values found in different rows/columns based on specific values

    Esker Point Beach Volleyball League 2012.xlsx

    I have a 10 week schedule where Teams are referenced by numbers instead of names on one row, and the row below them are the number of wins. In this particular spreadsheet there are 5 different courts that a team can play on, and every week can be a different court.

    I know how to do a VLOOKUP for the team #, but how do I then get the cell value directly below that contains the number of wins. I would also need to know the number of games played in that court for that week.

    I may be approaching this entirely wrong, but I started by breaking it down to smaller pieces, total of games won every week(long tedious process) and total number of games played. It's best out of 3, weather permitting, so there may be some weeks were only 1 or 2 games are played.

    Playoffs are determined by win pct. and not total wins.

    I've attached a sheet with what I have started.

    Any help will be much appreciated.

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

    Re: Adding cell values found in different rows/columns based on specific values

    if it is always one below use index match but add 1 to the match.
    index(a:a,match("xyz",B:B,0)+1) or from column f in the range a:z index(a:z,match("xyz",B:B,0)+1,6)
    i cant actualy see where you want to use it tho on your sheet
    "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

  3. #3
    Registered User
    Join Date
    06-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Adding cell values found in different rows/columns based on specific values

    Thanks martindwilson for the assist.

    Sorry that I didn't state where I wanted to use it.

    The following is what I ended up with in order to get it to return the correct values.

    =INDEX($D$5:$Q$5,MATCH(A75,$D$4:$Q$4,0))

    But I still need a little help with counting the total numbers of game played in a court. For example: In Week 1, I'd like to know how many games were played by team #5(K4). Team #5 played in CT-4, so i'd need to add J5+K5. The formula for this example would go in D93.

    The only thing I can come up with is doing a nested "if" statement based on the address ... but not quite sure where to start. Esker Point Beach Volleyball League 2012.xlsx

    I've attached an updated sheet.

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Adding cell values found in different rows/columns based on specific values

    Quick question..wouldn't you end up double counting if you added up all the matches played by each team on each court considering each match will have two teams?
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Registered User
    Join Date
    06-27-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    3

    Smile Re: Adding cell values found in different rows/columns based on specific values

    Quote Originally Posted by Ace_XL View Post
    Quick question..wouldn't you end up double counting if you added up all the matches played by each team on each court considering each match will have two teams?
    I can see how you could see that, but since i'd be adding horizontally by team for weeks 1 thru ten, I would then get the total number of games played by that team for the entire year.

    If I were adding vertically, then you'd be 100% correct, in week 1 it would look as if 30 games were potentially played instead of 15.
    Last edited by johnslayer; 06-28-2012 at 07:11 AM.

+ 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