Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default Two search arguments in array formula

Hello,
With help of this forum I created this array formula:
{=SUM(--(FREQUENCY(IF((S_Shop_events="x")*(Event="5S"),ROW (S_Shop_events)),ROW(S_Shop_events))0))}
Which basically states: count all the €œx€ in range called €˜S_Shop_events
and count them in a cells where column is Event="5S". But what I need is to
search in columns Event="5S" and Event="BECW".
I was trying this formula:
{=SUM(--(FREQUENCY(IF((S_Shop_events="x")*(Event={"5S",€ BECW€}),ROW(S_Shop_events)),ROW(S_Shop_events)) 0))}
And this:
{=SUM(--(FREQUENCY(IF((S_Shop_events="x")*OR((Event="5S"), (Event=€BECW€)),ROW(S_Shop_events)),ROW(S_Shop _events))0))}
But they didnt work, the second version did returned result but incorekt.
Any suggestions!
Thank you,
Guntars

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default Two search arguments in array formula

I think you should take a look at this:
http://www.contextures.com/xlFunctio...tml#SumProduct

Good luck,
Ryan---

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"Guntars" wrote:

Hello,
With help of this forum I created this array formula:
{=SUM(--(FREQUENCY(IF((S_Shop_events="x")*(Event="5S"),ROW (S_Shop_events)),ROW(S_Shop_events))0))}
Which basically states: count all the €œx€ in range called €˜S_Shop_events
and count them in a cells where column is Event="5S". But what I need is to
search in columns Event="5S" and Event="BECW".
I was trying this formula:
{=SUM(--(FREQUENCY(IF((S_Shop_events="x")*(Event={"5S",€ BECW€}),ROW(S_Shop_events)),ROW(S_Shop_events)) 0))}
And this:
{=SUM(--(FREQUENCY(IF((S_Shop_events="x")*OR((Event="5S"), (Event=€BECW€)),ROW(S_Shop_events)),ROW(S_Shop _events))0))}
But they didnt work, the second version did returned result but incorekt.
Any suggestions!
Thank you,
Guntars

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Two search arguments in array formula

Try this...

Normally entered:

=SUMPRODUCT(--(S_Shop_events="x"),--(ISNUMBER(MATCH(Event,{"5S","BECW"},0))))

--
Biff
Microsoft Excel MVP


"Guntars" wrote in message
...
Hello,
With help of this forum I created this array formula:
{=SUM(--(FREQUENCY(IF((S_Shop_events="x")*(Event="5S"),ROW (S_Shop_events)),ROW(S_Shop_events))0))}
Which basically states: count all the "x" in range called 'S_Shop_events'
and count them in a cells where column is Event="5S". But what I need is
to
search in columns Event="5S" and Event="BECW".
I was trying this formula:
{=SUM(--(FREQUENCY(IF((S_Shop_events="x")*(Event={"5S","BE CW"}),ROW(S_Shop_events)),ROW(S_Shop_events))0) )}
And this:
{=SUM(--(FREQUENCY(IF((S_Shop_events="x")*OR((Event="5S"), (Event="BECW")),ROW(S_Shop_events)),ROW(S_Shop_eve nts))0))}
But they didn't work, the second version did returned result but incorekt.
Any suggestions!
Thank you,
Guntars



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
Array function with more than 29 arguments [email protected] Excel Discussion (Misc queries) 2 April 15th 07 08:18 PM
Array function with more than 29 arguments [email protected] Excel Discussion (Misc queries) 3 April 15th 07 03:40 PM
Search for 2 true arguments and return true or false David Excel Discussion (Misc queries) 3 July 15th 06 10:18 AM
2 way Vlookup - Creating array arguments from columns Hari Excel Discussion (Misc queries) 1 May 11th 06 01:18 PM
How do I set up an array using countif for 2 separate arguments. crich Excel Worksheet Functions 5 August 16th 05 09:22 AM


All times are GMT +1. The time now is 12:55 PM.

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"