Re: Help Collecting Data



Mark,

Is there any way to put the location in another column?

If not I think I have something that will work.

This will probably work best if you have a list of the teams below your data
and you are trying to sum all of the scores for all of your teams.

Using your example:
--In cells A7:A9 have the teams (TEAM A, TEAM B, TEAM C)
(i'm guessing that those are not the actual team names, but my solution will
work with different names and even different length names)
--In cell B7 enter this formula:
=SUMPRODUCT((LEFT($A$2:$A$6,LEN($A7))=$A7)*($B$2:$B$6))
(you should be able to copy-n-paste...tested this formula and it appears to
work the way you want it to)
--Copy formula down to cells B8 & B9

HTH,

Conan






"Mark" <Mark@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3AC6F1EE-A323-41DC-B158-26AB162BFFDB@xxxxxxxxxxxxxxxx
I am trying to write a program to collect scores of basketbal games. Here
is
what I have. Column A is the team and where they played (varies). Column B
is
the score. I would like to look-up the team (ignoring where they played)
and
add all the score together. In The Below example, I need to add row 1 and
3
but I am having trouble using the sumproduct formula ignoring the where
thay
played. Help!!

A B
1 TEAM A (@ XXX) SCORE
2 TEAM B (@ XXX) SCORE
3 TEAM A (@ YYY) SCORE
4 TEAM C (@ ZZZ) SCORE
5 TEAM B (@ VVV) SCORE


.



Relevant Pages

  • Re: Copy and paste HTML problem
    ... I often copy tables from web to excel but I have not yet found a way to do ... The trouble with Paste Text is you lose the columns and then the ... I usually Paste HTML, remove 'word wrap' and 'merge cells' and then edit and ...
    (microsoft.public.excel)
  • Re: I need a little sub routine
    ... YourAnswer MySolution ... that it will be little trouble taking the answer to a highly simplified ... Rick ... change the cells in it's row. ...
    (microsoft.public.excel.programming)
  • Re: I need a little sub routine
    ... I've never understood why people posting questions on newsgroups think that it will be little trouble taking the answer to a highly simplified question which they do not know how to solve and somehow be able to expand it into the answer for their actual question. ... Rick (MVP - Excel) ... change the cells in it's row. ...
    (microsoft.public.excel.programming)
  • Re: form default from a second field
    ... >Basic or Fortran, ... Well, since Access doesn't use "cells", I can see why you might be ... having trouble using them... ... Tables *are not arrays*, and thinking of them as if they were will ...
    (microsoft.public.access.forms)
  • Re: mp3 players
    ... That's the trouble - no damned use when in a tent for a week or two. ... If'n you get 4 cells from those garden solar lights & series them up ...
    (uk.rec.sheds)