#1   Report Post  
Junior Member
 
Posts: 2
Default Embedded Count If

I'm having a problem either with the syntax of the formula or the the whole formula itself...

=COUNT(IF((GBPUSD!A:A<=C1)*(GBPUSD!A:A=A1), (GBPUSD!D:D),"<0"))

-The formula is in one sheet, and the array is on another.
-Cells A1 and C1 are the specified date ranges I need to filter by.
-Range A:A contains date values
-Range D:D contains percentage values
(Yes, I'm also entering the array with C+S+E...)

Worksheet GBPUSD contains several years worth of information and I'm attempting to filter out positive, negative and zero values based on the specified date range on the formula worksheet.

I'm currently encountering the problem that the formula merely counts the total values in Column D regardless of the formula containing <0 0 or =0 ...

If anyone can shed some light on this problem it would be greatly appreciated!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,872
Default Embedded Count If

Hi,

Am Thu, 10 May 2012 15:21:27 +0000 schrieb neorobert:

I'm having a problem either with the syntax of the formula or the the
whole formula itself...

=COUNT(IF((GBPUSD!A:A<=C1)*(GBPUSD!A:A=A1), (GBPUSD!D:D),"<0"))

-The formula is in one sheet, and the array is on another.
-Cells A1 and C1 are the specified date ranges I need to filter by.
-Range A:A contains date values
-Range D:D contains percentage values
(Yes, I'm also entering the array with C+S+E...)


Try:
=SUMPRODUCT(--(GBPUSD!A1:A1000=A1),--(GBPUSD!A1:A1000<=C1),--(GBPUSD!D1:D1000<=0))


Regards
Claus Busch
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
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
count duplicats, display incremental count, restart count at changein value JenIT Excel Programming 2 August 24th 10 09:10 PM
Embedded if? Timbo[_2_] Excel Worksheet Functions 2 January 22nd 09 12:30 AM
Embedded file Dragon Excel Discussion (Misc queries) 2 August 16th 08 11:07 AM
embedded ifs Daniel Q. Excel Worksheet Functions 3 July 25th 06 05:26 PM
Embedded queries... James McDowell[_2_] Excel Programming 4 February 1st 06 06:43 PM


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