Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Repost of function problem

Thank you for your reply. It's not quite what I wanted but I can make it
work. A problem I'm having with your formula though is that it counts
lowercase 't' and lowercase 'fl' even though the formula I entered is upper.
Any fix to make it count only what's in the quotes?

Thanks again,
Sam

"Peo Sjoblom" wrote:
If you want to count the occurrences of 1, T and FL use
=SUM(COUNTIF(B100:B350,{1;"T";"FL"}))

Regards,
Peo Sjoblom

"Metolius Dad" in message
...
Dearest Wizards,

Typical Excel work schedule here. Employee's names in Col A, Dates of a 4
week period on Row 1.

What I want: Row 2 to have the number of WORKING employees on for that
day.

Why this is becoming complicated: Below the schedule grid is another two
tables. One table has codes that go in the schedule grid that indicate
WORKING employees i.e. "1" for lead worker, "T" for working the table,
"FL" for working the floor etc. These codes would be in a column, say from
B100 to B199. The other table has codes for NON-WORKING employees i.e. "v"
for
vacation, "m" for meeting, "FM" for FMLA etc. These codes would be in a
column, say from B250 to B349.

I'd like to avoid a countif+countif+countif situation because I anticipate
adding other codes as the years go by.

Isn't there a formula I can use in
row 2 that will reference the 'working codes' column that will give me a
count of just the actual working employees for that day?

TIA for your assistance.
Sam Beardsley

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Repost of function problem

How about:

=SUMPRODUCT(--(EXACT(B100:B350,{1,"T","FL"})))



Metolius Dad wrote:

Thank you for your reply. It's not quite what I wanted but I can make it
work. A problem I'm having with your formula though is that it counts
lowercase 't' and lowercase 'fl' even though the formula I entered is upper.
Any fix to make it count only what's in the quotes?

Thanks again,
Sam

"Peo Sjoblom" wrote:
If you want to count the occurrences of 1, T and FL use
=SUM(COUNTIF(B100:B350,{1;"T";"FL"}))

Regards,
Peo Sjoblom

"Metolius Dad" in message
...
Dearest Wizards,

Typical Excel work schedule here. Employee's names in Col A, Dates of a 4
week period on Row 1.

What I want: Row 2 to have the number of WORKING employees on for that
day.

Why this is becoming complicated: Below the schedule grid is another two
tables. One table has codes that go in the schedule grid that indicate
WORKING employees i.e. "1" for lead worker, "T" for working the table,
"FL" for working the floor etc. These codes would be in a column, say from
B100 to B199. The other table has codes for NON-WORKING employees i.e. "v"
for
vacation, "m" for meeting, "FM" for FMLA etc. These codes would be in a
column, say from B250 to B349.

I'd like to avoid a countif+countif+countif situation because I anticipate
adding other codes as the years go by.

Isn't there a formula I can use in
row 2 that will reference the 'working codes' column that will give me a
count of just the actual working employees for that day?

TIA for your assistance.
Sam Beardsley


--

Dave Peterson
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
Priorsheet Function Problem David Excel Worksheet Functions 2 August 30th 06 05:38 PM
function problem regarding cell range chindo Excel Worksheet Functions 1 November 10th 05 03:06 AM
Simple function problem headly Excel Worksheet Functions 2 July 7th 05 08:50 AM
Lookup function problem (kg) greencecil Excel Worksheet Functions 3 July 1st 05 04:54 PM
Problem with function "Worksheet_Change" konpego Excel Worksheet Functions 0 June 23rd 05 05:46 AM


All times are GMT +1. The time now is 08:10 AM.

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"