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  

Comparing text and then adding numbers if the text matches



 
 
Thread Tools Display Modes
  #1  
Old April 8th, 2009, 08:19 PM posted to microsoft.public.excel.worksheet.functions
rotor11
external usenet poster
 
Posts: 1
Default Comparing text and then adding numbers if the text matches

Hello folks, I'm a very basic excel user. I'm trying to create a spread
sheet for adding flight times. Here's how the table looks:

Aircraft Type Total Time
BH206 4
BE90 5
BH206 2.5
BE90 3

I need to add the the times only for the aircraft of the same type.
(additionally the aircraft type is user function which I've already been able
to make work). Once the numbers are added that answer gets added to another
cell of a previous total for the same aircraft to create a total time.

Any help???
Thanks
  #2  
Old April 8th, 2009, 08:36 PM posted to microsoft.public.excel.worksheet.functions
Mike H
external usenet poster
 
Posts: 8,419
Default Comparing text and then adding numbers if the text matches

Try

=SUMIF(A1:A14,"BE90",B1:B14)

Mike

"rotor11" wrote:

Hello folks, I'm a very basic excel user. I'm trying to create a spread
sheet for adding flight times. Here's how the table looks:

Aircraft Type Total Time
BH206 4
BE90 5
BH206 2.5
BE90 3

I need to add the the times only for the aircraft of the same type.
(additionally the aircraft type is user function which I've already been able
to make work). Once the numbers are added that answer gets added to another
cell of a previous total for the same aircraft to create a total time.

Any help???
Thanks

  #3  
Old April 8th, 2009, 08:38 PM posted to microsoft.public.excel.worksheet.functions
Gary''s Student
external usenet poster
 
Posts: 7,584
Default Comparing text and then adding numbers if the text matches

=SUMPRODUCT((A1:A10="BE90")*(B1:B10))
this will add up the BE90 items
Adapt for the others.
--
Gary''s Student - gsnu200844


"rotor11" wrote:

Hello folks, I'm a very basic excel user. I'm trying to create a spread
sheet for adding flight times. Here's how the table looks:

Aircraft Type Total Time
BH206 4
BE90 5
BH206 2.5
BE90 3

I need to add the the times only for the aircraft of the same type.
(additionally the aircraft type is user function which I've already been able
to make work). Once the numbers are added that answer gets added to another
cell of a previous total for the same aircraft to create a total time.

Any help???
Thanks

 




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 02:32 PM.


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