+ Reply to Thread
Results 1 to 6 of 6

Using IF, OR function together

  1. #1
    Registered User
    Join Date
    10-11-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    12

    Question Using IF, OR function together

    I have created a spreadsheet for monitoring software trials that I'm initiating. One of the auto calculated columns I have is the status of a trial (active or inactive). I want to take that formula and drag it down to the other empty cells in the column (the rows themselves are yet blank because I add trials as they occur to the spreadsheet).

    Currently if I use a formula in column Q which looks like this:
    =IF(J2<=0,"INACTIVE,"ACTIVE")

    Column J is my Trial End Date column with a date value

    What I would like to happen is that if the J2 cell is empty, I want a return of nothing in the cell.

    Otherwise if I just drag the formula down in column Q, and there is no value in column J, I get a "INACTIVE" result in the cell. I just want that cell empty.

    Can someone please help?

    Thank you

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Using IF, OR function together

    Try

    =IF(J2="","",IF(J2<=0,"INACTIVE,"ACTIVE"))

  3. #3
    Forum Expert
    Join Date
    10-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2003 & 2013
    Posts
    1,986

    Re: Using IF, OR function together

    =IF(ISBLANK(J1),"",IF(J1<=0,"Inactive","active"))

  4. #4
    Registered User
    Join Date
    10-11-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Using IF, OR function together

    Thank you both for the lightning quick response!

  5. #5
    Registered User
    Join Date
    10-11-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Using IF, OR function together

    Sorry guys, just tested and neither work...I think it has some thing to do with the <=0 since it's a date?

    So if the cell is less than or equal to today's date, it's either active or inactive

  6. #6
    Registered User
    Join Date
    10-11-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Using IF, OR function together

    I tried using this:

    =IF(ISBLANK(J1),"",IF(J1<=TODAY(),"Inactive","active"))

    It seems to solve the problem

+ 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: 13
    Last Post: 04-08-2014, 05:46 AM
  2. Replies: 2
    Last Post: 01-15-2014, 11:40 PM
  3. [SOLVED] Using Offset function as the array in the PercentRank function is giving wrong result
    By Bobneil in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-06-2013, 09:29 PM
  4. Replies: 1
    Last Post: 03-21-2012, 11:22 AM
  5. Replies: 2
    Last Post: 03-20-2009, 01:29 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