+ Reply to Thread
Results 1 to 6 of 6

Using IF to fill cells with TEXT to show staus based on multiple criteria

  1. #1
    Forum Contributor
    Join Date
    12-21-2004
    Location
    MN
    MS-Off Ver
    Microsoft 365
    Posts
    211

    Using IF to fill cells with TEXT to show staus based on multiple criteria

    This is probably an easy fix, but I can't seem to get it right;

    E2 is an install date
    F2 is a disconnect date
    G2 is where I would like the status to show

    I am tracking circuits and need to show what we have as Active or Vacant circuits.
    I would like all of G to show vacant, until an install date goes into E2.
    So if E2, has an install date in it, then obviously G2 needs to change from Vacant to Active.
    At some point, F2 will become populated with a disconnect date, so both E2 and F2 will have dates in them, making this circuit now Vacant again.

    So in summary:
    Initially the status cell (G2) should read Vacant
    Once E2 indicates an install by being populated a date, the status cell (G2) should change to Active.
    If that circuit gets disconnected whereas F2 is populated with a date, the status cell (G2) should switch back to Vacant.

    I thank anyone in advance who can help me!
    Last edited by karstens; 07-26-2012 at 10:23 AM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Using IF to fill cells with TEXT to show staus based on multiple criteria

    hi karstens, you can try:
    =IF(OR(E2="",F2<>""),"Vacant","Active")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    12-21-2004
    Location
    MN
    MS-Off Ver
    Microsoft 365
    Posts
    211

    Re: Using IF to fill cells with TEXT to show staus based on multiple criteria

    Thank you very much! That works great.
    I have never used the OR, so that was very helpful. Thanks again.

  4. #4
    Forum Contributor
    Join Date
    12-21-2004
    Location
    MN
    MS-Off Ver
    Microsoft 365
    Posts
    211

    Re: Using IF to fill cells with TEXT to show staus based on multiple criteria

    Your formula works great...but I need to add another criteria:

    E2 is an install date
    F2 is a disconnect date
    G2 is where I would like the status to show

    If E2 is populated, G2 should say "Active"
    If F2 is populated, G2 should say "Disc"
    If neither is populated, G2 should say "Vacant"

    Thanks again for any assistance.
    Last edited by karstens; 07-25-2012 at 05:48 PM. Reason: Need additional information

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Using IF to fill cells with TEXT to show staus based on multiple criteria

    you could try this:
    =IF(AND(E2="",F2=""),"Vacant",IF(F2<>"","Disc","Active"))

    no problem~ and thanks for the rep

  6. #6
    Forum Contributor
    Join Date
    12-21-2004
    Location
    MN
    MS-Off Ver
    Microsoft 365
    Posts
    211

    Re: Using IF to fill cells with TEXT to show staus based on multiple criteria

    Thanks again.....

+ 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