+ Reply to Thread
Results 1 to 66 of 66

IF STATEMEMNTS

Hybrid View

  1. #1
    Judy
    Guest

    IF STATEMEMNTS

    I once knew this... how can I nest a COUNTIF statement within an IF
    statement? As in, If A:A = 9/1/2005 count B:B if = "A"

    (I'm trying to count the number of As, Bc, Cs, etc based on a large
    worksheet by months.

    Thanks!

  2. #2
    David Billigmeier
    Guest

    RE: IF STATEMEMNTS

    Assume your dates are in the range A1:A5 and column B range is from B1:B5,
    this formula will work:

    =SUMPRODUCT(--(MONTH(A1:A5)=9),--(B1:B5="A"))

    Hope that helps,
    --
    Regards,

    David Billigmeier



    "Judy" wrote:

    > I once knew this... how can I nest a COUNTIF statement within an IF
    > statement? As in, If A:A = 9/1/2005 count B:B if = "A"
    >
    > (I'm trying to count the number of As, Bc, Cs, etc based on a large
    > worksheet by months.
    >
    > Thanks!


  3. #3
    David Billigmeier
    Guest

    RE: IF STATEMEMNTS

    Assume your dates are in the range A1:A5 and column B range is from B1:B5,
    this formula will work:

    =SUMPRODUCT(--(MONTH(A1:A5)=9),--(B1:B5="A"))

    Hope that helps,
    --
    Regards,

    David Billigmeier



    "Judy" wrote:

    > I once knew this... how can I nest a COUNTIF statement within an IF
    > statement? As in, If A:A = 9/1/2005 count B:B if = "A"
    >
    > (I'm trying to count the number of As, Bc, Cs, etc based on a large
    > worksheet by months.
    >
    > Thanks!


  4. #4
    David Billigmeier
    Guest

    RE: IF STATEMEMNTS

    Assume your dates are in the range A1:A5 and column B range is from B1:B5,
    this formula will work:

    =SUMPRODUCT(--(MONTH(A1:A5)=9),--(B1:B5="A"))

    Hope that helps,
    --
    Regards,

    David Billigmeier



    "Judy" wrote:

    > I once knew this... how can I nest a COUNTIF statement within an IF
    > statement? As in, If A:A = 9/1/2005 count B:B if = "A"
    >
    > (I'm trying to count the number of As, Bc, Cs, etc based on a large
    > worksheet by months.
    >
    > Thanks!


  5. #5
    David Billigmeier
    Guest

    RE: IF STATEMEMNTS

    Assume your dates are in the range A1:A5 and column B range is from B1:B5,
    this formula will work:

    =SUMPRODUCT(--(MONTH(A1:A5)=9),--(B1:B5="A"))

    Hope that helps,
    --
    Regards,

    David Billigmeier



    "Judy" wrote:

    > I once knew this... how can I nest a COUNTIF statement within an IF
    > statement? As in, If A:A = 9/1/2005 count B:B if = "A"
    >
    > (I'm trying to count the number of As, Bc, Cs, etc based on a large
    > worksheet by months.
    >
    > Thanks!


  6. #6
    David Billigmeier
    Guest

    RE: IF STATEMEMNTS

    Assume your dates are in the range A1:A5 and column B range is from B1:B5,
    this formula will work:

    =SUMPRODUCT(--(MONTH(A1:A5)=9),--(B1:B5="A"))

    Hope that helps,
    --
    Regards,

    David Billigmeier



    "Judy" wrote:

    > I once knew this... how can I nest a COUNTIF statement within an IF
    > statement? As in, If A:A = 9/1/2005 count B:B if = "A"
    >
    > (I'm trying to count the number of As, Bc, Cs, etc based on a large
    > worksheet by months.
    >
    > Thanks!


  7. #7
    JE McGimpsey
    Guest

    Re: IF STATEMEMNTS

    One way:

    =SUMPRODUCT(--(A1:A1000=DATE(2005,9,1)),--(B1:B1000="A"))

    Or if months:

    =SUMPRODUCT(--(MONTH(A1:A1000)=9),(B1:B1000="A"))

    In article <[email protected]>,
    "Judy" <[email protected]> wrote:

    > I once knew this... how can I nest a COUNTIF statement within an IF
    > statement? As in, If A:A = 9/1/2005 count B:B if = "A"
    >
    > (I'm trying to count the number of As, Bc, Cs, etc based on a large
    > worksheet by months.
    >
    > Thanks!


  8. #8
    JE McGimpsey
    Guest

    Re: IF STATEMEMNTS

    One way:

    =SUMPRODUCT(--(A1:A1000=DATE(2005,9,1)),--(B1:B1000="A"))

    Or if months:

    =SUMPRODUCT(--(MONTH(A1:A1000)=9),(B1:B1000="A"))

    In article <[email protected]>,
    "Judy" <[email protected]> wrote:

    > I once knew this... how can I nest a COUNTIF statement within an IF
    > statement? As in, If A:A = 9/1/2005 count B:B if = "A"
    >
    > (I'm trying to count the number of As, Bc, Cs, etc based on a large
    > worksheet by months.
    >
    > Thanks!


  9. #9
    Judy
    Guest

    Re: IF STATEMEMNTS

    thanks to you both. This works on the same worksheet, but not a different
    worksheet I'm using for a summary... why would that be?

    "JE McGimpsey" wrote:

    > One way:
    >
    > =SUMPRODUCT(--(A1:A1000=DATE(2005,9,1)),--(B1:B1000="A"))
    >
    > Or if months:
    >
    > =SUMPRODUCT(--(MONTH(A1:A1000)=9),(B1:B1000="A"))
    >
    > In article <[email protected]>,
    > "Judy" <[email protected]> wrote:
    >
    > > I once knew this... how can I nest a COUNTIF statement within an IF
    > > statement? As in, If A:A = 9/1/2005 count B:B if = "A"
    > >
    > > (I'm trying to count the number of As, Bc, Cs, etc based on a large
    > > worksheet by months.
    > >
    > > Thanks!

    >


  10. #10
    JE McGimpsey
    Guest

    Re: IF STATEMEMNTS

    Probably because the changes you made to the formula were incorrect.

    What do you mean when you say it didn't work? Did you get an error? an
    incorrect result? a crash? no result?


    In article <[email protected]>,
    "Judy" <[email protected]> wrote:

    > thanks to you both. This works on the same worksheet, but not a different
    > worksheet I'm using for a summary... why would that be?


  11. #11
    JE McGimpsey
    Guest

    Re: IF STATEMEMNTS

    Probably because the changes you made to the formula were incorrect.

    What do you mean when you say it didn't work? Did you get an error? an
    incorrect result? a crash? no result?


    In article <[email protected]>,
    "Judy" <[email protected]> wrote:

    > thanks to you both. This works on the same worksheet, but not a different
    > worksheet I'm using for a summary... why would that be?


  12. #12
    Judy
    Guest

    Re: IF STATEMEMNTS

    I changed it as follows:

    Your example:
    =SUMPRODUCT(--(MONTH(A1:A1000)=9),(B1:B1000="A"))

    =SUMPRODUCT(--(MONTH('2005'!A:A)=9),--('2005'!J:J="A"))
    I get #NUM! with this one.

    =SUMPRODUCT(--(MONTH('2005'!A1:A2000)=9),--('2005'!J1:J2000="A"))
    I get #VALUE! with this one

    2005 is the name of the worksheet with the data. Thanks for your help.


    "JE McGimpsey" wrote:

    > Probably because the changes you made to the formula were incorrect.
    >
    > What do you mean when you say it didn't work? Did you get an error? an
    > incorrect result? a crash? no result?
    >
    >
    > In article <[email protected]>,
    > "Judy" <[email protected]> wrote:
    >
    > > thanks to you both. This works on the same worksheet, but not a different
    > > worksheet I'm using for a summary... why would that be?

    >


  13. #13
    JE McGimpsey
    Guest

    Re: IF STATEMEMNTS

    Your #NUM! error comes from the fact that you can't use entire columns
    (or rows) in array formulae - and SUMPRODUCT is an array formula even if
    you don't need to use Control-Shift-Enter.

    The #VALUE! error works for me. Check to see that you don't have a cell
    with #VALUE! in A1:A2000 or J1:J2000.



    In article <[email protected]>,
    "Judy" <[email protected]> wrote:

    > I changed it as follows:
    >
    > Your example:
    > =SUMPRODUCT(--(MONTH(A1:A1000)=9),(B1:B1000="A"))
    >
    > =SUMPRODUCT(--(MONTH('2005'!A:A)=9),--('2005'!J:J="A"))
    > I get #NUM! with this one.
    >
    > =SUMPRODUCT(--(MONTH('2005'!A1:A2000)=9),--('2005'!J1:J2000="A"))
    > I get #VALUE! with this one
    >
    > 2005 is the name of the worksheet with the data. Thanks for your help.
    >
    >
    > "JE McGimpsey" wrote:
    >
    > > Probably because the changes you made to the formula were incorrect.
    > >
    > > What do you mean when you say it didn't work? Did you get an error? an
    > > incorrect result? a crash? no result?
    > >
    > >
    > > In article <[email protected]>,
    > > "Judy" <[email protected]> wrote:
    > >
    > > > thanks to you both. This works on the same worksheet, but not a
    > > > different
    > > > worksheet I'm using for a summary... why would that be?

    > >


  14. #14
    JE McGimpsey
    Guest

    Re: IF STATEMEMNTS

    Your #NUM! error comes from the fact that you can't use entire columns
    (or rows) in array formulae - and SUMPRODUCT is an array formula even if
    you don't need to use Control-Shift-Enter.

    The #VALUE! error works for me. Check to see that you don't have a cell
    with #VALUE! in A1:A2000 or J1:J2000.



    In article <[email protected]>,
    "Judy" <[email protected]> wrote:

    > I changed it as follows:
    >
    > Your example:
    > =SUMPRODUCT(--(MONTH(A1:A1000)=9),(B1:B1000="A"))
    >
    > =SUMPRODUCT(--(MONTH('2005'!A:A)=9),--('2005'!J:J="A"))
    > I get #NUM! with this one.
    >
    > =SUMPRODUCT(--(MONTH('2005'!A1:A2000)=9),--('2005'!J1:J2000="A"))
    > I get #VALUE! with this one
    >
    > 2005 is the name of the worksheet with the data. Thanks for your help.
    >
    >
    > "JE McGimpsey" wrote:
    >
    > > Probably because the changes you made to the formula were incorrect.
    > >
    > > What do you mean when you say it didn't work? Did you get an error? an
    > > incorrect result? a crash? no result?
    > >
    > >
    > > In article <[email protected]>,
    > > "Judy" <[email protected]> wrote:
    > >
    > > > thanks to you both. This works on the same worksheet, but not a
    > > > different
    > > > worksheet I'm using for a summary... why would that be?

    > >


  15. #15
    JE McGimpsey
    Guest

    Re: IF STATEMEMNTS

    Your #NUM! error comes from the fact that you can't use entire columns
    (or rows) in array formulae - and SUMPRODUCT is an array formula even if
    you don't need to use Control-Shift-Enter.

    The #VALUE! error works for me. Check to see that you don't have a cell
    with #VALUE! in A1:A2000 or J1:J2000.



    In article <[email protected]>,
    "Judy" <[email protected]> wrote:

    > I changed it as follows:
    >
    > Your example:
    > =SUMPRODUCT(--(MONTH(A1:A1000)=9),(B1:B1000="A"))
    >
    > =SUMPRODUCT(--(MONTH('2005'!A:A)=9),--('2005'!J:J="A"))
    > I get #NUM! with this one.
    >
    > =SUMPRODUCT(--(MONTH('2005'!A1:A2000)=9),--('2005'!J1:J2000="A"))
    > I get #VALUE! with this one
    >
    > 2005 is the name of the worksheet with the data. Thanks for your help.
    >
    >
    > "JE McGimpsey" wrote:
    >
    > > Probably because the changes you made to the formula were incorrect.
    > >
    > > What do you mean when you say it didn't work? Did you get an error? an
    > > incorrect result? a crash? no result?
    > >
    > >
    > > In article <[email protected]>,
    > > "Judy" <[email protected]> wrote:
    > >
    > > > thanks to you both. This works on the same worksheet, but not a
    > > > different
    > > > worksheet I'm using for a summary... why would that be?

    > >


  16. #16
    JE McGimpsey
    Guest

    Re: IF STATEMEMNTS

    Your #NUM! error comes from the fact that you can't use entire columns
    (or rows) in array formulae - and SUMPRODUCT is an array formula even if
    you don't need to use Control-Shift-Enter.

    The #VALUE! error works for me. Check to see that you don't have a cell
    with #VALUE! in A1:A2000 or J1:J2000.



    In article <[email protected]>,
    "Judy" <[email protected]> wrote:

    > I changed it as follows:
    >
    > Your example:
    > =SUMPRODUCT(--(MONTH(A1:A1000)=9),(B1:B1000="A"))
    >
    > =SUMPRODUCT(--(MONTH('2005'!A:A)=9),--('2005'!J:J="A"))
    > I get #NUM! with this one.
    >
    > =SUMPRODUCT(--(MONTH('2005'!A1:A2000)=9),--('2005'!J1:J2000="A"))
    > I get #VALUE! with this one
    >
    > 2005 is the name of the worksheet with the data. Thanks for your help.
    >
    >
    > "JE McGimpsey" wrote:
    >
    > > Probably because the changes you made to the formula were incorrect.
    > >
    > > What do you mean when you say it didn't work? Did you get an error? an
    > > incorrect result? a crash? no result?
    > >
    > >
    > > In article <[email protected]>,
    > > "Judy" <[email protected]> wrote:
    > >
    > > > thanks to you both. This works on the same worksheet, but not a
    > > > different
    > > > worksheet I'm using for a summary... why would that be?

    > >


  17. #17
    JE McGimpsey
    Guest

    Re: IF STATEMEMNTS

    Your #NUM! error comes from the fact that you can't use entire columns
    (or rows) in array formulae - and SUMPRODUCT is an array formula even if
    you don't need to use Control-Shift-Enter.

    The #VALUE! error works for me. Check to see that you don't have a cell
    with #VALUE! in A1:A2000 or J1:J2000.



    In article <[email protected]>,
    "Judy" <[email protected]> wrote:

    > I changed it as follows:
    >
    > Your example:
    > =SUMPRODUCT(--(MONTH(A1:A1000)=9),(B1:B1000="A"))
    >
    > =SUMPRODUCT(--(MONTH('2005'!A:A)=9),--('2005'!J:J="A"))
    > I get #NUM! with this one.
    >
    > =SUMPRODUCT(--(MONTH('2005'!A1:A2000)=9),--('2005'!J1:J2000="A"))
    > I get #VALUE! with this one
    >
    > 2005 is the name of the worksheet with the data. Thanks for your help.
    >
    >
    > "JE McGimpsey" wrote:
    >
    > > Probably because the changes you made to the formula were incorrect.
    > >
    > > What do you mean when you say it didn't work? Did you get an error? an
    > > incorrect result? a crash? no result?
    > >
    > >
    > > In article <[email protected]>,
    > > "Judy" <[email protected]> wrote:
    > >
    > > > thanks to you both. This works on the same worksheet, but not a
    > > > different
    > > > worksheet I'm using for a summary... why would that be?

    > >


  18. #18
    Judy
    Guest

    Re: IF STATEMEMNTS

    I changed it as follows:

    Your example:
    =SUMPRODUCT(--(MONTH(A1:A1000)=9),(B1:B1000="A"))

    =SUMPRODUCT(--(MONTH('2005'!A:A)=9),--('2005'!J:J="A"))
    I get #NUM! with this one.

    =SUMPRODUCT(--(MONTH('2005'!A1:A2000)=9),--('2005'!J1:J2000="A"))
    I get #VALUE! with this one

    2005 is the name of the worksheet with the data. Thanks for your help.


    "JE McGimpsey" wrote:

    > Probably because the changes you made to the formula were incorrect.
    >
    > What do you mean when you say it didn't work? Did you get an error? an
    > incorrect result? a crash? no result?
    >
    >
    > In article <[email protected]>,
    > "Judy" <[email protected]> wrote:
    >
    > > thanks to you both. This works on the same worksheet, but not a different
    > > worksheet I'm using for a summary... why would that be?

    >


  19. #19
    Judy
    Guest

    Re: IF STATEMEMNTS

    I changed it as follows:

    Your example:
    =SUMPRODUCT(--(MONTH(A1:A1000)=9),(B1:B1000="A"))

    =SUMPRODUCT(--(MONTH('2005'!A:A)=9),--('2005'!J:J="A"))
    I get #NUM! with this one.

    =SUMPRODUCT(--(MONTH('2005'!A1:A2000)=9),--('2005'!J1:J2000="A"))
    I get #VALUE! with this one

    2005 is the name of the worksheet with the data. Thanks for your help.


    "JE McGimpsey" wrote:

    > Probably because the changes you made to the formula were incorrect.
    >
    > What do you mean when you say it didn't work? Did you get an error? an
    > incorrect result? a crash? no result?
    >
    >
    > In article <[email protected]>,
    > "Judy" <[email protected]> wrote:
    >
    > > thanks to you both. This works on the same worksheet, but not a different
    > > worksheet I'm using for a summary... why would that be?

    >


  20. #20
    Judy
    Guest

    Re: IF STATEMEMNTS

    I changed it as follows:

    Your example:
    =SUMPRODUCT(--(MONTH(A1:A1000)=9),(B1:B1000="A"))

    =SUMPRODUCT(--(MONTH('2005'!A:A)=9),--('2005'!J:J="A"))
    I get #NUM! with this one.

    =SUMPRODUCT(--(MONTH('2005'!A1:A2000)=9),--('2005'!J1:J2000="A"))
    I get #VALUE! with this one

    2005 is the name of the worksheet with the data. Thanks for your help.


    "JE McGimpsey" wrote:

    > Probably because the changes you made to the formula were incorrect.
    >
    > What do you mean when you say it didn't work? Did you get an error? an
    > incorrect result? a crash? no result?
    >
    >
    > In article <[email protected]>,
    > "Judy" <[email protected]> wrote:
    >
    > > thanks to you both. This works on the same worksheet, but not a different
    > > worksheet I'm using for a summary... why would that be?

    >


  21. #21
    Judy
    Guest

    Re: IF STATEMEMNTS

    I changed it as follows:

    Your example:
    =SUMPRODUCT(--(MONTH(A1:A1000)=9),(B1:B1000="A"))

    =SUMPRODUCT(--(MONTH('2005'!A:A)=9),--('2005'!J:J="A"))
    I get #NUM! with this one.

    =SUMPRODUCT(--(MONTH('2005'!A1:A2000)=9),--('2005'!J1:J2000="A"))
    I get #VALUE! with this one

    2005 is the name of the worksheet with the data. Thanks for your help.


    "JE McGimpsey" wrote:

    > Probably because the changes you made to the formula were incorrect.
    >
    > What do you mean when you say it didn't work? Did you get an error? an
    > incorrect result? a crash? no result?
    >
    >
    > In article <[email protected]>,
    > "Judy" <[email protected]> wrote:
    >
    > > thanks to you both. This works on the same worksheet, but not a different
    > > worksheet I'm using for a summary... why would that be?

    >


  22. #22
    JE McGimpsey
    Guest

    Re: IF STATEMEMNTS

    Probably because the changes you made to the formula were incorrect.

    What do you mean when you say it didn't work? Did you get an error? an
    incorrect result? a crash? no result?


    In article <[email protected]>,
    "Judy" <[email protected]> wrote:

    > thanks to you both. This works on the same worksheet, but not a different
    > worksheet I'm using for a summary... why would that be?


  23. #23
    JE McGimpsey
    Guest

    Re: IF STATEMEMNTS

    Probably because the changes you made to the formula were incorrect.

    What do you mean when you say it didn't work? Did you get an error? an
    incorrect result? a crash? no result?


    In article <[email protected]>,
    "Judy" <[email protected]> wrote:

    > thanks to you both. This works on the same worksheet, but not a different
    > worksheet I'm using for a summary... why would that be?


  24. #24
    JE McGimpsey
    Guest

    Re: IF STATEMEMNTS

    Probably because the changes you made to the formula were incorrect.

    What do you mean when you say it didn't work? Did you get an error? an
    incorrect result? a crash? no result?


    In article <[email protected]>,
    "Judy" <[email protected]> wrote:

    > thanks to you both. This works on the same worksheet, but not a different
    > worksheet I'm using for a summary... why would that be?


  25. #25
    Judy
    Guest

    Re: IF STATEMEMNTS

    thanks to you both. This works on the same worksheet, but not a different
    worksheet I'm using for a summary... why would that be?

    "JE McGimpsey" wrote:

    > One way:
    >
    > =SUMPRODUCT(--(A1:A1000=DATE(2005,9,1)),--(B1:B1000="A"))
    >
    > Or if months:
    >
    > =SUMPRODUCT(--(MONTH(A1:A1000)=9),(B1:B1000="A"))
    >
    > In article <[email protected]>,
    > "Judy" <[email protected]> wrote:
    >
    > > I once knew this... how can I nest a COUNTIF statement within an IF
    > > statement? As in, If A:A = 9/1/2005 count B:B if = "A"
    > >
    > > (I'm trying to count the number of As, Bc, Cs, etc based on a large
    > > worksheet by months.
    > >
    > > Thanks!

    >


  26. #26
    Judy
    Guest

    Re: IF STATEMEMNTS

    thanks to you both. This works on the same worksheet, but not a different
    worksheet I'm using for a summary... why would that be?

    "JE McGimpsey" wrote:

    > One way:
    >
    > =SUMPRODUCT(--(A1:A1000=DATE(2005,9,1)),--(B1:B1000="A"))
    >
    > Or if months:
    >
    > =SUMPRODUCT(--(MONTH(A1:A1000)=9),(B1:B1000="A"))
    >
    > In article <[email protected]>,
    > "Judy" <[email protected]> wrote:
    >
    > > I once knew this... how can I nest a COUNTIF statement within an IF
    > > statement? As in, If A:A = 9/1/2005 count B:B if = "A"
    > >
    > > (I'm trying to count the number of As, Bc, Cs, etc based on a large
    > > worksheet by months.
    > >
    > > Thanks!

    >


  27. #27
    Judy
    Guest

    Re: IF STATEMEMNTS

    thanks to you both. This works on the same worksheet, but not a different
    worksheet I'm using for a summary... why would that be?

    "JE McGimpsey" wrote:

    > One way:
    >
    > =SUMPRODUCT(--(A1:A1000=DATE(2005,9,1)),--(B1:B1000="A"))
    >
    > Or if months:
    >
    > =SUMPRODUCT(--(MONTH(A1:A1000)=9),(B1:B1000="A"))
    >
    > In article <[email protected]>,
    > "Judy" <[email protected]> wrote:
    >
    > > I once knew this... how can I nest a COUNTIF statement within an IF
    > > statement? As in, If A:A = 9/1/2005 count B:B if = "A"
    > >
    > > (I'm trying to count the number of As, Bc, Cs, etc based on a large
    > > worksheet by months.
    > >
    > > Thanks!

    >


  28. #28
    Judy
    Guest

    Re: IF STATEMEMNTS

    thanks to you both. This works on the same worksheet, but not a different
    worksheet I'm using for a summary... why would that be?

    "JE McGimpsey" wrote:

    > One way:
    >
    > =SUMPRODUCT(--(A1:A1000=DATE(2005,9,1)),--(B1:B1000="A"))
    >
    > Or if months:
    >
    > =SUMPRODUCT(--(MONTH(A1:A1000)=9),(B1:B1000="A"))
    >
    > In article <[email protected]>,
    > "Judy" <[email protected]> wrote:
    >
    > > I once knew this... how can I nest a COUNTIF statement within an IF
    > > statement? As in, If A:A = 9/1/2005 count B:B if = "A"
    > >
    > > (I'm trying to count the number of As, Bc, Cs, etc based on a large
    > > worksheet by months.
    > >
    > > Thanks!

    >


  29. #29
    JE McGimpsey
    Guest

    Re: IF STATEMEMNTS

    One way:

    =SUMPRODUCT(--(A1:A1000=DATE(2005,9,1)),--(B1:B1000="A"))

    Or if months:

    =SUMPRODUCT(--(MONTH(A1:A1000)=9),(B1:B1000="A"))

    In article <[email protected]>,
    "Judy" <[email protected]> wrote:

    > I once knew this... how can I nest a COUNTIF statement within an IF
    > statement? As in, If A:A = 9/1/2005 count B:B if = "A"
    >
    > (I'm trying to count the number of As, Bc, Cs, etc based on a large
    > worksheet by months.
    >
    > Thanks!


  30. #30
    JE McGimpsey
    Guest

    Re: IF STATEMEMNTS

    One way:

    =SUMPRODUCT(--(A1:A1000=DATE(2005,9,1)),--(B1:B1000="A"))

    Or if months:

    =SUMPRODUCT(--(MONTH(A1:A1000)=9),(B1:B1000="A"))

    In article <[email protected]>,
    "Judy" <[email protected]> wrote:

    > I once knew this... how can I nest a COUNTIF statement within an IF
    > statement? As in, If A:A = 9/1/2005 count B:B if = "A"
    >
    > (I'm trying to count the number of As, Bc, Cs, etc based on a large
    > worksheet by months.
    >
    > Thanks!


  31. #31
    JE McGimpsey
    Guest

    Re: IF STATEMEMNTS

    One way:

    =SUMPRODUCT(--(A1:A1000=DATE(2005,9,1)),--(B1:B1000="A"))

    Or if months:

    =SUMPRODUCT(--(MONTH(A1:A1000)=9),(B1:B1000="A"))

    In article <[email protected]>,
    "Judy" <[email protected]> wrote:

    > I once knew this... how can I nest a COUNTIF statement within an IF
    > statement? As in, If A:A = 9/1/2005 count B:B if = "A"
    >
    > (I'm trying to count the number of As, Bc, Cs, etc based on a large
    > worksheet by months.
    >
    > 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