Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ajit Munj
 
Posts: n/a
Default Count for present & absent days

I use Excel 2000
I have sheet muster for my clients of January, 2005 like :
( P = Present, A=Absent )
A.....B.....C.....D.....
Days Sun Mon Tue Wed
Date 1 2 3 4

1 John P A A P
2 Lucy A P P A
3
Now I want to calculate the total Sundays, Mondays, Tuesdays etc. present in
that month. How can I do this?
--
Knowldege is Power
  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

This should get you started. To count the total # of P's
for John for January (assuming your data below is just
for January), try:

=SUMPRODUCT((3:3="P")*(1:1="Sun"))

where John is listed on row 3 and the Days are listed in
row 1.

HTH
Jason
Atlanta, GA

-----Original Message-----
I use Excel 2000
I have sheet muster for my clients of January, 2005

like :
( P = Present, A=Absent )
A.....B.....C.....D.....
Days Sun Mon Tue Wed
Date 1 2 3 4

1 John P A A P
2 Lucy A P P A
3
Now I want to calculate the total Sundays, Mondays,

Tuesdays etc. present in
that month. How can I do this?
--
Knowldege is Power
.

  #3   Report Post  
Ajit Munj
 
Posts: n/a
Default

Thanks Jason,It's working.
I also want to convert actual numbers (a1=46556.4646, a2=787979.79798 etc.)
into lacs (i.e. a1=0.465564646, a2=7.87979.79798 etc.) at one go and also one
by one. How can I do this? I also want Excel to prompt me for convesion in
Lacs or Crores or Thousands? Pl. guide.

Ajit
"Jason Morin" wrote:

This should get you started. To count the total # of P's
for John for January (assuming your data below is just
for January), try:

=SUMPRODUCT((3:3="P")*(1:1="Sun"))

where John is listed on row 3 and the Days are listed in
row 1.

HTH
Jason
Atlanta, GA

-----Original Message-----
I use Excel 2000
I have sheet muster for my clients of January, 2005

like :
( P = Present, A=Absent )
A.....B.....C.....D.....
Days Sun Mon Tue Wed
Date 1 2 3 4

1 John P A A P
2 Lucy A P P A
3
Now I want to calculate the total Sundays, Mondays,

Tuesdays etc. present in
that month. How can I do this?
--
Knowldege is Power
.


  #4   Report Post  
Jason Morin
 
Posts: n/a
Default

You divide cells one by one with a formula in another
cell:

=A1/100000

or to do all of them at once, put 100000 in an open cell,
copy it, select your numbers in column A, and go to Edit
Paste Special Divide.


HTH
Jason
Atlanta, Ga

-----Original Message-----
Thanks Jason,It's working.
I also want to convert actual numbers (a1=46556.4646,

a2=787979.79798 etc.)
into lacs (i.e. a1=0.465564646, a2=7.87979.79798 etc.)

at one go and also one
by one. How can I do this? I also want Excel to prompt

me for convesion in
Lacs or Crores or Thousands? Pl. guide.

Ajit
"Jason Morin" wrote:

This should get you started. To count the total # of

P's
for John for January (assuming your data below is just
for January), try:

=SUMPRODUCT((3:3="P")*(1:1="Sun"))

where John is listed on row 3 and the Days are listed

in
row 1.

HTH
Jason
Atlanta, GA

-----Original Message-----
I use Excel 2000
I have sheet muster for my clients of January, 2005

like :
( P = Present, A=Absent )
A.....B.....C.....D.....
Days Sun Mon Tue Wed
Date 1 2 3 4

1 John P A A P
2 Lucy A P P A
3
Now I want to calculate the total Sundays, Mondays,

Tuesdays etc. present in
that month. How can I do this?
--
Knowldege is Power
.


.

  #5   Report Post  
Jim May
 
Posts: n/a
Default

You can also use the = countif() function
For Sunday (example)
In Cell B50 enter =COUNTIF(B3:B49,"P") <<< Will count the number of
"P"s
where you have data in cells B3:B49


"Jason Morin" wrote in message
...
This should get you started. To count the total # of P's
for John for January (assuming your data below is just
for January), try:

=SUMPRODUCT((3:3="P")*(1:1="Sun"))

where John is listed on row 3 and the Days are listed in
row 1.

HTH
Jason
Atlanta, GA

-----Original Message-----
I use Excel 2000
I have sheet muster for my clients of January, 2005

like :
( P = Present, A=Absent )
A.....B.....C.....D.....
Days Sun Mon Tue Wed
Date 1 2 3 4

1 John P A A P
2 Lucy A P P A
3
Now I want to calculate the total Sundays, Mondays,

Tuesdays etc. present in
that month. How can I do this?
--
Knowldege is Power
.





  #6   Report Post  
Ajit Munj
 
Posts: n/a
Default

It's great Jason. It was so simple! Now one more help.
I have workbook named News.xls with 3 sheets namely Pricelist, Muster and
Bill for the month of January, 2005.
Muster contains presenty of each client, marked P for present & A for Absent
A.....B.....C.....D.....
Days Sun Mon Tue Wed
Date 1 2 3 4
1 John P A A P
2 Lucy A P P A
3

Pricelist contains prices for news papers (amount in Indian Rupees)
A.....B.....C.....D.......E.........F.......G..... ..H...
Days Sun Mon Tue Wed Thu Fri Sat

Times 5 4 4 4 4 4 3.50

Economic 9 2 2 2 2 2 9

Now I want to prepare bills in sheet "Bill". I want Excel to check first
from Muster whether client is marked as "P" on 1st of Jan, 05 (Saturday), if
so, he should take a price of Times newspaper for Saturday from sheet
Pricelist i.e. Rs.5/-, if not, put 0.00, & so on.. Thus my sheet will show :


A.....B.....C.....D.....E.......F......G.......H.. ....I..Total
Days Sat Sun Mon Tue Wed Thu Fri Sat
Date 1 2 3 4

1 John 4 5 4 4 4 0 0 4
25.00

Note : On Thu & Fri John was marked as "A"
How can I perform this in sheet Bill.



"Jason Morin" wrote:

You divide cells one by one with a formula in another
cell:

=A1/100000

or to do all of them at once, put 100000 in an open cell,
copy it, select your numbers in column A, and go to Edit
Paste Special Divide.


HTH
Jason
Atlanta, Ga

-----Original Message-----
Thanks Jason,It's working.
I also want to convert actual numbers (a1=46556.4646,

a2=787979.79798 etc.)
into lacs (i.e. a1=0.465564646, a2=7.87979.79798 etc.)

at one go and also one
by one. How can I do this? I also want Excel to prompt

me for convesion in
Lacs or Crores or Thousands? Pl. guide.

Ajit
"Jason Morin" wrote:

This should get you started. To count the total # of

P's
for John for January (assuming your data below is just
for January), try:

=SUMPRODUCT((3:3="P")*(1:1="Sun"))

where John is listed on row 3 and the Days are listed

in
row 1.

HTH
Jason
Atlanta, GA

-----Original Message-----
I use Excel 2000
I have sheet muster for my clients of January, 2005
like :
( P = Present, A=Absent )
A.....B.....C.....D.....
Days Sun Mon Tue Wed
Date 1 2 3 4

1 John P A A P
2 Lucy A P P A
3
Now I want to calculate the total Sundays, Mondays,
Tuesdays etc. present in
that month. How can I do this?
--
Knowldege is Power
.


.


  #7   Report Post  
Ajit Munj
 
Posts: n/a
Default

Dear Jason,
I tried your formula but some problem is there. I have made two sheets namely
Muster & Bill. In Muster, instead of P & A, I have entered the name of
newspaper. Hence I made some change in formula like
:=SUMPRODUCT((Muster!3:3<"")*(Muster!1:1="Sun")), it does not get tallied
with the total number of days in that month. e.g. In month January, 2005
there are 4 instances of Sun-Wed & 5 instances of Sat and Fri i.e. total 31
days.(I have not kept any cell blank as I have put a newspaper from 1 to 31).
After entering formula, it shows total 29 days, i.e. 5 instances of Sat. & 4
instances of Sun-Fri. Where am I going wrong?. Secondly, by refering 4:4 and
2:2, if accidently somebody enter a day and date, suppose in a far away cell
IN2 and IN4, the formula will show additional day. Pl. guide.
ajit

"Jason Morin" wrote:

This should get you started. To count the total # of P's
for John for January (assuming your data below is just
for January), try:

=SUMPRODUCT((3:3="P")*(1:1="Sun"))

where John is listed on row 3 and the Days are listed in
row 1.

HTH
Jason
Atlanta, GA

-----Original Message-----
I use Excel 2000
I have sheet muster for my clients of January, 2005

like :
( P = Present, A=Absent )
A.....B.....C.....D.....
Days Sun Mon Tue Wed
Date 1 2 3 4

1 John P A A P
2 Lucy A P P A
3
Now I want to calculate the total Sundays, Mondays,

Tuesdays etc. present in
that month. How can I do this?
--
Knowldege is Power
.


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
SUMPRODUCT Formula to Count Row of data Below Matched Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 February 3rd 05 01:37 AM
Count number of days in given month? Bryan Excel Worksheet Functions 10 February 2nd 05 11:44 PM
Counting days worked anonymous person Excel Worksheet Functions 3 January 22nd 05 07:29 PM
Count Days excluding Sundays KENNY Excel Worksheet Functions 3 November 11th 04 05:26 PM
how do I make a function to count days? khamsta Excel Worksheet Functions 2 November 1st 04 10:53 PM


All times are GMT +1. The time now is 01:28 AM.

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

About Us

"It's about Microsoft Excel"