+ Reply to Thread
Results 1 to 6 of 6

combine formulas

  1. #1
    Registered User
    Join Date
    10-28-2007
    Location
    Broken Arrow, OK
    Posts
    50

    combine formulas

    OK an easy one here, while I am trying to figure out formulas for myself. I want to combine the two formulas into one. I tried an OR statement but no success, please help. The formulas are linked to a cell that is formated for time (1:30 PM) which is also causing me problems.

    =if(a2<4,"DV")
    =if(a2=4,"CL")

    Thank you,

    Duane

  2. #2
    Valued Forum Contributor ratcat's Avatar
    Join Date
    03-07-2008
    Location
    Rural NSW, Australia
    MS-Off Ver
    Vista 2007
    Posts
    1,111
    G'day,

    Try this, but it only works for 24 hour time.

    Please Login or Register  to view this content.


    Since I'm on a 10 min break at work, as soon as I can I'll figure out the 12 hour bit. You'll be the first to know.

    Cheers
    Have I made you happy ??? If yes, please make me happy by pressing the http://www.excelforum.com/images/buttons/reputation-40b.png Add Reputation button in my post.
    Please don't forget to do the same to other contributors of this forum.

    Thanks
    I don't void confusion, I create it

  3. #3
    Registered User
    Join Date
    10-28-2007
    Location
    Broken Arrow, OK
    Posts
    50
    Hey RatCat, the formula works great even in the 12 hour format. I have noticed if you use a 24 hour format that in the formula bar it still uses the 12 hour format.

    Duane

  4. #4
    Registered User
    Join Date
    10-28-2007
    Location
    Broken Arrow, OK
    Posts
    50
    Another issue is that if the cell it is pointing to is blank it returns "DV". I can I make it blank?

  5. #5
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    For the blank aspect

    =IF(ISBLANK(A2),"",IF(A2=TIME(16,0,0),"CL",IF(A2<TIME(16,0,0),"DV","")))


    rylo

  6. #6
    Registered User
    Join Date
    10-28-2007
    Location
    Broken Arrow, OK
    Posts
    50
    Works perfect, Thank you for your help!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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