A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Adding numbers based on Range



 
 
Thread Tools Display Modes
  #1  
Old June 18th, 2009, 03:01 PM posted to microsoft.public.excel.worksheet.functions
Carla
external usenet poster
 
Posts: 166
Default Adding numbers based on Range

In the C column I have categories and in the J column I have Hours

Is there a formula to where I can look up the category "Library" in C and
add only those numbers in column J?
Ads
  #2  
Old June 18th, 2009, 03:22 PM posted to microsoft.public.excel.worksheet.functions
Gary''s Student
external usenet poster
 
Posts: 7,584
Default Adding numbers based on Range

=SUMPRODUCT(--(C1:C10="Library"),(J1:J10))

--
Gary''s Student - gsnu200857
  #3  
Old June 18th, 2009, 03:25 PM posted to microsoft.public.excel.worksheet.functions
Shane Devenshire[_3_]
external usenet poster
 
Posts: 3,333
Default Adding numbers based on Range

Hi,

SUMIF($C$1:$C$100,"Library",$J$1:$J$100)
or enter Library in A1 and use
SUMIF($C$1:$C$100,A1,$J$1:$J$100)

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Carla" wrote:

In the C column I have categories and in the J column I have Hours

Is there a formula to where I can look up the category "Library" in C and
add only those numbers in column J?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:30 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Copyright 2004-2018 OfficeFrustration.
The comments are property of their posters.