#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default If Question

Hi,

I have a column with times in it

11:28:46 AM
11:29:21 AM
11:29:50 AM
11:44:03 AM
11:44:10 AM
11:44:25 AM
& would like to add the value Lunch or Dinner depending on wether the time
is between say 9:00:00 AM and 2:00:00 PM for Lunch & 2:00:01 PM and 11:59:59
PM

thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 561
Default If Question

Check if the picture answers your question:
http://img32.imageshack.us/img32/8118/nonameme.png
Micky


"Tango" wrote:

Hi,

I have a column with times in it

11:28:46 AM
11:29:21 AM
11:29:50 AM
11:44:03 AM
11:44:10 AM
11:44:25 AM
& would like to add the value Lunch or Dinner depending on wether the time
is between say 9:00:00 AM and 2:00:00 PM for Lunch & 2:00:01 PM and 11:59:59
PM

thanks in advance

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default If Question

You could use an "IF" statement. Suppose cell A2 has the time in it:

=IF((A2TIME(9,0,0))*(A2<=TIME(14,0,0)),"lunch","D inner")



"Tango" wrote:

Hi,

I have a column with times in it

11:28:46 AM
11:29:21 AM
11:29:50 AM
11:44:03 AM
11:44:10 AM
11:44:25 AM
& would like to add the value Lunch or Dinner depending on wether the time
is between say 9:00:00 AM and 2:00:00 PM for Lunch & 2:00:01 PM and 11:59:59
PM

thanks in advance

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
Excel 2007 Macro/VB Question DDE Question MadDog22 Excel Worksheet Functions 1 March 10th 10 01:47 AM
where can I see my question and answer? Yesterday I ask a question IP Excel Discussion (Misc queries) 2 May 10th 08 04:08 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
The question is an excel question that I need to figure out howto do in excel. Terry Excel Worksheet Functions 3 January 23rd 06 06:22 PM
VBA Question / carl Excel Worksheet Functions 2 September 21st 05 07:22 PM


All times are GMT +1. The time now is 10:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright 2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"