Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default Different formats for the same cell

I work a rolling rota of any 5 days from 7. I produce a duty statement
detailing my duties over a 4 week period. The start and finish times of any
duty are fixed, however my meal relief time is flexible. Column A represents
what I am doing on a particular day whether it be working or resting and
Column E represents the meal relief start time. What I would like to be able
to do is that if I am resting column E will just record that in text format
or if I am working then I will need to be able to input a start time using
hh:mm format. Is it possible to have different cell formats depending on what
I am doing on any particular day.
Many thanks in anticipation.

--
Al
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 791
Default Different formats for the same cell

Hi gramps. You could use an if statement in Column E. For example in E2 you
could enter =if(A2="Rest","Rest","") and copy down as far as you need to go.
On your rest days, the E cell will say Rest. If you're working, the cell
will be blank, You could then enter your meal start time. However, you will
wipe out the if formula in that cell when you enter a meal start time. When
you start a new period you could just copy the formula from the E cell on a
Rest day and paste it into the new cells. HTH
--
Sincerely, Michael Colvin


"gramps" wrote:

I work a rolling rota of any 5 days from 7. I produce a duty statement
detailing my duties over a 4 week period. The start and finish times of any
duty are fixed, however my meal relief time is flexible. Column A represents
what I am doing on a particular day whether it be working or resting and
Column E represents the meal relief start time. What I would like to be able
to do is that if I am resting column E will just record that in text format
or if I am working then I will need to be able to input a start time using
hh:mm format. Is it possible to have different cell formats depending on what
I am doing on any particular day.
Many thanks in anticipation.

--
Al

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Different formats for the same cell

Yes, you can do that.

Assume E1 is the cell in question.

Format the cell as hh:mm

Now, if you enter a time like 1:00 it will retain the hh:mm format. You can
still enter a TEXT value, like, say, Rest.

Biff

"gramps" wrote in message
...
I work a rolling rota of any 5 days from 7. I produce a duty statement
detailing my duties over a 4 week period. The start and finish times of
any
duty are fixed, however my meal relief time is flexible. Column A
represents
what I am doing on a particular day whether it be working or resting and
Column E represents the meal relief start time. What I would like to be
able
to do is that if I am resting column E will just record that in text
format
or if I am working then I will need to be able to input a start time using
hh:mm format. Is it possible to have different cell formats depending on
what
I am doing on any particular day.
Many thanks in anticipation.

--
Al



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 791
Default Different formats for the same cell

Thanks, Biff. That is a lot easier than my idea. Michael
--
Sincerely, Michael Colvin


"T. Valko" wrote:

Yes, you can do that.

Assume E1 is the cell in question.

Format the cell as hh:mm

Now, if you enter a time like 1:00 it will retain the hh:mm format. You can
still enter a TEXT value, like, say, Rest.

Biff

"gramps" wrote in message
...
I work a rolling rota of any 5 days from 7. I produce a duty statement
detailing my duties over a 4 week period. The start and finish times of
any
duty are fixed, however my meal relief time is flexible. Column A
represents
what I am doing on a particular day whether it be working or resting and
Column E represents the meal relief start time. What I would like to be
able
to do is that if I am resting column E will just record that in text
format
or if I am working then I will need to be able to input a start time using
hh:mm format. Is it possible to have different cell formats depending on
what
I am doing on any particular day.
Many thanks in anticipation.

--
Al




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 46
Default Different formats for the same cell

Thanx guys, works a treat.
--
Al


"Michael" wrote:

Thanks, Biff. That is a lot easier than my idea. Michael
--
Sincerely, Michael Colvin


"T. Valko" wrote:

Yes, you can do that.

Assume E1 is the cell in question.

Format the cell as hh:mm

Now, if you enter a time like 1:00 it will retain the hh:mm format. You can
still enter a TEXT value, like, say, Rest.

Biff

"gramps" wrote in message
...
I work a rolling rota of any 5 days from 7. I produce a duty statement
detailing my duties over a 4 week period. The start and finish times of
any
duty are fixed, however my meal relief time is flexible. Column A
represents
what I am doing on a particular day whether it be working or resting and
Column E represents the meal relief start time. What I would like to be
able
to do is that if I am resting column E will just record that in text
format
or if I am working then I will need to be able to input a start time using
hh:mm format. Is it possible to have different cell formats depending on
what
I am doing on any particular day.
Many thanks in anticipation.

--
Al




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
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
Changing Cell formats to date fields automatically PCLIVE Excel Worksheet Functions 3 April 12th 05 10:34 PM
Can't open doc. Too many different cell formats. Steven Excel Discussion (Misc queries) 3 March 25th 05 07:56 PM
How do I find out how many different cell formats an existing wor. wheelsii Excel Discussion (Misc queries) 1 March 24th 05 04:58 PM


All times are GMT +1. The time now is 11:42 PM.

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"