I work for a bookmaker and have the following problem.
I would like to find the sum of total stake for particular groups of clients for particular sports, between certain dates.
Here is the code i have at the moment which works well for 1 client code
:
=SUMIFS(Databank!$G:$G,Databank!$C:$C,Template!$A$10,Databank!$J:$J,Template!$E24,Databank!B:B,">="&Template!$B$3,Databank!B:B,"<="&Template!$B$4)
Reference :
- Databank G is stake
- Databank C is client code
- Template A10 is the cell i'm referring to with a client code in
- Databank J is Sport
- Template E24 is the sport i would like summarising
- Databank B is date
- Template B3 and B4 are to and from dates.
Currently this formula tells me the total stake of the client in A10
for the sport in E24
between the dates in B3
and B4
.
I would like to amend the formula to be able to group more clients together from cells A10
- A100
, A101
etc