+ Reply to Thread
Results 1 to 3 of 3

IF statement help

  1. #1
    Registered User
    Join Date
    01-23-2020
    Location
    United Kingdom
    MS-Off Ver
    2016
    Posts
    37

    IF statement help

    Hello,

    I`m hoping somebody can help. I have an if statement which works well for my purposes but i would like to had a new element to it but I`m not sure how. See below what it currently looks like.


    =IF(OR(LEN(A2)=0,LEN(K2)<>0),"",IF(O2<0,"Still Time",IF(O2=0,"Due Today",IF(O2>0,"Overdue"))))


    Basically it says that if the number in cell O2 is:

    <0 then "still time"
    =0 then "due today"
    >0 then "overdue"

    What i would like added is:

    if O2 is blank (no number) then "completed".

    Any help would be much appreciated.

    Thanks,

    Brendan

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: IF statement help

    Hi,

    Does this work?

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    01-23-2020
    Location
    United Kingdom
    MS-Off Ver
    2016
    Posts
    37

    Re: IF statement help

    It works perfectly.

    Thanks very 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. [SOLVED] i have an if then statement that works, how to make it work as a with or case statement
    By dmcgov in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-03-2016, 03:34 PM
  2. [SOLVED] If statement to select data - nested statement - assistance
    By petitesouris in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-29-2015, 09:55 PM
  3. compile error expected line number statement end statement
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2014, 10:12 AM
  4. VBA Compile Error : line number or label or statement or end of statement
    By excellearner121 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2013, 06:41 PM
  5. Replies: 4
    Last Post: 06-01-2012, 10:05 AM
  6. Replies: 4
    Last Post: 05-16-2012, 05:33 PM
  7. [SOLVED] Utilize a Select Case Statement in Target Intersect Statement
    By max57 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2009, 08: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