![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 32
|
I am making a payroll program which consists of differant worksheets.
On one worksheet called "DAILY LOG', I log men in at differant stations, (C, meaning he is at central station, SS meaning he is at a South Station. On this worksheet those letters mean nothing more...nothing less. however, on this worksheet, the letter S, means he is off sick and puts a value of 11.2 hrs. in the sickleave cell. if I enter a number, forinstance 12, that puts 12 hrs. in the cell or column for 12 hrs. OVERTIME. Now, on another worksheet, I refer to a certain column to read what men were on duty. If this cell corresponds to a man that was working at the Central fire station, I want to enter the value of 24 in this cell. (SS would mean he is on duty at the South Station and enter a value of 24 in the cell. I am using the Formula: =COUNTIF('Daily Log'!D6,"C")*24 this works, butI also would like to add "SS"to it, so that if it see's a C or a SS it will add the number 24 to the cell in second worksheet. Does this make any clearer sense as to what I am trying to do??? |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Winnipeg
Posts: 2,330
|
Quote:
=OR('Daily Log'!D6="C",'Daily Log'!D6="SS")*24 Regards,
__________________
Barrie Davidson "You're only given a little spark of madness. You mustn't lose it." - Robin Williams |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|