+ Reply to Thread
Results 1 to 5 of 5

Embedded Count If

  1. #1
    Registered User
    Join Date
    05-10-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    5

    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),"<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 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. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Embedded Count If

    You are using 2010?

    If so, you can use Countifs and no need for CSE

    The proper syntax would be
    =COUNTIFS(GBPUSD!A:A,"<="&C1,GBPUSD!A:A,">="&A1,GBPUSD!D:D,"<0")
    Last edited by jeffreybrown; 05-10-2012 at 11:46 AM.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    05-10-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Embedded Count If

    Thanks Jeff !

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Embedded Count If

    You're very welcome...glad you got it all sorted out and thanks for the feedback

  5. #5
    Registered User
    Join Date
    05-10-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Embedded Count If

    Jeff - with the same example, I'm running into a zero value when I leave the end argument blank so that the cell counts ALL values (within the specified date range)...

    =COUNTIFS(GBPUSD!A:A,"<="&C1,GBPUSD!A:A,">="&A1,GBPUSD!D:D,"")


    Same concept, but a correlation cell as well... I have too many arguments in the syntax... Correlation of two columns on separate sheets, given a date range... :S

    =CORREL(IF(EURCHF!A:A, "<="&C1, EURCHF!A:A, ">="&A1, GBPUSD!A:A, "<="&C1, USDGBP!A:A, ">="&A1, "") GBPUSD!D:D,EURCHF!D:D))

    Thoughts? Thanks again.
    Last edited by neorobert; 05-10-2012 at 12:58 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1