ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   How do i give the word "CLOSE" a value? (https://www.excelbanter.com/new-users-excel/155872-how-do-i-give-word-close-value.html)

shawnyray

How do i give the word "CLOSE" a value?
 
I want to make it so that the word close is equal to 1:00 AM... I can get 2
different cells to do that... but i need for example cell C3 to say close...
but the word close is equal to 1:00 AM so that my formula can still calculate
how many hours are workd

example

(what i have)
IN OUT
5:00 PM 1:00 AM = 8

(what i need)
IN OUT
5:00 PM CLOSE = 8

the word CLOSE needs to equal 1:00 AM

please advise

RagDyeR

How do i give the word "CLOSE" a value?
 
What formula are you using to calculate the hours worked?
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"shawnyray" wrote in message
...
I want to make it so that the word close is equal to 1:00 AM... I can get

2
different cells to do that... but i need for example cell C3 to say

close...
but the word close is equal to 1:00 AM so that my formula can still

calculate
how many hours are workd

example

(what i have)
IN OUT
5:00 PM 1:00 AM = 8

(what i need)
IN OUT
5:00 PM CLOSE = 8

the word CLOSE needs to equal 1:00 AM

please advise



shawnyray

How do i give the word "CLOSE" a value?
 
=SUM((C8<B8)+C8-B8)+((E8<D8)+E8-D8)+((G8<F8)+G8-F8)+((I8<H8)+I8-H8)+((K8<J8)+K8-J8)+((M8<L8)+M8-L8)+((O8<N8)+O8-N8)


that's the formula i'm using... is there an easier way to do it???

"Ragdyer" wrote:

What formula are you using to calculate the hours worked?
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"shawnyray" wrote in message
...
I want to make it so that the word close is equal to 1:00 AM... I can get

2
different cells to do that... but i need for example cell C3 to say

close...
but the word close is equal to 1:00 AM so that my formula can still

calculate
how many hours are workd

example

(what i have)
IN OUT
5:00 PM 1:00 AM = 8

(what i need)
IN OUT
5:00 PM CLOSE = 8

the word CLOSE needs to equal 1:00 AM

please advise




Bernard Liengme

How do i give the word "CLOSE" a value?
 
A) No need for SUM, just
=(C8<B8)+C8-B8)+((E8<D8)+E8-D8)+((G8<F8)+G8-F8)+((I8<H8)+I8-H8)+((K8<J8)+K8-J8)+((M8<L8)+M8-L8)+((O8<N8)+O8-N8

BE) Insert | Name | Define
Name: Close
Refers to: =TIME(1,0,0)

best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"shawnyray" wrote in message
...
=SUM((C8<B8)+C8-B8)+((E8<D8)+E8-D8)+((G8<F8)+G8-F8)+((I8<H8)+I8-H8)+((K8<J8)+K8-J8)+((M8<L8)+M8-L8)+((O8<N8)+O8-N8)


that's the formula i'm using... is there an easier way to do it???

"Ragdyer" wrote:

What formula are you using to calculate the hours worked?
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"shawnyray" wrote in message
...
I want to make it so that the word close is equal to 1:00 AM... I can
get

2
different cells to do that... but i need for example cell C3 to say

close...
but the word close is equal to 1:00 AM so that my formula can still

calculate
how many hours are workd

example

(what i have)
IN OUT
5:00 PM 1:00 AM = 8

(what i need)
IN OUT
5:00 PM CLOSE = 8

the word CLOSE needs to equal 1:00 AM

please advise






RagDyeR

How do i give the word "CLOSE" a value?
 
I could suggest a way to use "Close" as 1:00 AM, but not in the way you're
configuring your time sheet to be horizontal.
Normally, the days are vertical, with a daily calculation, which is then
totaled for the week at the bottom of a column.

With a daily calculation, I could easily suggest a way to test for "Close"
as being an "OUT" value, and reference a formula to evaluate it to a
particular numeric value.

If you're set in your design, then I can't suggest anything ... Sorry!
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"shawnyray" wrote in message
...

=SUM((C8<B8)+C8-B8)+((E8<D8)+E8-D8)+((G8<F8)+G8-F8)+((I8<H8)+I8-H8)+((K8<J8)
+K8-J8)+((M8<L8)+M8-L8)+((O8<N8)+O8-N8)


that's the formula i'm using... is there an easier way to do it???

"Ragdyer" wrote:

What formula are you using to calculate the hours worked?
--
Regards,

RD


--------------------------------------------------------------------------

-
Please keep all correspondence within the NewsGroup, so all may benefit

!

--------------------------------------------------------------------------

-
"shawnyray" wrote in message
...
I want to make it so that the word close is equal to 1:00 AM... I can

get
2
different cells to do that... but i need for example cell C3 to say

close...
but the word close is equal to 1:00 AM so that my formula can still

calculate
how many hours are workd

example

(what i have)
IN OUT
5:00 PM 1:00 AM = 8

(what i need)
IN OUT
5:00 PM CLOSE = 8

the word CLOSE needs to equal 1:00 AM

please advise






All times are GMT +1. The time now is 09:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com