ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Add numbers depending on other cells (https://www.excelbanter.com/excel-worksheet-functions/43591-add-numbers-depending-other-cells.html)

babygoode

Add numbers depending on other cells
 

Hi,

I need to add up some values depending what is in the cell next to
them

A B
1 Cat 2
2 Dog 3
3 Cat 5
4 Rabbit 6

So i need to add up all the numbers in colum B that are next to cat -
is this possible?

Thanks,


--
babygoode
------------------------------------------------------------------------
babygoode's Profile: http://www.excelforum.com/member.php...o&userid=26109
View this thread: http://www.excelforum.com/showthread...hreadid=401319


bill k


=SUMIF(a1:a4, "cat",b1:b4)

or

=SUMIF(a1:a4,c1,b1:b4)

so that you can enter cat or rabbit in c1


--
bill k


------------------------------------------------------------------------
bill k's Profile: http://www.excelforum.com/member.php...nfo&userid=821
View this thread: http://www.excelforum.com/showthread...hreadid=401319



All times are GMT +1. The time now is 10:54 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com