+ Reply to Thread
Results 1 to 7 of 7

Count No. of times Dates are repeated

  1. #1
    Mandeep Dhami
    Guest

    Count No. of times Dates are repeated

    Hi,

    I have a database where in dates are repeated in column D and names in
    column I.
    I want a formula in a different worksheet of the same file wherein I get the
    count of dates column along with the individual name.
    The intention is to get number of days each individual is present. The same
    dates could be repeated any number of times for the same individual.

    Example for the month of Dec. 2005
    Dates Names
    20 AD
    15 BC
    08 GH........etc

    Cheers,
    Mandeep Dhami


  2. #2
    Ron Coderre
    Guest

    RE: Count No. of times Dates are repeated

    Have you considered a Pivot Table?

    Data>Pivot Table
    Use Excel
    Select your data
    Click the [Layout] button

    ROW: Drag the Names field here
    DATA: Drag the Dates field here
    If it doesn't list as Count of Dates...dbl-click it and set it to Count
    Click [OK]
    Select where you want the Pivot Table...and you're done!

    That will list each name and the count of dates.

    To refresh the Pivot Table, just right click it and select Refresh Data.

    Something you can use?

    ***********
    Regards,
    Ron


    "Mandeep Dhami" wrote:

    > Hi,
    >
    > I have a database where in dates are repeated in column D and names in
    > column I.
    > I want a formula in a different worksheet of the same file wherein I get the
    > count of dates column along with the individual name.
    > The intention is to get number of days each individual is present. The same
    > dates could be repeated any number of times for the same individual.
    >
    > Example for the month of Dec. 2005
    > Dates Names
    > 20 AD
    > 15 BC
    > 08 GH........etc
    >
    > Cheers,
    > Mandeep Dhami
    >


  3. #3
    Mandeep Dhami
    Guest

    RE: Count No. of times Dates are repeated

    Thanks Ron.
    I tried as instructed but sorry to say it is not working as I wanted.
    The result is that, I am getting total number of times the dates are entered
    against each names, where as I want that each new date should be counted only
    once, i.e., if a person "A" is present for 10 days in a month, I should get
    count 10 against his name no matter how many times he may have entered same
    date against his name.
    Hope I am able to convey what I require.

    Cheers,
    Mandeep Dhami


    "Ron Coderre" wrote:

    > Have you considered a Pivot Table?
    >
    > Data>Pivot Table
    > Use Excel
    > Select your data
    > Click the [Layout] button
    >
    > ROW: Drag the Names field here
    > DATA: Drag the Dates field here
    > If it doesn't list as Count of Dates...dbl-click it and set it to Count
    > Click [OK]
    > Select where you want the Pivot Table...and you're done!
    >
    > That will list each name and the count of dates.
    >
    > To refresh the Pivot Table, just right click it and select Refresh Data.
    >
    > Something you can use?
    >
    > ***********
    > Regards,
    > Ron
    >
    >
    > "Mandeep Dhami" wrote:
    >
    > > Hi,
    > >
    > > I have a database where in dates are repeated in column D and names in
    > > column I.
    > > I want a formula in a different worksheet of the same file wherein I get the
    > > count of dates column along with the individual name.
    > > The intention is to get number of days each individual is present. The same
    > > dates could be repeated any number of times for the same individual.
    > >
    > > Example for the month of Dec. 2005
    > > Dates Names
    > > 20 AD
    > > 15 BC
    > > 08 GH........etc
    > >
    > > Cheers,
    > > Mandeep Dhami
    > >


  4. #4
    Ron Coderre
    Guest

    RE: Count No. of times Dates are repeated

    Are you looking for how many times a name appears in the list? If yes, just
    drag Count of Dates out of the DATA area and replace it with Count of Names.

    Does that help?

    ***********
    Regards,
    Ron


    "Mandeep Dhami" wrote:

    > Thanks Ron.
    > I tried as instructed but sorry to say it is not working as I wanted.
    > The result is that, I am getting total number of times the dates are entered
    > against each names, where as I want that each new date should be counted only
    > once, i.e., if a person "A" is present for 10 days in a month, I should get
    > count 10 against his name no matter how many times he may have entered same
    > date against his name.
    > Hope I am able to convey what I require.
    >
    > Cheers,
    > Mandeep Dhami
    >
    >
    > "Ron Coderre" wrote:
    >
    > > Have you considered a Pivot Table?
    > >
    > > Data>Pivot Table
    > > Use Excel
    > > Select your data
    > > Click the [Layout] button
    > >
    > > ROW: Drag the Names field here
    > > DATA: Drag the Dates field here
    > > If it doesn't list as Count of Dates...dbl-click it and set it to Count
    > > Click [OK]
    > > Select where you want the Pivot Table...and you're done!
    > >
    > > That will list each name and the count of dates.
    > >
    > > To refresh the Pivot Table, just right click it and select Refresh Data.
    > >
    > > Something you can use?
    > >
    > > ***********
    > > Regards,
    > > Ron
    > >
    > >
    > > "Mandeep Dhami" wrote:
    > >
    > > > Hi,
    > > >
    > > > I have a database where in dates are repeated in column D and names in
    > > > column I.
    > > > I want a formula in a different worksheet of the same file wherein I get the
    > > > count of dates column along with the individual name.
    > > > The intention is to get number of days each individual is present. The same
    > > > dates could be repeated any number of times for the same individual.
    > > >
    > > > Example for the month of Dec. 2005
    > > > Dates Names
    > > > 20 AD
    > > > 15 BC
    > > > 08 GH........etc
    > > >
    > > > Cheers,
    > > > Mandeep Dhami
    > > >


  5. #5
    Mandeep Dhami
    Guest

    RE: Count No. of times Dates are repeated

    Ron,

    I am looking at how many times the date is repeated against each name.
    For Example:
    Date Name
    1-Dec-05 A
    1-Dec-05 A
    1-Dec-05 B
    2-Dec-05 A
    2-Dec-05 B
    2-Dec-05 B
    2-Dec-05 B
    3-Dec-05 A
    3-Dec-05 A
    4-Dec-05 A

    So here on 1-Dec-05 "A" appears twice and "B" once, similarly on 2-Dec-05
    "A" appears once and "B" 3 times.

    This should show as:
    Date Name Frequency
    1-Dec-05 A 2
    B 1
    2-Dec-05 A 1
    B 3
    Cheers,
    Mandeep



    "Ron Coderre" wrote:

    > Are you looking for how many times a name appears in the list? If yes, just
    > drag Count of Dates out of the DATA area and replace it with Count of Names.
    >
    > Does that help?
    >
    > ***********
    > Regards,
    > Ron
    >
    >
    > "Mandeep Dhami" wrote:
    >
    > > Thanks Ron.
    > > I tried as instructed but sorry to say it is not working as I wanted.
    > > The result is that, I am getting total number of times the dates are entered
    > > against each names, where as I want that each new date should be counted only
    > > once, i.e., if a person "A" is present for 10 days in a month, I should get
    > > count 10 against his name no matter how many times he may have entered same
    > > date against his name.
    > > Hope I am able to convey what I require.
    > >
    > > Cheers,
    > > Mandeep Dhami
    > >
    > >
    > > "Ron Coderre" wrote:
    > >
    > > > Have you considered a Pivot Table?
    > > >
    > > > Data>Pivot Table
    > > > Use Excel
    > > > Select your data
    > > > Click the [Layout] button
    > > >
    > > > ROW: Drag the Names field here
    > > > DATA: Drag the Dates field here
    > > > If it doesn't list as Count of Dates...dbl-click it and set it to Count
    > > > Click [OK]
    > > > Select where you want the Pivot Table...and you're done!
    > > >
    > > > That will list each name and the count of dates.
    > > >
    > > > To refresh the Pivot Table, just right click it and select Refresh Data.
    > > >
    > > > Something you can use?
    > > >
    > > > ***********
    > > > Regards,
    > > > Ron
    > > >
    > > >
    > > > "Mandeep Dhami" wrote:
    > > >
    > > > > Hi,
    > > > >
    > > > > I have a database where in dates are repeated in column D and names in
    > > > > column I.
    > > > > I want a formula in a different worksheet of the same file wherein I get the
    > > > > count of dates column along with the individual name.
    > > > > The intention is to get number of days each individual is present. The same
    > > > > dates could be repeated any number of times for the same individual.
    > > > >
    > > > > Example for the month of Dec. 2005
    > > > > Dates Names
    > > > > 20 AD
    > > > > 15 BC
    > > > > 08 GH........etc
    > > > >
    > > > > Cheers,
    > > > > Mandeep Dhami
    > > > >


  6. #6
    Ron Coderre
    Guest

    RE: Count No. of times Dates are repeated

    OK...I think I (finally) understand. Try this with your Pivot Table:
    First clear off all fields...then:
    ROW:
    Drag Date field first
    Dbl-Click and set Subtotals to None

    Drag Names Field second
    Dbl-Click and set Subtotals to None

    DATA: Count of Date

    Then....once you see the Pivot Table right click on it and:
    uncheck Grand totals for Rows
    uncheck Grand totals for Columns
    Click [OK]

    Did I get it right this time?

    ***********
    Regards,
    Ron


    "Mandeep Dhami" wrote:

    > Ron,
    >
    > I am looking at how many times the date is repeated against each name.
    > For Example:
    > Date Name
    > 1-Dec-05 A
    > 1-Dec-05 A
    > 1-Dec-05 B
    > 2-Dec-05 A
    > 2-Dec-05 B
    > 2-Dec-05 B
    > 2-Dec-05 B
    > 3-Dec-05 A
    > 3-Dec-05 A
    > 4-Dec-05 A
    >
    > So here on 1-Dec-05 "A" appears twice and "B" once, similarly on 2-Dec-05
    > "A" appears once and "B" 3 times.
    >
    > This should show as:
    > Date Name Frequency
    > 1-Dec-05 A 2
    > B 1
    > 2-Dec-05 A 1
    > B 3
    > Cheers,
    > Mandeep
    >
    >
    >
    > "Ron Coderre" wrote:
    >
    > > Are you looking for how many times a name appears in the list? If yes, just
    > > drag Count of Dates out of the DATA area and replace it with Count of Names.
    > >
    > > Does that help?
    > >
    > > ***********
    > > Regards,
    > > Ron
    > >
    > >
    > > "Mandeep Dhami" wrote:
    > >
    > > > Thanks Ron.
    > > > I tried as instructed but sorry to say it is not working as I wanted.
    > > > The result is that, I am getting total number of times the dates are entered
    > > > against each names, where as I want that each new date should be counted only
    > > > once, i.e., if a person "A" is present for 10 days in a month, I should get
    > > > count 10 against his name no matter how many times he may have entered same
    > > > date against his name.
    > > > Hope I am able to convey what I require.
    > > >
    > > > Cheers,
    > > > Mandeep Dhami
    > > >
    > > >
    > > > "Ron Coderre" wrote:
    > > >
    > > > > Have you considered a Pivot Table?
    > > > >
    > > > > Data>Pivot Table
    > > > > Use Excel
    > > > > Select your data
    > > > > Click the [Layout] button
    > > > >
    > > > > ROW: Drag the Names field here
    > > > > DATA: Drag the Dates field here
    > > > > If it doesn't list as Count of Dates...dbl-click it and set it to Count
    > > > > Click [OK]
    > > > > Select where you want the Pivot Table...and you're done!
    > > > >
    > > > > That will list each name and the count of dates.
    > > > >
    > > > > To refresh the Pivot Table, just right click it and select Refresh Data.
    > > > >
    > > > > Something you can use?
    > > > >
    > > > > ***********
    > > > > Regards,
    > > > > Ron
    > > > >
    > > > >
    > > > > "Mandeep Dhami" wrote:
    > > > >
    > > > > > Hi,
    > > > > >
    > > > > > I have a database where in dates are repeated in column D and names in
    > > > > > column I.
    > > > > > I want a formula in a different worksheet of the same file wherein I get the
    > > > > > count of dates column along with the individual name.
    > > > > > The intention is to get number of days each individual is present. The same
    > > > > > dates could be repeated any number of times for the same individual.
    > > > > >
    > > > > > Example for the month of Dec. 2005
    > > > > > Dates Names
    > > > > > 20 AD
    > > > > > 15 BC
    > > > > > 08 GH........etc
    > > > > >
    > > > > > Cheers,
    > > > > > Mandeep Dhami
    > > > > >


  7. #7
    Mandeep Dhami
    Guest

    RE: Count No. of times Dates are repeated

    Thanks Ron,
    Yes you have got it right this time.

    "Ron Coderre" wrote:

    > OK...I think I (finally) understand. Try this with your Pivot Table:
    > First clear off all fields...then:
    > ROW:
    > Drag Date field first
    > Dbl-Click and set Subtotals to None
    >
    > Drag Names Field second
    > Dbl-Click and set Subtotals to None
    >
    > DATA: Count of Date
    >
    > Then....once you see the Pivot Table right click on it and:
    > uncheck Grand totals for Rows
    > uncheck Grand totals for Columns
    > Click [OK]
    >
    > Did I get it right this time?
    >
    > ***********
    > Regards,
    > Ron
    >
    >
    > "Mandeep Dhami" wrote:
    >
    > > Ron,
    > >
    > > I am looking at how many times the date is repeated against each name.
    > > For Example:
    > > Date Name
    > > 1-Dec-05 A
    > > 1-Dec-05 A
    > > 1-Dec-05 B
    > > 2-Dec-05 A
    > > 2-Dec-05 B
    > > 2-Dec-05 B
    > > 2-Dec-05 B
    > > 3-Dec-05 A
    > > 3-Dec-05 A
    > > 4-Dec-05 A
    > >
    > > So here on 1-Dec-05 "A" appears twice and "B" once, similarly on 2-Dec-05
    > > "A" appears once and "B" 3 times.
    > >
    > > This should show as:
    > > Date Name Frequency
    > > 1-Dec-05 A 2
    > > B 1
    > > 2-Dec-05 A 1
    > > B 3
    > > Cheers,
    > > Mandeep
    > >
    > >
    > >
    > > "Ron Coderre" wrote:
    > >
    > > > Are you looking for how many times a name appears in the list? If yes, just
    > > > drag Count of Dates out of the DATA area and replace it with Count of Names.
    > > >
    > > > Does that help?
    > > >
    > > > ***********
    > > > Regards,
    > > > Ron
    > > >
    > > >
    > > > "Mandeep Dhami" wrote:
    > > >
    > > > > Thanks Ron.
    > > > > I tried as instructed but sorry to say it is not working as I wanted.
    > > > > The result is that, I am getting total number of times the dates are entered
    > > > > against each names, where as I want that each new date should be counted only
    > > > > once, i.e., if a person "A" is present for 10 days in a month, I should get
    > > > > count 10 against his name no matter how many times he may have entered same
    > > > > date against his name.
    > > > > Hope I am able to convey what I require.
    > > > >
    > > > > Cheers,
    > > > > Mandeep Dhami
    > > > >
    > > > >
    > > > > "Ron Coderre" wrote:
    > > > >
    > > > > > Have you considered a Pivot Table?
    > > > > >
    > > > > > Data>Pivot Table
    > > > > > Use Excel
    > > > > > Select your data
    > > > > > Click the [Layout] button
    > > > > >
    > > > > > ROW: Drag the Names field here
    > > > > > DATA: Drag the Dates field here
    > > > > > If it doesn't list as Count of Dates...dbl-click it and set it to Count
    > > > > > Click [OK]
    > > > > > Select where you want the Pivot Table...and you're done!
    > > > > >
    > > > > > That will list each name and the count of dates.
    > > > > >
    > > > > > To refresh the Pivot Table, just right click it and select Refresh Data.
    > > > > >
    > > > > > Something you can use?
    > > > > >
    > > > > > ***********
    > > > > > Regards,
    > > > > > Ron
    > > > > >
    > > > > >
    > > > > > "Mandeep Dhami" wrote:
    > > > > >
    > > > > > > Hi,
    > > > > > >
    > > > > > > I have a database where in dates are repeated in column D and names in
    > > > > > > column I.
    > > > > > > I want a formula in a different worksheet of the same file wherein I get the
    > > > > > > count of dates column along with the individual name.
    > > > > > > The intention is to get number of days each individual is present. The same
    > > > > > > dates could be repeated any number of times for the same individual.
    > > > > > >
    > > > > > > Example for the month of Dec. 2005
    > > > > > > Dates Names
    > > > > > > 20 AD
    > > > > > > 15 BC
    > > > > > > 08 GH........etc
    > > > > > >
    > > > > > > Cheers,
    > > > > > > Mandeep Dhami
    > > > > > >


+ 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