Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Adding based on multiple criteria

My spreadsheet has two colums side by side.

Column A: contains letters such as GM, GMA, GMQ etc.
Column B: contains complete, partial, postponed/cancelled.

At the bottom, there is a TOTAL box.

I need to be able to total up multiple letters in Column A (for
example, only GM and GMQ) which are complete ONLY.

How would I do this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default Adding based on multiple criteria

Hi,
Let's say in cell C1 you enter GM so in D1 enter

=sumproduct(--(C1=$A$1:$A$100),$B$1:$B$100)

change range to fit your needs but remember range has to be the same in both
parts of the formula

if this helps please click yes, thanks

"Custard Tart" wrote:

My spreadsheet has two colums side by side.

Column A: contains letters such as GM, GMA, GMQ etc.
Column B: contains complete, partial, postponed/cancelled.

At the bottom, there is a TOTAL box.

I need to be able to total up multiple letters in Column A (for
example, only GM and GMQ) which are complete ONLY.

How would I do this?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Adding based on multiple criteria

Thanks for the answer but I'm still a little confused as to how that
formula is composed (i.e. what are the 100s for, etc.).
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default Adding based on multiple criteria

Hi,
A1:A100 is the range where it supposed to be the information in your case GM
or GMQ

"Custard Tart" wrote:

Thanks for the answer but I'm still a little confused as to how that
formula is composed (i.e. what are the 100s for, etc.).

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,276
Default Adding based on multiple criteria

Hi,
Opps use this formula instead off the other I missread your post

sumproduct((C1=$A$1:$A$100)*($B$1:$B$100="Complete "))

"Eduardo" wrote:

Hi,
A1:A100 is the range where it supposed to be the information in your case GM
or GMQ

"Custard Tart" wrote:

Thanks for the answer but I'm still a little confused as to how that
formula is composed (i.e. what are the 100s for, etc.).



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default Adding based on multiple criteria

Since OP is wanting to check multiple combinations of letters, need to add
criteria arrays.

=SUMPRODUCT(((A2:A100="GM")+(A2:A100="GMQ))*(B2:B1 00="Complete"))

Adjust range sizes as needed, but make sure they are same size. Feel free to
replace text critiera with cell references. Also, can not callout entire
columns (A:A) in SUMPRODUCT unless using XL 2007.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"Eduardo" wrote:

Hi,
Let's say in cell C1 you enter GM so in D1 enter

=sumproduct(--(C1=$A$1:$A$100),$B$1:$B$100)

change range to fit your needs but remember range has to be the same in both
parts of the formula

if this helps please click yes, thanks

"Custard Tart" wrote:

My spreadsheet has two colums side by side.

Column A: contains letters such as GM, GMA, GMQ etc.
Column B: contains complete, partial, postponed/cancelled.

At the bottom, there is a TOTAL box.

I need to be able to total up multiple letters in Column A (for
example, only GM and GMQ) which are complete ONLY.

How would I do this?

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
Adding values from 1 workbook based on criteria & putting in anoth Rich Excel Discussion (Misc queries) 0 May 7th 09 08:29 PM
Extract multiple results based on multiple criteria tara657 Excel Worksheet Functions 4 January 24th 09 03:35 AM
Adding data in columns based on criteria in more than one column.. Setts Excel Worksheet Functions 6 June 21st 08 07:23 AM
Adding based on Multiple Criteria? Audra Excel Discussion (Misc queries) 2 June 29th 07 07:31 PM
adding values based on criteria Brad Excel Worksheet Functions 1 July 20th 05 06:16 PM


All times are GMT +1. The time now is 10:31 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"