#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Array Formula

Hello, I am working on an assignment and have problems with getting
the result I need using array formula. I have three columns: Vehicle
Type (e.g. Car, Moped) - data in E5:E104; Vehicle Colour (e.g. Blue,
Silver) - data in F5:F104; Residence (e.g. W1, EC4) - data in G5:G104.
I want to create a formula to see how many Blue Cars were registered
in W1? The formula I use is: =COUNT(IF($E$5:$E$104="Car",IF($F$5:$F
$104="Blue",IF($G$5:$G$104="W1")))) and then to make it into an array
formula press ctrl+shift and hit enter. Can anyone explain why I am
not getting anything, it says error? Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.misc
JB JB is offline
external usenet poster
 
Posts: 115
Default Array Formula

Heelo,

=SUMPRODUCT((E5:E104="car")*(F5:F104="blue")*(G5:G 104="w1"))

JB

On 22 juin, 13:01, Martina wrote:
Hello, I am working on an assignment and have problems with getting
the result I need using array formula. I have three columns: Vehicle
Type (e.g. Car, Moped) - data in E5:E104; Vehicle Colour (e.g. Blue,
Silver) - data in F5:F104; Residence (e.g. W1, EC4) - data in G5:G104.
I want to create a formula to see how many Blue Cars were registered
in W1? The formula I use is: =COUNT(IF($E$5:$E$104="Car",IF($F$5:$F
$104="Blue",IF($G$5:$G$104="W1")))) and then to make it into an array
formula press ctrl+shift and hit enter. Can anyone explain why I am
not getting anything, it says error? Thanks!



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Array Formula

Thanks JB! I guess I was trying to use the wrong formula :-)


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Array Formula

You can only use COUNTIF (and SUMIF) if you have a single criteria.
Where you have more than one criteria you need to use SUMPRODUCT or an
array formula along the lines of

=SUM(IF((condition_1)*(condition_2)*(condition_3), ... , ...))

Hope this helps.

Pete

On Jun 22, 12:55 pm, Martina wrote:
Thanks JB! I guess I was trying to use the wrong formula :-)



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
meaning of : IF(Switch; Average(array A, array B); array A) DXAT Excel Worksheet Functions 1 October 24th 06 06:11 PM
array formula ziv Excel Discussion (Misc queries) 1 August 27th 06 12:52 PM
Can this be done using an array formula ? borntorun75 Excel Worksheet Functions 4 May 4th 06 12:24 PM
Array Formula - using LEFT("text",4) in formula Andrew L via OfficeKB.com Excel Worksheet Functions 2 August 1st 05 02:36 PM
Help with array formula Excel Worksheet Functions 2 January 20th 05 04:17 PM


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