Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Sorting & Calculating

If I have a column sorted by A B C and another respective col that has
numbers in it, how could I write a function that would add up all numbers
that have a respective A in the first col?

In other words I want to Sum (if any cell in col A = A, I want to add them up)

-----------------
Scott

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Sorting & Calculating

=SUMPRODUCT(--(A2:A100)="A"),B2:B100)

Or

=SUMIF(A2:A100,"A",B2:B100)

"Scotts" wrote:

If I have a column sorted by A B C and another respective col that has
numbers in it, how could I write a function that would add up all numbers
that have a respective A in the first col?

In other words I want to Sum (if any cell in col A = A, I want to add them up)

-----------------
Scott

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Sorting & Calculating

Perfect, thank you.

-----------------
Scott



"Toppers" wrote:

=SUMPRODUCT(--(A2:A100)="A"),B2:B100)

Or

=SUMIF(A2:A100,"A",B2:B100)

"Scotts" wrote:

If I have a column sorted by A B C and another respective col that has
numbers in it, how could I write a function that would add up all numbers
that have a respective A in the first col?

In other words I want to Sum (if any cell in col A = A, I want to add them up)

-----------------
Scott

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
Calculating, filtering, and sorting 5 year anniversaries? Ricter Excel Discussion (Misc queries) 6 September 27th 06 04:23 PM
calculating justlearnin Excel Worksheet Functions 3 July 18th 06 05:28 PM
Sorting: Sorting by the First Character dzuy Excel Discussion (Misc queries) 2 June 22nd 06 08:27 PM
calculating Roger Excel Worksheet Functions 3 February 15th 06 10:53 PM
Calculating recurring date in following month, calculating # days in that period Walterius Excel Worksheet Functions 6 June 4th 05 11:21 PM


All times are GMT +1. The time now is 07:53 AM.

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

About Us

"It's about Microsoft Excel"