+ Reply to Thread
Results 1 to 9 of 9

If condition whilst using dates

  1. #1
    Registered User
    Join Date
    03-07-2007
    Posts
    6

    If condition whilst using dates

    Hi,

    I have prepared an excel sheet to derive quality stats for my team.

    My requirement is:

    As per the dates pull up the requisite records (Audits passed out of total audits done) and compute the formulae. I have used the "If" condition, but to no avail.

    The formula I used is:

    =IF('XYZ'!$B$1:$B$59<=39388,COUNTIF('XYZ'!$E$1:$E$59,"Pass")) where XYZ is the name of the person

    Here 39388 indicates November 2, 2007

    Please can someone help me?

  2. #2
    Forum Contributor
    Join Date
    10-30-2007
    Location
    Norway
    MS-Off Ver
    MS Office 2007
    Posts
    345
    Can you post an example sheet of your data and what result you want ?
    Put the sheet in a .zip file and attach to your reply

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    =SUMPRODUCT(--(TEXT(XYZ!$B$1:$B$59,"dd/mm/yy")="02/11/07")*(XYZ!$E$1:$E$59="Pass"))
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Registered User
    Join Date
    03-07-2007
    Posts
    6
    Quote Originally Posted by Bjornar
    Can you post an example sheet of your data and what result you want ?
    Put the sheet in a .zip file and attach to your reply

    Have attached the same. Thank you.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-07-2007
    Posts
    6
    Quote Originally Posted by VBA Noob
    Maybe



    VBA Noob
    Thank you very much for your help.

  6. #6
    Registered User
    Join Date
    03-07-2007
    Posts
    6
    Quote Originally Posted by VBA Noob
    Maybe



    VBA Noob
    Thanks for this.

    What if I wish compute quality as per the indicated date range, say between 05/11 to 09/11 as mentioned in my sheet above.

    Thanks again.

  7. #7
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    See if this helps

    =SUMPRODUCT(--(TEXT(XYZ!$B$1:$B$59,"dd/mm/yy")>="05/11/07")*(TEXT(XYZ!$B$1:$B$59,"dd/mm/yy")<="09/11/07")*(XYZ!$E$1:$E$59="Pass"))
    VBA Noob

  8. #8
    Registered User
    Join Date
    03-07-2007
    Posts
    6
    Quote Originally Posted by VBA Noob
    See if this helps

    VBA Noob

    Thank you so much. That worked.

    Also, if I wish to count the pass out of (total) as per the date range specified, how do I do it? Earlier as per my attached sheet I had used CountA, but without specifying the date range.

    In case I want to change the formulaes across the cells as per the name of the persons (actual name instead of XYZ as per the name of different employees) as mentioned in the sheet quickly, is there a faster way than the current manual method which I am resorting to?

    Many thanks for all your help.
    Last edited by OnlyFun; 11-01-2007 at 03:58 PM.

  9. #9
    Registered User
    Join Date
    03-07-2007
    Posts
    6
    Please please could someone help? Many thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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