LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default how do i use contains in an if statement

=LOOKUP(HOUR(A1),{7,15,23},{"1st","2nd","3rd"})


"Pondering" wrote:

I have data that exports in this format
4/30/2007 07:00:00
4/30/2007 15:00:00
4/30/2007 23:00:00
I'm not sure if it matters but if you actually click on the cell it also
shows AM or PM. I need an If then statement that will tell me if ex
IF A1 contains 07:00:00 then "1ST", If A1 contains 15:00:00 then "2ND",else
"3rd"

I can't get the formats right, thanks for your help!



 
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
Please help me with an If statement keri Excel Discussion (Misc queries) 6 December 12th 06 11:45 PM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM
If Then Statement Help Joanne Excel Discussion (Misc queries) 2 January 30th 06 08:09 PM
If statement and Isblank statement Rodney C. Excel Worksheet Functions 0 January 18th 05 08:39 PM
Help please, IF statement/SUMIF statement Brad_A Excel Worksheet Functions 23 January 11th 05 02:24 PM


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