LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
CC
 
Posts: n/a
Default Total or Count based on multiple conditions

Hi,

I have followed the Help guidance to calculate the number of rows that
contain two criteria, each from a different column but it only returns
a zero value. The Help Guidance says:

"Count the occurrences of multiple conditions
In the following formula, whenever Excel finds "Northwind" in the range
B5:B25, it then checks for the text "Western" in the same row in column
C (the range C5:C25). Excel then calculates the number of rows that
contain both.

=SUM(IF(B5:B25="Northwind",IF(C5:C25="Western",1,0 )))

This is an array formula and must be entered by pressing
CTRL+SHIFT+ENTER."

My formula is this:
=SUM(IF(B2:B657="20/04/2006",IF(F2:F657="d",1,0)))

This is identical to the Help formula yet it only returns a zero value.

Likewise I have followed the instructions to calculatethe total value
of cells that satisfy those two criteria using the fomula based on the
Help example which is this:
"Create a total based on multiple conditions
Use the following formula to calculate the total value of cells F5:F25,
where B5:B25 contains "Northwind" and the range C5:C25 contains the
region name "Western".

=SUM(IF((B5:B25="Northwind")*(C5:C25="Western"),F5 :F25))

My formula is this:
=SUM(IF((B2:B657="20/04/2006")*(F2:F657="d"),G2:G657))

Again my formula is identical to the Help one yet it also only returns
a zero value.

Can anyone advise why this might be and what I can do to get excel to
do the calculations I want?

Cheers

CC

 
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
Count Unique Values with Multiple Criteria JohnV Excel Worksheet Functions 3 April 17th 06 06:00 PM
how to count unique values in excel based on multiple criteria IDBUGM Excel Worksheet Functions 3 March 15th 06 04:00 PM
count based on multiple date criteria lisaw Excel Worksheet Functions 1 August 9th 05 05:31 PM
generate multiple rows based on cell value Theresa Excel Worksheet Functions 0 May 25th 05 11:18 PM
Count rows based on multiple criteria Murph Excel Worksheet Functions 1 October 28th 04 07:13 AM


All times are GMT +1. The time now is 10:58 AM.

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"