PC Review


Reply
Thread Tools Rate Thread

Can you put two functions in one cell?

 
 
=?Utf-8?B?ZGFkdWNlXzI=?=
Guest
Posts: n/a
 
      21st Feb 2006
I am trying to get one cell to add hours worked, and if over 40 hours, add
the number of hours to that cell. The only way I can see to do it is to have
2 functions in one cell. Is this possible?
 
Reply With Quote
 
 
 
 
Ron Rosenfeld
Guest
Posts: n/a
 
      21st Feb 2006
On Mon, 20 Feb 2006 19:06:31 -0800, "daduce_2"
<(E-Mail Removed)> wrote:

>I am trying to get one cell to add hours worked, and if over 40 hours, add
>the number of hours to that cell. The only way I can see to do it is to have
>2 functions in one cell. Is this possible?


What do you want to have show in the cell if there are 40 or fewer hours?

If you just want to count overtime hours, then

=MAX(0,Hrs_Worked - 40)

You can format to not show the zero, if you wish.


--ron
 
Reply With Quote
 
=?Utf-8?B?ZGFkdWNlXzI=?=
Guest
Posts: n/a
 
      21st Feb 2006
Yes, your right I left that part out. Can you get the same cell to put
overtime hours or if less than 40, put those hours also.
Thanx for the response
chris

"Ron Rosenfeld" wrote:

> On Mon, 20 Feb 2006 19:06:31 -0800, "daduce_2"
> <(E-Mail Removed)> wrote:
>
> >I am trying to get one cell to add hours worked, and if over 40 hours, add
> >the number of hours to that cell. The only way I can see to do it is to have
> >2 functions in one cell. Is this possible?

>
> What do you want to have show in the cell if there are 40 or fewer hours?
>
> If you just want to count overtime hours, then
>
> =MAX(0,Hrs_Worked - 40)
>
> You can format to not show the zero, if you wish.
>
>
> --ron
>

 
Reply With Quote
 
Ron Rosenfeld
Guest
Posts: n/a
 
      21st Feb 2006
On Tue, 21 Feb 2006 03:08:28 -0800, "daduce_2"
<(E-Mail Removed)> wrote:

>Yes, your right I left that part out. Can you get the same cell to put
>overtime hours or if less than 40, put those hours also.
>Thanx for the response
>chris
>
>"Ron Rosenfeld" wrote:
>
>> On Mon, 20 Feb 2006 19:06:31 -0800, "daduce_2"
>> <(E-Mail Removed)> wrote:
>>
>> >I am trying to get one cell to add hours worked, and if over 40 hours, add
>> >the number of hours to that cell. The only way I can see to do it is to have
>> >2 functions in one cell. Is this possible?

>>
>> What do you want to have show in the cell if there are 40 or fewer hours?
>>
>> If you just want to count overtime hours, then
>>
>> =MAX(0,Hrs_Worked - 40)
>>
>> You can format to not show the zero, if you wish.
>>
>>
>> --ron
>>


Well, you could do something like:

=IF(Hrs_Worked>40, Hrs_Worked-40, Hrs_Worked)

but how would you know if the number being displayed was the regular time or
the overtime hours. IOW, how would you want to differentiate between the
person who worked 20 hrs and the person who worked 60 hrs. Using your
specifications, the cell would show 20 in both instances.


--ron
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert cell formula functions to code functions Adnan Microsoft Excel Misc 1 1st Oct 2008 08:30 PM
cell properties and cell functions =?Utf-8?B?U3RldmUgQ3VydGlz?= Microsoft Excel Worksheet Functions 7 15th Feb 2006 12:31 AM
HOW DO I USE TWO IF FUNCTIONS IN ONE CELL? =?Utf-8?B?TG9yaSBCcm9ja21hbg==?= Microsoft Excel Worksheet Functions 1 14th Dec 2005 12:34 AM
How to use functions in one cell to get text in another cell =?Utf-8?B?cmxi?= Microsoft Excel Worksheet Functions 8 5th May 2005 08:37 PM
Cell Functions TERMINATOR Microsoft Excel Worksheet Functions 2 14th Sep 2004 10:19 AM


Features
 

Advertising
 

Newsgroups
 


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