Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 740
Default help to count easily

hello,

i have 100 records of different employees. running for 3 years of weekly
payroll enlistment. Some are intermittently employed for multiple times yet
are considered under one (1) ID No.

in my spreadsheet for all employees, as one example of one employee, it
looks like this, columns A:D

A B C D E F
ID NO NAME P_START P_END COUNT MONTH
SC-001 MARIA 1-Jun-07 7-Jun-07 1 Jun-07
SC-001 MARIA 11-May-07 17-May-07 - -
SC-001 MARIA 4-May-07 10-May-07 1 May-07
SC-001 MARIA 27-Apr-07 3-May-07 - -
SC-001 MARIA 6-Apr-07 12-Apr-07 1 Apr-07
SC-001 MARIA 30-Mar-07 5-Apr-07 1 Mar-07
SC-001 MARIA 18-Dec-05 24-Dec-05 - -
SC-001 MARIA 11-Dec-05 17-Dec-05 - -
SC-001 MARIA 4-Dec-05 10-Dec-05 1 Dec-05
SC-001 MARIA 27-Nov-05 3-Dec-05 - -
SC-001 MARIA 20-Nov-05 26-Nov-05 1 Nov-05
---------- ---------- ---------- ---------- ---------- ----------
SC-012 MARIA total months enlisted 6

Actually, data on Columns E and F, as shown above, do not exist in the
spreadsheet, i just want to show how to count the "total months enlisted".
Can someone help me to make a formula for column E and F so i can easily
include it in my pivot table currently covering columns A:D only, as an
example.

The count of *calendar* months enlisted, per employee ID will be used as
reference for many aspects of my labour cost summary calculation.

thanks and regards,
driller
--
*****
birds of the same feather flock together..

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default help to count easily

=DATEDIF(C2,D2,"m")

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"driller" wrote in message
...
hello,

i have 100 records of different employees. running for 3 years of weekly
payroll enlistment. Some are intermittently employed for multiple times
yet
are considered under one (1) ID No.

in my spreadsheet for all employees, as one example of one employee, it
looks like this, columns A:D

A B C D E F
ID NO NAME P_START P_END COUNT MONTH
SC-001 MARIA 1-Jun-07 7-Jun-07 1 Jun-07
SC-001 MARIA 11-May-07 17-May-07 - -
SC-001 MARIA 4-May-07 10-May-07 1 May-07
SC-001 MARIA 27-Apr-07 3-May-07 - -
SC-001 MARIA 6-Apr-07 12-Apr-07 1 Apr-07
SC-001 MARIA 30-Mar-07 5-Apr-07 1 Mar-07
SC-001 MARIA 18-Dec-05 24-Dec-05 - -
SC-001 MARIA 11-Dec-05 17-Dec-05 - -
SC-001 MARIA 4-Dec-05 10-Dec-05 1 Dec-05
SC-001 MARIA 27-Nov-05 3-Dec-05 - -
SC-001 MARIA 20-Nov-05 26-Nov-05 1 Nov-05
---------- ---------- ---------- ---------- ---------- ----------
SC-012 MARIA total months enlisted 6

Actually, data on Columns E and F, as shown above, do not exist in the
spreadsheet, i just want to show how to count the "total months enlisted".
Can someone help me to make a formula for column E and F so i can easily
include it in my pivot table currently covering columns A:D only, as an
example.

The count of *calendar* months enlisted, per employee ID will be used as
reference for many aspects of my labour cost summary calculation.

thanks and regards,
driller
--
*****
birds of the same feather flock together..



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default help to count easily

This works on your sample data but I have a suspicion that there's more to
it!

Count:

=IF(AND(ISNUMBER(C2),C3=""),1,IF(MONTH(C2)<MONTH( C3),1,""))

Month:

=IF(E2=1,DATE(YEAR(C2),MONTH(C2),1),"")

Or:

=IF(E2=1,C2,"")

Formatted as DATE style of your choice.

Biff

"driller" wrote in message
...
hello,

i have 100 records of different employees. running for 3 years of weekly
payroll enlistment. Some are intermittently employed for multiple times
yet
are considered under one (1) ID No.

in my spreadsheet for all employees, as one example of one employee, it
looks like this, columns A:D

A B C D E F
ID NO NAME P_START P_END COUNT MONTH
SC-001 MARIA 1-Jun-07 7-Jun-07 1 Jun-07
SC-001 MARIA 11-May-07 17-May-07 - -
SC-001 MARIA 4-May-07 10-May-07 1 May-07
SC-001 MARIA 27-Apr-07 3-May-07 - -
SC-001 MARIA 6-Apr-07 12-Apr-07 1 Apr-07
SC-001 MARIA 30-Mar-07 5-Apr-07 1 Mar-07
SC-001 MARIA 18-Dec-05 24-Dec-05 - -
SC-001 MARIA 11-Dec-05 17-Dec-05 - -
SC-001 MARIA 4-Dec-05 10-Dec-05 1 Dec-05
SC-001 MARIA 27-Nov-05 3-Dec-05 - -
SC-001 MARIA 20-Nov-05 26-Nov-05 1 Nov-05
---------- ---------- ---------- ---------- ---------- ----------
SC-012 MARIA total months enlisted 6

Actually, data on Columns E and F, as shown above, do not exist in the
spreadsheet, i just want to show how to count the "total months enlisted".
Can someone help me to make a formula for column E and F so i can easily
include it in my pivot table currently covering columns A:D only, as an
example.

The count of *calendar* months enlisted, per employee ID will be used as
reference for many aspects of my labour cost summary calculation.

thanks and regards,
driller
--
*****
birds of the same feather flock together..



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to formulate this easily??? driller Excel Worksheet Functions 6 March 5th 07 03:18 PM
how to sum this easily...? driller Excel Worksheet Functions 4 February 8th 07 04:21 PM
anyway around this, easily? dribler2 Excel Worksheet Functions 1 January 9th 07 01:00 AM
how to count easily dribler2 Excel Worksheet Functions 21 January 1st 07 05:33 AM
Can this be done easily? yhtak Excel Discussion (Misc queries) 1 August 30th 06 02:14 PM


All times are GMT +1. The time now is 01:19 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"