+ Reply to Thread
Results 1 to 10 of 10

CountIf Function Help

  1. #1
    ycart88
    Guest

    CountIf Function Help

    Hi all,

    I'm been trying to figure this out for days... I need to take the following
    sales lead information and plug some data from it into the summary page as
    shown below...

    DATA EXAMPLE (Sales Leads):

    LEAD DATE SOURCE HOMEBUILDER ... APPT SET
    (Column A) (Column B) (Column C) ... (Column Y)
    3/28/05 Homebuilder ASH N
    3/28/05 Homebuilder ASH Y

    SUMMARY EXAMPLE:
    Builder YTD Leads YTD Appts
    ASH 43
    CAC 33
    CAL 8
    COR 0

    So basically, if the Homebuilder "ASH" has had a total of 6 Appts Set ("Y"),
    I'd like to put a count in the corresponding YTD Appts cell. Here's how far
    I've gotten, and yes, I'm aware it's very flawed as I can only figure out how
    to count ALL of the "Y"'s and not just the ones for that builder ("ASH").
    lol Can you help?

    =COUNTIF(LEADS!C2:C599,'BLDR LEAD RPT'!A4) - COUNTIF(LEADS!Y2:Y599,"N")



  2. #2
    Bob Phillips
    Guest

    Re: CountIf Function Help

    =SUMPRODUCT(--(LEADS!A2:A599='BLDR LEAD RPT'!A4),--(LEADS!Y2:Y599="Y"))

    I think :-)

    --
    HTH

    Bob Phillips

    "ycart88" <[email protected]> wrote in message
    news:[email protected]...
    > Hi all,
    >
    > I'm been trying to figure this out for days... I need to take the

    following
    > sales lead information and plug some data from it into the summary page as
    > shown below...
    >
    > DATA EXAMPLE (Sales Leads):
    >
    > LEAD DATE SOURCE HOMEBUILDER ... APPT SET
    > (Column A) (Column B) (Column C) ... (Column Y)
    > 3/28/05 Homebuilder ASH N
    > 3/28/05 Homebuilder ASH Y
    >
    > SUMMARY EXAMPLE:
    > Builder YTD Leads YTD Appts
    > ASH 43
    > CAC 33
    > CAL 8
    > COR 0
    >
    > So basically, if the Homebuilder "ASH" has had a total of 6 Appts Set

    ("Y"),
    > I'd like to put a count in the corresponding YTD Appts cell. Here's how

    far
    > I've gotten, and yes, I'm aware it's very flawed as I can only figure out

    how
    > to count ALL of the "Y"'s and not just the ones for that builder ("ASH").
    > lol Can you help?
    >
    > =COUNTIF(LEADS!C2:C599,'BLDR LEAD RPT'!A4) - COUNTIF(LEADS!Y2:Y599,"N")
    >
    >




  3. #3
    ycart88
    Guest

    Re: CountIf Function Help

    I'm afraid all this returns is a zero...

    But thank you!


    "Bob Phillips" wrote:

    > =SUMPRODUCT(--(LEADS!A2:A599='BLDR LEAD RPT'!A4),--(LEADS!Y2:Y599="Y"))
    >
    > I think :-)
    >
    > --
    > HTH
    >
    > Bob Phillips
    >
    > "ycart88" <[email protected]> wrote in message
    > news:[email protected]...
    > > Hi all,
    > >
    > > I'm been trying to figure this out for days... I need to take the

    > following
    > > sales lead information and plug some data from it into the summary page as
    > > shown below...
    > >
    > > DATA EXAMPLE (Sales Leads):
    > >
    > > LEAD DATE SOURCE HOMEBUILDER ... APPT SET
    > > (Column A) (Column B) (Column C) ... (Column Y)
    > > 3/28/05 Homebuilder ASH N
    > > 3/28/05 Homebuilder ASH Y
    > >
    > > SUMMARY EXAMPLE:
    > > Builder YTD Leads YTD Appts
    > > ASH 43
    > > CAC 33
    > > CAL 8
    > > COR 0
    > >
    > > So basically, if the Homebuilder "ASH" has had a total of 6 Appts Set

    > ("Y"),
    > > I'd like to put a count in the corresponding YTD Appts cell. Here's how

    > far
    > > I've gotten, and yes, I'm aware it's very flawed as I can only figure out

    > how
    > > to count ALL of the "Y"'s and not just the ones for that builder ("ASH").
    > > lol Can you help?
    > >
    > > =COUNTIF(LEADS!C2:C599,'BLDR LEAD RPT'!A4) - COUNTIF(LEADS!Y2:Y599,"N")
    > >
    > >

    >
    >
    >


  4. #4
    Bob Phillips
    Guest

    Re: CountIf Function Help

    I assumed that 'BLDR LEAD RPT'!A4 holds the test value, such as ASH. Is that
    correct?

    --

    HTH

    RP
    (remove nothere from the email address if mailing direct)


    "ycart88" <[email protected]> wrote in message
    news:[email protected]...
    > I'm afraid all this returns is a zero...
    >
    > But thank you!
    >
    >
    > "Bob Phillips" wrote:
    >
    > > =SUMPRODUCT(--(LEADS!A2:A599='BLDR LEAD RPT'!A4),--(LEADS!Y2:Y599="Y"))
    > >
    > > I think :-)
    > >
    > > --
    > > HTH
    > >
    > > Bob Phillips
    > >
    > > "ycart88" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > Hi all,
    > > >
    > > > I'm been trying to figure this out for days... I need to take the

    > > following
    > > > sales lead information and plug some data from it into the summary

    page as
    > > > shown below...
    > > >
    > > > DATA EXAMPLE (Sales Leads):
    > > >
    > > > LEAD DATE SOURCE HOMEBUILDER ... APPT SET
    > > > (Column A) (Column B) (Column C) ... (Column Y)
    > > > 3/28/05 Homebuilder ASH N
    > > > 3/28/05 Homebuilder ASH Y
    > > >
    > > > SUMMARY EXAMPLE:
    > > > Builder YTD Leads YTD Appts
    > > > ASH 43
    > > > CAC 33
    > > > CAL 8
    > > > COR 0
    > > >
    > > > So basically, if the Homebuilder "ASH" has had a total of 6 Appts Set

    > > ("Y"),
    > > > I'd like to put a count in the corresponding YTD Appts cell. Here's

    how
    > > far
    > > > I've gotten, and yes, I'm aware it's very flawed as I can only figure

    out
    > > how
    > > > to count ALL of the "Y"'s and not just the ones for that builder

    ("ASH").
    > > > lol Can you help?
    > > >
    > > > =COUNTIF(LEADS!C2:C599,'BLDR LEAD RPT'!A4) -

    COUNTIF(LEADS!Y2:Y599,"N")
    > > >
    > > >

    > >
    > >
    > >




  5. #5
    ycart88
    Guest

    Re: CountIf Function Help

    Yes, you assumed correctly.


    "Bob Phillips" wrote:

    > I assumed that 'BLDR LEAD RPT'!A4 holds the test value, such as ASH. Is that
    > correct?
    >
    > --
    >
    > HTH
    >
    > RP
    > (remove nothere from the email address if mailing direct)
    >
    >
    > "ycart88" <[email protected]> wrote in message
    > news:[email protected]...
    > > I'm afraid all this returns is a zero...
    > >
    > > But thank you!
    > >
    > >
    > > "Bob Phillips" wrote:
    > >
    > > > =SUMPRODUCT(--(LEADS!A2:A599='BLDR LEAD RPT'!A4),--(LEADS!Y2:Y599="Y"))
    > > >
    > > > I think :-)
    > > >
    > > > --
    > > > HTH
    > > >
    > > > Bob Phillips
    > > >
    > > > "ycart88" <[email protected]> wrote in message
    > > > news:[email protected]...
    > > > > Hi all,
    > > > >
    > > > > I'm been trying to figure this out for days... I need to take the
    > > > following
    > > > > sales lead information and plug some data from it into the summary

    > page as
    > > > > shown below...
    > > > >
    > > > > DATA EXAMPLE (Sales Leads):
    > > > >
    > > > > LEAD DATE SOURCE HOMEBUILDER ... APPT SET
    > > > > (Column A) (Column B) (Column C) ... (Column Y)
    > > > > 3/28/05 Homebuilder ASH N
    > > > > 3/28/05 Homebuilder ASH Y
    > > > >
    > > > > SUMMARY EXAMPLE:
    > > > > Builder YTD Leads YTD Appts
    > > > > ASH 43
    > > > > CAC 33
    > > > > CAL 8
    > > > > COR 0
    > > > >
    > > > > So basically, if the Homebuilder "ASH" has had a total of 6 Appts Set
    > > > ("Y"),
    > > > > I'd like to put a count in the corresponding YTD Appts cell. Here's

    > how
    > > > far
    > > > > I've gotten, and yes, I'm aware it's very flawed as I can only figure

    > out
    > > > how
    > > > > to count ALL of the "Y"'s and not just the ones for that builder

    > ("ASH").
    > > > > lol Can you help?
    > > > >
    > > > > =COUNTIF(LEADS!C2:C599,'BLDR LEAD RPT'!A4) -

    > COUNTIF(LEADS!Y2:Y599,"N")
    > > > >
    > > > >
    > > >
    > > >
    > > >

    >
    >
    >


  6. #6
    Duke Carey
    Guest

    Re: CountIf Function Help

    Maybe just a slight modification to Bob's formula (changes the first range to
    column C from column A)

    =SUMPRODUCT(--(LEADS!C2:C599='BLDR LEAD RPT'!A4),--(LEADS!Y2:Y599="Y"))


    "Bob Phillips" wrote:

    > =SUMPRODUCT(--(LEADS!A2:A599='BLDR LEAD RPT'!A4),--(LEADS!Y2:Y599="Y"))
    >
    > I think :-)
    >
    > --
    > HTH
    >
    > Bob Phillips
    >
    > "ycart88" <[email protected]> wrote in message
    > news:[email protected]...
    > > Hi all,
    > >
    > > I'm been trying to figure this out for days... I need to take the

    > following
    > > sales lead information and plug some data from it into the summary page as
    > > shown below...
    > >
    > > DATA EXAMPLE (Sales Leads):
    > >
    > > LEAD DATE SOURCE HOMEBUILDER ... APPT SET
    > > (Column A) (Column B) (Column C) ... (Column Y)
    > > 3/28/05 Homebuilder ASH N
    > > 3/28/05 Homebuilder ASH Y
    > >
    > > SUMMARY EXAMPLE:
    > > Builder YTD Leads YTD Appts
    > > ASH 43
    > > CAC 33
    > > CAL 8
    > > COR 0
    > >
    > > So basically, if the Homebuilder "ASH" has had a total of 6 Appts Set

    > ("Y"),
    > > I'd like to put a count in the corresponding YTD Appts cell. Here's how

    > far
    > > I've gotten, and yes, I'm aware it's very flawed as I can only figure out

    > how
    > > to count ALL of the "Y"'s and not just the ones for that builder ("ASH").
    > > lol Can you help?
    > >
    > > =COUNTIF(LEADS!C2:C599,'BLDR LEAD RPT'!A4) - COUNTIF(LEADS!Y2:Y599,"N")
    > >
    > >

    >
    >
    >


  7. #7
    ycart88
    Guest

    Re: CountIf Function Help

    Thanks, Duke and Bob! You guys are the best! Say, if I had a date column
    and wanted to narrow down the YTD field to MTD, would you happen to know what
    I could add to this formula?

    THANKS again!!!
    Tracy

    "Duke Carey" wrote:

    > Maybe just a slight modification to Bob's formula (changes the first range to
    > column C from column A)
    >
    > =SUMPRODUCT(--(LEADS!C2:C599='BLDR LEAD RPT'!A4),--(LEADS!Y2:Y599="Y"))
    >
    >
    > "Bob Phillips" wrote:
    >
    > > =SUMPRODUCT(--(LEADS!A2:A599='BLDR LEAD RPT'!A4),--(LEADS!Y2:Y599="Y"))
    > >
    > > I think :-)
    > >
    > > --
    > > HTH
    > >
    > > Bob Phillips
    > >
    > > "ycart88" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > Hi all,
    > > >
    > > > I'm been trying to figure this out for days... I need to take the

    > > following
    > > > sales lead information and plug some data from it into the summary page as
    > > > shown below...
    > > >
    > > > DATA EXAMPLE (Sales Leads):
    > > >
    > > > LEAD DATE SOURCE HOMEBUILDER ... APPT SET
    > > > (Column A) (Column B) (Column C) ... (Column Y)
    > > > 3/28/05 Homebuilder ASH N
    > > > 3/28/05 Homebuilder ASH Y
    > > >
    > > > SUMMARY EXAMPLE:
    > > > Builder YTD Leads YTD Appts
    > > > ASH 43
    > > > CAC 33
    > > > CAL 8
    > > > COR 0
    > > >
    > > > So basically, if the Homebuilder "ASH" has had a total of 6 Appts Set

    > > ("Y"),
    > > > I'd like to put a count in the corresponding YTD Appts cell. Here's how

    > > far
    > > > I've gotten, and yes, I'm aware it's very flawed as I can only figure out

    > > how
    > > > to count ALL of the "Y"'s and not just the ones for that builder ("ASH").
    > > > lol Can you help?
    > > >
    > > > =COUNTIF(LEADS!C2:C599,'BLDR LEAD RPT'!A4) - COUNTIF(LEADS!Y2:Y599,"N")
    > > >
    > > >

    > >
    > >
    > >


  8. #8
    Bob Phillips
    Guest

    Re: CountIf Function Help

    Do you mean the figures for a certain month? If so then use something like

    =SUMPRODUCT(--(TEXT(LEADS!A2:A599,"mmm")="Mar"),(--(LEADS!C2:C599='BLDR LEAD
    RPT'!A4),--(LEADS!Y2:Y599="Y"))


    --
    HTH

    Bob Phillips

    "ycart88" <[email protected]> wrote in message
    news:[email protected]...
    > Thanks, Duke and Bob! You guys are the best! Say, if I had a date column
    > and wanted to narrow down the YTD field to MTD, would you happen to know

    what
    > I could add to this formula?
    >
    > THANKS again!!!
    > Tracy
    >
    > "Duke Carey" wrote:
    >
    > > Maybe just a slight modification to Bob's formula (changes the first

    range to
    > > column C from column A)
    > >
    > > =SUMPRODUCT(--(LEADS!C2:C599='BLDR LEAD RPT'!A4),--(LEADS!Y2:Y599="Y"))
    > >
    > >
    > > "Bob Phillips" wrote:
    > >
    > > > =SUMPRODUCT(--(LEADS!A2:A599='BLDR LEAD

    RPT'!A4),--(LEADS!Y2:Y599="Y"))
    > > >
    > > > I think :-)
    > > >
    > > > --
    > > > HTH
    > > >
    > > > Bob Phillips
    > > >
    > > > "ycart88" <[email protected]> wrote in message
    > > > news:[email protected]...
    > > > > Hi all,
    > > > >
    > > > > I'm been trying to figure this out for days... I need to take the
    > > > following
    > > > > sales lead information and plug some data from it into the summary

    page as
    > > > > shown below...
    > > > >
    > > > > DATA EXAMPLE (Sales Leads):
    > > > >
    > > > > LEAD DATE SOURCE HOMEBUILDER ... APPT SET
    > > > > (Column A) (Column B) (Column C) ... (Column Y)
    > > > > 3/28/05 Homebuilder ASH N
    > > > > 3/28/05 Homebuilder ASH Y
    > > > >
    > > > > SUMMARY EXAMPLE:
    > > > > Builder YTD Leads YTD Appts
    > > > > ASH 43
    > > > > CAC 33
    > > > > CAL 8
    > > > > COR 0
    > > > >
    > > > > So basically, if the Homebuilder "ASH" has had a total of 6 Appts

    Set
    > > > ("Y"),
    > > > > I'd like to put a count in the corresponding YTD Appts cell. Here's

    how
    > > > far
    > > > > I've gotten, and yes, I'm aware it's very flawed as I can only

    figure out
    > > > how
    > > > > to count ALL of the "Y"'s and not just the ones for that builder

    ("ASH").
    > > > > lol Can you help?
    > > > >
    > > > > =COUNTIF(LEADS!C2:C599,'BLDR LEAD RPT'!A4) -

    COUNTIF(LEADS!Y2:Y599,"N")
    > > > >
    > > > >
    > > >
    > > >
    > > >




  9. #9
    ycart88
    Guest

    Re: CountIf Function Help

    Bob -

    You're awesome. I can't tell you how much I appreciate all of your help on
    this!! Here's what ended up working for me in the end:

    =SUMPRODUCT(--(TEXT(LEADS!A2:A2528,"mmm")="May"),--(LEADS!C2:C2528='BLDR
    LEAD RPT'!A3),--(LEADS!Y2:Y2528="Y"))

    Thanks again!
    Tracy


    "Bob Phillips" wrote:

    > Do you mean the figures for a certain month? If so then use something like
    >
    > =SUMPRODUCT(--(TEXT(LEADS!A2:A599,"mmm")="Mar"),(--(LEADS!C2:C599='BLDR LEAD RPT'!A4),--(LEADS!Y2:Y599="Y"))
    >
    >
    > --
    > HTH
    >
    > Bob Phillips
    >
    > "ycart88" <[email protected]> wrote in message
    > news:[email protected]...
    > > Thanks, Duke and Bob! You guys are the best! Say, if I had a date column
    > > and wanted to narrow down the YTD field to MTD, would you happen to know

    > what
    > > I could add to this formula?
    > >
    > > THANKS again!!!
    > > Tracy
    > >
    > > "Duke Carey" wrote:
    > >
    > > > Maybe just a slight modification to Bob's formula (changes the first

    > range to
    > > > column C from column A)
    > > >
    > > > =SUMPRODUCT(--(LEADS!C2:C599='BLDR LEAD RPT'!A4),--(LEADS!Y2:Y599="Y"))
    > > >
    > > >
    > > > "Bob Phillips" wrote:
    > > >
    > > > > =SUMPRODUCT(--(LEADS!A2:A599='BLDR LEAD

    > RPT'!A4),--(LEADS!Y2:Y599="Y"))
    > > > >
    > > > > I think :-)
    > > > >
    > > > > --
    > > > > HTH
    > > > >
    > > > > Bob Phillips
    > > > >
    > > > > "ycart88" <[email protected]> wrote in message
    > > > > news:[email protected]...
    > > > > > Hi all,
    > > > > >
    > > > > > I'm been trying to figure this out for days... I need to take the
    > > > > following
    > > > > > sales lead information and plug some data from it into the summary

    > page as
    > > > > > shown below...
    > > > > >
    > > > > > DATA EXAMPLE (Sales Leads):
    > > > > >
    > > > > > LEAD DATE SOURCE HOMEBUILDER ... APPT SET
    > > > > > (Column A) (Column B) (Column C) ... (Column Y)
    > > > > > 3/28/05 Homebuilder ASH N
    > > > > > 3/28/05 Homebuilder ASH Y
    > > > > >
    > > > > > SUMMARY EXAMPLE:
    > > > > > Builder YTD Leads YTD Appts
    > > > > > ASH 43
    > > > > > CAC 33
    > > > > > CAL 8
    > > > > > COR 0
    > > > > >
    > > > > > So basically, if the Homebuilder "ASH" has had a total of 6 Appts

    > Set
    > > > > ("Y"),
    > > > > > I'd like to put a count in the corresponding YTD Appts cell. Here's

    > how
    > > > > far
    > > > > > I've gotten, and yes, I'm aware it's very flawed as I can only

    > figure out
    > > > > how
    > > > > > to count ALL of the "Y"'s and not just the ones for that builder

    > ("ASH").
    > > > > > lol Can you help?
    > > > > >
    > > > > > =COUNTIF(LEADS!C2:C599,'BLDR LEAD RPT'!A4) -

    > COUNTIF(LEADS!Y2:Y599,"N")
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > > >

    >
    >
    >


  10. #10
    Bob Phillips
    Guest

    Re: CountIf Function Help

    My pleasure Tracy. Just remember it is short form Month with that formula
    (Jan, Feb., etc.), seeing as May is short and long form :-)

    Bob

    "ycart88" <[email protected]> wrote in message
    news:[email protected]...
    > Bob -
    >
    > You're awesome. I can't tell you how much I appreciate all of your help

    on
    > this!! Here's what ended up working for me in the end:
    >
    > =SUMPRODUCT(--(TEXT(LEADS!A2:A2528,"mmm")="May"),--(LEADS!C2:C2528='BLDR
    > LEAD RPT'!A3),--(LEADS!Y2:Y2528="Y"))
    >
    > Thanks again!
    > Tracy
    >
    >
    > "Bob Phillips" wrote:
    >
    > > Do you mean the figures for a certain month? If so then use something

    like
    > >
    > > =SUMPRODUCT(--(TEXT(LEADS!A2:A599,"mmm")="Mar"),(--(LEADS!C2:C599='BLDR

    LEAD RPT'!A4),--(LEADS!Y2:Y599="Y"))
    > >
    > >
    > > --
    > > HTH
    > >
    > > Bob Phillips
    > >
    > > "ycart88" <[email protected]> wrote in message
    > > news:[email protected]...
    > > > Thanks, Duke and Bob! You guys are the best! Say, if I had a date

    column
    > > > and wanted to narrow down the YTD field to MTD, would you happen to

    know
    > > what
    > > > I could add to this formula?
    > > >
    > > > THANKS again!!!
    > > > Tracy
    > > >
    > > > "Duke Carey" wrote:
    > > >
    > > > > Maybe just a slight modification to Bob's formula (changes the first

    > > range to
    > > > > column C from column A)
    > > > >
    > > > > =SUMPRODUCT(--(LEADS!C2:C599='BLDR LEAD

    RPT'!A4),--(LEADS!Y2:Y599="Y"))
    > > > >
    > > > >
    > > > > "Bob Phillips" wrote:
    > > > >
    > > > > > =SUMPRODUCT(--(LEADS!A2:A599='BLDR LEAD

    > > RPT'!A4),--(LEADS!Y2:Y599="Y"))
    > > > > >
    > > > > > I think :-)
    > > > > >
    > > > > > --
    > > > > > HTH
    > > > > >
    > > > > > Bob Phillips
    > > > > >
    > > > > > "ycart88" <[email protected]> wrote in message
    > > > > > news:[email protected]...
    > > > > > > Hi all,
    > > > > > >
    > > > > > > I'm been trying to figure this out for days... I need to take

    the
    > > > > > following
    > > > > > > sales lead information and plug some data from it into the

    summary
    > > page as
    > > > > > > shown below...
    > > > > > >
    > > > > > > DATA EXAMPLE (Sales Leads):
    > > > > > >
    > > > > > > LEAD DATE SOURCE HOMEBUILDER ... APPT SET
    > > > > > > (Column A) (Column B) (Column C) ... (Column Y)
    > > > > > > 3/28/05 Homebuilder ASH N
    > > > > > > 3/28/05 Homebuilder ASH Y
    > > > > > >
    > > > > > > SUMMARY EXAMPLE:
    > > > > > > Builder YTD Leads YTD Appts
    > > > > > > ASH 43
    > > > > > > CAC 33
    > > > > > > CAL 8
    > > > > > > COR 0
    > > > > > >
    > > > > > > So basically, if the Homebuilder "ASH" has had a total of 6

    Appts
    > > Set
    > > > > > ("Y"),
    > > > > > > I'd like to put a count in the corresponding YTD Appts cell.

    Here's
    > > how
    > > > > > far
    > > > > > > I've gotten, and yes, I'm aware it's very flawed as I can only

    > > figure out
    > > > > > how
    > > > > > > to count ALL of the "Y"'s and not just the ones for that builder

    > > ("ASH").
    > > > > > > lol Can you help?
    > > > > > >
    > > > > > > =COUNTIF(LEADS!C2:C599,'BLDR LEAD RPT'!A4) -

    > > COUNTIF(LEADS!Y2:Y599,"N")
    > > > > > >
    > > > > > >
    > > > > >
    > > > > >
    > > > > >

    > >
    > >
    > >




+ 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