Hi all. I've 2 columns (see below)
1 20
3 35
2 10
5 20
4 25
2 30
1 30
I need to get the total for each number on the lefts corrosponding value on
the right.
ie. Total of 1=50
2=40
etc
I tried
=IF(D15:D21="1", SUM(F15:F21))
but no joy, can anyone shed some light?
thanks and regards
gR
Try SUMIF, i.e.
=SUMIF(D15:D21,1,F15:F21)
you only need to put quotes around the 1 if data in D15:D21 is text rather than numeric
Hi gR,
If we say that your data is in column A and B then you can use SUMIF()
along the lines of :
=SUMIF(A1:A7,"=1",B1:B7)
Regards,
Bondi
Perfect!
thaks for the very fast reply Bondi!
gR
"Bondi" <mbondorff@hotmail.com> wrote in message
news:1152268989.492035.43350@s16g2000cws.googlegroups.com...
>
> Hi gR,
>
> If we say that your data is in column A and B then you can use SUMIF()
> along the lines of :
>
> =SUMIF(A1:A7,"=1",B1:B7)
>
> Regards,
> Bondi
>
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks