+ Reply to Thread
Results 1 to 9 of 9

lookup and sum.. or count?

Hybrid View

Taylor_1978 lookup and sum.. or count? 05-31-2007, 09:50 PM
rylo HI AH10:... 05-31-2007, 09:57 PM
Taylor_1978 Worked a charm! Thank you... 05-31-2007, 10:02 PM
Taylor_1978 One other problem! lol ... 05-31-2007, 10:05 PM
rylo Hi Expand it to include... 05-31-2007, 10:15 PM
Williebfree Novice, but willing to help 05-31-2007, 10:00 PM
  1. #1
    Registered User
    Join Date
    05-31-2007
    Posts
    17

    Exclamation lookup and sum.. or count?

    Hi,

    I am not sure if I am on the right track or not and my thread title may be misleading! But didn't want to just post, "HELP" - but help is exactly what I need.

    You will see in the screen shot I have included in this post I have a list of teams and next to their name how many games they have won ("W") - Columns AG & AH.

    In columns Z & AA there are a list of teams again in different orders and next to them is a letter, "W" for won, "L" for lost, "D" for drawn and "B" for Bye.

    I want the Column AH to add how many times that specific team has a W next to their name in columns Z & AA. So for example in the screen shot I have provided, the team "Colin #2" should have 1 under W in column AH.

    I have tried using a combination of sum, count, lookup and if - but just don't seem to be getting anywhere.

    Any help appreciated. Here is a link to the screen shot:

    http://citysidesports.com/excel.jpg

    EDIT: I should also mention that a team can be listed up to 10 times in no certain order in column AA.

    Thanks!

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    HI

    AH10: =sumproduct(--($aa$20:$aa$29=AG10),--($Z$20:$Z$29="W"))

    Adjust the ranges to suit and copy down. I'm guessing that the merged cells in AA:AD have the data taken from AA.


    rylo

  3. #3
    Registered User
    Join Date
    05-31-2007
    Posts
    17
    Worked a charm! Thank you very much rylo!
    Last edited by Taylor_1978; 05-31-2007 at 10:05 PM.

  4. #4
    Registered User
    Join Date
    05-31-2007
    Posts
    17
    One other problem! lol

    Next to the W or L in Colomn Z is Column Y which has the teams score. So I'm also wanting to add up the scores of each game. Did that make sense?

    Thanks.

  5. #5
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Expand it to include column Y

    AH10: =sumproduct(--($aa$20:$aa$29=AG10),--($Z$20:$Z$29="W"),($y$10:$y$29))


    rylo

  6. #6
    Registered User
    Join Date
    05-31-2007
    Posts
    17
    That one didn't work (#!VALUE) but I probably didn't explain myself properly.

    In Column AL, which is labeled "Score For" it is supposed to tally up all the scores of the team, regardless of whether it's a win, loss or draw.

    Column Y shows the teams score.

    I have included another screen shot to explain what I mean:

    http://citysidesports.com/excel2.jpg

    If you look at the team "The Comrades #2" it lists they have 2 wins no problem. So that works. Under the column "For" it should have 27 being 15 + 12 from their 2 games played.

    I hope that is explained better!
    Last edited by Taylor_1978; 05-31-2007 at 10:31 PM.

  7. #7
    Registered User
    Join Date
    05-19-2007
    Posts
    1

    Novice, but willing to help

    I believe this should accomplish what your need....


    =COUNTIF($z$15:$B$27,"w")


    Happy formulating!!

+ 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