+ Reply to Thread
Results 1 to 3 of 3

IF Function problem

  1. #1
    Registered User
    Join Date
    09-11-2008
    Location
    Devon. UK
    Posts
    5

    IF Function problem

    Hi all I want to look at some entries I have in C column and check for a time
    (21:15) if it is there put "Closed"

    What I have so far is

    =IF(C5="21:15",C6="21:15","Closed")

    This gives me the output for the cells mentioned but I want to go from C5 to C9..
    When I try and add more cells to the function I get no output. So im thinking I need to add the OR function but have no idea how to put it in there...

    When I have done this I will also want to do the same for another column looking for 06:30 and output "Open"... but that will be the same formula just different cells and output right??

    Any help would be great....

    Thanks

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Maybe
    =IF(Isnumber(Match("21:15",C5:C9,0),"Closed"))

    or

    =IF(Isnumber(Match("21:15"+0,C5:C9,0),"Closed"))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-11-2008
    Location
    Devon. UK
    Posts
    5

    Smile

    Thank you very much, I had to alter your code a little because the "isnumber" bit made it want a number instead of "Closed", so i made it

    =IF(MATCH("21:15"+0,C5:C9,0),"Closed")

    and that works great!

    Thank you so much!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Odd Problem Using Time Date Function
    By samualt in forum Excel General
    Replies: 1
    Last Post: 02-28-2008, 08:35 AM
  2. MIN function problem
    By KiBBo in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-22-2008, 04:04 PM
  3. problem with function ranges
    By Jon Knights in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-15-2008, 09:37 AM
  4. Problem getting a function to work
    By chance in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-11-2007, 01:56 PM
  5. IF combined with AND function problem
    By ginamckee in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 08-22-2007, 04:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1