+ Reply to Thread
Results 1 to 3 of 3

Result function is not working correctly (IF & TEXT )

  1. #1
    Registered User
    Join Date
    10-08-2019
    Location
    Sofia
    MS-Off Ver
    Office 15
    Posts
    3

    Result function is not working correctly (IF & TEXT )

    Hi guys,

    Could you please help me to solve following issue:

    Main idea is to output some result. If the result is OFF, want to show OFF, and IF the result is Time, to compare 2 tables and to show time at once.
    Also if the boxes are empty I would like to have empty result.

    OFF functions is working how I expected.
    Attached you SS to show you what have I mean.
    Annotation 2019-10-08 171701.jpg


    Code: =IF(F5="off","OFF",IF(G5="off","OFF")&TEXT(F5,"hh:mm")&" - "&TEXT(G5,"hh:mm"))

    Thanks in advance,
    Emil
    Last edited by Emil85; 10-09-2019 at 02:38 AM.

  2. #2
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Result function is not working correctly (IF & TEXT )

    Try

    =IF(OR(F5="off",G5="off"),"OFF",TEXT(F5,"hh:mm")&" - "&TEXT(G5,"hh:mm"))

    Or closer to your formula

    =IF(F5="off","OFF",IF(G5="off","OFF","")&TEXT(F5,"hh:mm")&" - "&TEXT(G5,"hh:mm"))

  3. #3
    Registered User
    Join Date
    10-08-2019
    Location
    Sofia
    MS-Off Ver
    Office 15
    Posts
    3

    Re: Result function is not working correctly (IF & TEXT )

    Thank you Roel for your support

+ 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. [SOLVED] Why is this If Function not working correctly
    By trying-my-best in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-17-2017, 12:48 PM
  2. IF function not returning expected result
    By kapeller in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-21-2014, 10:12 AM
  3. [SOLVED] Using the Split function with another function incorporated is not working correctly
    By highlystrung in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-06-2013, 03:51 PM
  4. Excel 2007 : Countif function Not working correctly
    By carl.spackler in forum Excel General
    Replies: 12
    Last Post: 04-09-2012, 06:39 PM
  5. Match function not working correctly
    By Vincent1986 in forum Excel General
    Replies: 4
    Last Post: 11-29-2011, 06:49 AM
  6. If function not working correctly
    By lsbeuk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-22-2011, 09:26 PM
  7. Lookup function still not working correctly
    By Biff in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 06:05 AM

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