Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
babygoode
 
Posts: n/a
Default 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

  #2   Report Post  
bill k
 
Posts: n/a
Default


=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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing named range reference depending on a cell's content cparaske Excel Discussion (Misc queries) 1 July 29th 05 07:06 PM
excel is adding cell numbers randomly into other cells amy Excel Worksheet Functions 0 May 13th 05 12:11 AM
update row numbers after different active cells in macros followi. LMIV Excel Discussion (Misc queries) 11 February 16th 05 12:44 AM
Converting negative numbers in a range of cells to zero Dede Excel Discussion (Misc queries) 3 January 14th 05 06:23 PM
combining several individual cells of numbers into one cell Jeanne Excel Worksheet Functions 5 November 24th 04 12:31 PM


All times are GMT +1. The time now is 05:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"