Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Grouping Cells???

Hey Guys,

Just a quick question here, i am working on a staffing sheet of sorts, with
three columns

A B C
--- --- ---
Name Time In Time Out
Me 09.00 17.00

i want to if any of you have any idea group cells B and C and work out stuff
like shift duration **(sum=(C - B), and a verity of other stuff, i.e. lates,
helf days, etc. The way i have it working currently is setting a range i.e.
(B2:C20) and then looking through that way and matching criteria. I guess i
am asking is, are there any better ways of achieving this?

any help would be much appriciated.

The Noob

**Just as a note it dose not matter about the number format being time as
all the durations are added up into 2 decimal point numbers.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default Grouping Cells???

Hi,

Basically when working with times it's math's and here are a few simple ones
to get you started

=(C2-B2) Gives the shift duration

You could look at b2 and do this
=IF(B2TIME(9,0,0),"Arrived Late","")

Or c2 and do this
=IF(C2<TIME(17,0,0),"Went early","")

Hope this helps.

Mike





"Noob McKnownowt" wrote:

Hey Guys,

Just a quick question here, i am working on a staffing sheet of sorts, with
three columns

A B C
--- --- ---
Name Time In Time Out
Me 09.00 17.00

i want to if any of you have any idea group cells B and C and work out stuff
like shift duration **(sum=(C - B), and a verity of other stuff, i.e. lates,
helf days, etc. The way i have it working currently is setting a range i.e.
(B2:C20) and then looking through that way and matching criteria. I guess i
am asking is, are there any better ways of achieving this?

any help would be much appriciated.

The Noob

**Just as a note it dose not matter about the number format being time as
all the durations are added up into 2 decimal point numbers.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 449
Default Grouping Cells???

See http://www.cpearson.com/excel/overtime.htm

HTH. Best wishes Harald

"Noob McKnownowt" wrote in
message ...
Hey Guys,

Just a quick question here, i am working on a staffing sheet of sorts,
with
three columns

A B C
--- --- ---
Name Time In Time Out
Me 09.00 17.00


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 37
Default Grouping Cells???

Thanks Harald and Mike,

unfortunatley i work with some.....less than computer literate people and
because staff levels are constantly changing i must avoid using formulas,
because my colleagues ruin them, so i am doing everything in code in VBA, i
was just looking for a way of grouping two cells together that would give me
a bit more control than the range system i was using, i have figured a work
around out so i will see where that takes me.

but like i said thanks very much for the input, and if what i try don't
work, i'll be back :)

The Noob.
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 449
Default Grouping Cells???

Hi Noob

Yeah, blame your users <g. You should as a developer be able to make
something that a user can't misunderstand and also can't break.

Best wishes Harald


"Noob McKnownowt" wrote in
message ...
Thanks Harald and Mike,

unfortunatley i work with some.....less than computer literate people and
because staff levels are constantly changing i must avoid using formulas,
because my colleagues ruin them, so i am doing everything in code in VBA,
i
was just looking for a way of grouping two cells together that would give
me
a bit more control than the range system i was using, i have figured a
work
around out so i will see where that takes me.

but like i said thanks very much for the input, and if what i try don't
work, i'll be back :)

The Noob.




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 449
Default Grouping Cells???

Sorry, fell out of edit: Start with a look at worksheet protection and
passwords.

Best wishes Harald


"Harald Staff" wrote in message
...
Hi Noob

Yeah, blame your users <g. You should as a developer be able to make
something that a user can't misunderstand and also can't break.

Best wishes Harald


"Noob McKnownowt" wrote in
message ...
Thanks Harald and Mike,

unfortunatley i work with some.....less than computer literate people and
because staff levels are constantly changing i must avoid using formulas,
because my colleagues ruin them, so i am doing everything in code in VBA,
i
was just looking for a way of grouping two cells together that would give
me
a bit more control than the range system i was using, i have figured a
work
around out so i will see where that takes me.

but like i said thanks very much for the input, and if what i try don't
work, i'll be back :)

The Noob.



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
grouping cells johnrb7865 Excel Worksheet Functions 3 July 22nd 08 03:11 PM
Grouping two cells together [email protected] Excel Discussion (Misc queries) 2 June 11th 07 03:58 PM
Grouping Cells with Macro Jay637 Excel Programming 1 July 21st 05 03:26 AM
Grouping cells Michael Blogg Excel Discussion (Misc queries) 2 May 25th 05 12:18 PM
Grouping Cells Jenuine_2000 Excel Programming 0 October 4th 04 05:53 PM


All times are GMT +1. The time now is 09:48 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"