+ Reply to Thread
Results 1 to 4 of 4

IF Function with blank cells

Hybrid View

  1. #1
    Registered User
    Join Date
    05-27-2014
    Posts
    16

    IF Function with blank cells

    Hi Guys

    I have 2 columns with Transit Times.

    I have created a formula in Column C saying "If(A1>B1,"Delayed","On-Time")

    However, some of the the dates in Column A are blank, so I want to say the above but then if any cells are blank in column A then "TBA", so that when I populate in column C it will show TBA instead of an error.

    Can you please help.

    Thanks
    Fentoei

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: IF Function with blank cells

    Maybe this

    =IF(A1="","TBA",IF(A1>B1,"Delayed","On-Time"))
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,807

    Re: IF Function with blank cells

    If(A1>B1,"Delayed","On-Time")
    try

    =IF( A1="", "TBA" , If(A1>B1,"Delayed","On-Time"))
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF Function with blank cells

    Try

    Formula: copy to clipboard
    if(a1="","TBA",If(A1>B1,"Delayed","On-Time"))
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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. Replies: 4
    Last Post: 03-08-2014, 02:03 PM
  2. Function returning cells containing text and omitting blank cells.
    By reszax in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-25-2013, 03:15 PM
  3. Skipping blank cells with IF function
    By warrickza in forum Excel General
    Replies: 8
    Last Post: 05-06-2010, 09:22 AM
  4. [SOLVED] If Function for BLANK cells
    By Andy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-25-2006, 05:10 AM
  5. [SOLVED] If function with blank cells
    By Walter in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-30-2005, 12:07 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