+ Reply to Thread
Results 1 to 10 of 10

Auto-changing status: Multiple IFs and AND function question.

  1. #1
    Registered User
    Join Date
    06-19-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    5

    Auto-changing status: Multiple IFs and AND function question.

    LATEST UPDATE HERE.


    UPDATE:

    Hi guys, thanks so much for the starting tips.

    Unfortunately, I've taken both your advice and codes and somehow I still cannot get it to work.

    Been at it for about 2 hours and I'm getting increasingly frustrated (and Googling didn't really provide more help than you guys already gave me). Haha.

    Perhaps I'll provide an even clearer picture of what I want to achieve (Picture Below):

    Excel File:


    ========== first post ===========

    Hi guys,

    I'm a total excel noob. Have something I'm trying to achieve illustrated below:

    qryTw6s.png

    Attachment 326483

    The cells are intended to be either blank, or will be populated with dates. Status will change according to the different combinations of whether either cell is filled with content (dates), or both cells are filled, or neither cells are filled; giving 4 statuses: Nothing/AllFilled/AFilled/XFilled.

    I tried a combination of IF, AND, ISTEXT, ISBLANK functions, but have been having trouble with getting the order of the logic written to work. And i also have trouble with the commas and parentheses.

    Something i tried and didn't work: =IF(AND(ISBLANK(A2),ISBLANK(B2)),"In-Progress",(if(and(istext(A2),isblank(b2),"Process Complete"))"")...

    It's kinda half done, but it just can't figure out my way round it to get the desired effect.

    I'm hoping some geniuses here will enlighten me.

    Thanks so much!
    Attached Files Attached Files
    Last edited by tickles; 06-20-2014 at 03:50 AM.

  2. #2
    Valued Forum Contributor Hawkeye16's Avatar
    Join Date
    02-27-2013
    Location
    Holland
    MS-Off Ver
    ├•┤ Pew Pew
    Posts
    441

    Re: Auto-changing status: Multiple IFs and AND function question.

    Try this
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Despite the high cost of living, it remains very popular.

    Don't forget to mark threads SOLVED when you get an answer and rep all the geniouses that helped you today!

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Auto-changing status: Multiple IFs and AND function question.

    Or this, slightly shorter...
    =IF(A2="",IF(B2="","Nothing","Xfilled"),IF(B2="","Afilled","Allfilled"))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    06-19-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    5

    Re: Auto-changing status: Multiple IFs and AND function question.

    Hi guys, thanks so much for the starting tips.

    Unfortunately, I've taken both your advice and codes and somehow I still cannot get it to work.

    Been at it for about 2 hours and I'm getting increasingly frustrated (and Googling didn't really provide more help than you guys already gave me). Haha.

    Perhaps I'll provide an even clearer picture of what I want to achieve (Picture Below):

    Capture.PNG

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Auto-changing status: Multiple IFs and AND function question.

    Please upload a sample of your workbook, not a picture of your data.
    Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff)

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.

  6. #6
    Registered User
    Join Date
    06-19-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    5

    Re: Auto-changing status: Multiple IFs and AND function question.

    TestAutoStatus.xlsx

    My apologies.

    Excel file attached. First post updated as well.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Auto-changing status: Multiple IFs and AND function question.

    Your file is a bit different from your explanation. Apart from the wording (no real biggie) you now have 3 columns?

    Also, it seems you have some discrepancies?
    A
    B
    C
    D
    1
    READY
    EXECUTED
    ENDED
    STATUS
    2
    1-Jun-14
    3-Jun-14
    2-Jun-14
    Full
    3
    Waiting
    4
    1-Jun-14
    Ready
    5
    1-Jun-14
    3-Jun-14
    Full
    6
    1-Jun-14
    2-Jun-14
    Ended
    7
    3-Jun-14
    2-Jun-14
    Waiting
    8
    2-Jun-14
    Waiting
    9
    3-Jun-14
    Waiting


    Row 3 is empty, D3=waiting
    B7:C7 contain dates, D7=waiting

    I think you need to define your rules for me again?

  8. #8
    Registered User
    Join Date
    06-19-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    5

    Re: Auto-changing status: Multiple IFs and AND function question.

    Yup, now there are three.

    The "Ready" column is crucial. As long as the 'Ready" column is empty, whatever the state of the other columns, the status should always be "Waiting".

    However, the status starts changing (from "Waiting") only when (1) Ready column is filled; with various filled/unfilled combinations of Col B and Col C.

    Assuming Col A is filled, then if B is filled while C is blank or filled, Status = Full (Rows 2 and 5)

    Assuming COl A is filled, then if B is blank, while C is filled, Status = Ended (Row 6)

    Assuming Col A is filled, then if B is blank, while C is blank, Status = Ready (Row 4)

    Assuming Col A is blank, whether or not B and C is filled/blank, Status = Waiting (Rows 2, 7, 8 and 9)

    A
    B
    C
    D
    1
    READY
    EXECUTED
    ENDED
    STATUS
    2
    1-Jun-14
    3-Jun-14
    2-Jun-14
    Full
    3
    Waiting
    4
    1-Jun-14
    Ready
    5
    1-Jun-14
    3-Jun-14
    Full
    6
    1-Jun-14
    2-Jun-14
    Ended
    7
    3-Jun-14
    2-Jun-14
    Waiting
    8
    2-Jun-14
    Waiting
    9
    3-Jun-14
    Waiting


    Does this explain things? Sorry if I've confused everyone by not being elaborate enuff.
    Last edited by tickles; 06-20-2014 at 12:08 AM.

  9. #9
    Registered User
    Join Date
    06-19-2014
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    5

    Re: Auto-changing status: Multiple IFs and AND function question.

    Bump for this evening.

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Auto-changing status: Multiple IFs and AND function question.

    Thanks for the update and sorry for the delay in replying.

    Try this, copied down...
    =IF(A2="","Waiting",IF(B2="",IF(C2="","Ready","Ended"),"Full"))

+ 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] Multiple auto-sorting question
    By Rayneill in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-17-2012, 05:22 PM
  2. Macro for changing Order Status
    By Eduar in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-17-2012, 02:09 PM
  3. Replies: 4
    Last Post: 04-08-2012, 09:43 PM
  4. [SOLVED] Auto Filter Status Bar
    By bkbrueggemann in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-05-2005, 05:25 PM
  5. Question on changing the function of the arrow keys
    By uberblah in forum Excel General
    Replies: 2
    Last Post: 10-21-2005, 05:33 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