+ Reply to Thread
Results 1 to 4 of 4

Nested If function I can seem to get right

  1. #1
    Registered User
    Join Date
    02-01-2012
    Location
    België
    MS-Off Ver
    Excel 2010
    Posts
    2

    Nested If function I can seem to get right

    Hello,

    For my profession I have to keep track of large quantities of documents, and if these documents are not available, I have to request them from our suppliers. I am trying to formulate a more straightforward approach on prioritizing these quest for requests to suppliers.

    I have several fields: Estimated time of arrival of a shipment (DATE = C2); Received document 1 (TICK X on E2); Received document 2 (TICK X on F2); Requested for (TICK X on J2)

    In a TO DO field I want to retrieve the following information: In want there to appear: "Contact supplier(Opvragen!!)" in case of one of the X-ticks has not been filled in AND if the estimated time of arrival is equal or less then 7 days.

    I tried this formula --> =IF((DAYS360(TODAY();C2;TRUE))>=7;"";IF(AND(E2="x";F2="x";J2="x");"";"Opvragen!!")) but it doesn't seem to work the way I want it to

    In essence I have to combine these 2 IF statements:

    IF(AND(E2="x";F2="x";J2="x");"";"Opvragen!!")
    IF((DAYS360(TODAY();C2;TRUE))<=7;"opvragen";"")


    These integrations underneath I have tried already, and they all failed (some of them might have false > or < values according to the 7, but we're just for testing)

    IF(AND(E2="x";F2="x";J2="x");"";IF((DAYS360(TODAY();C2;TRUE))<=7;"opvragen";""))

    IF(AND(E2="x";F2="x";J2="x");"";"Opvragen!!";IF((DAYS360(TODAY();C2;TRUE))<=7;"opvragen";""))

    IF(AND(E2="x";F2="x";J2="x";(DAYS360(TODAY();C2;TRUE)<=7));"";"Opvragen!!")

    IF(AND(E2="x";F2="x";J2="x";(DAYS360(TODAY();C2;TRUE)>=7));"";"Opvragen!!")

    IF(AND(E2="x";F2="x";J2="x";((DAYS360(TODAY();C2;TRUE))<=7));"";"Opvragen!!")

    IF((DAYS360(TODAY();C2;TRUE))<=7;"";IF(AND(E2="x";F2="x";J2="x");"";"Opvragen!!"))

    IF((DAYS360(TODAY();C2;TRUE))>=7;"";IF(AND(E2="x";F2="x";J2="x");"";"Opvragen!!"))


    So long hours later I give up, please help me

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Nested If function I can seem to get right

    Hi

    How about
    =IF(AND(C2<=TODAY()+7,COUNTA(E2,F2,J2)<3),"Opvragen!!","")

    rylo

  3. #3
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Nested If function I can seem to get right

    Alternate
    =IF(AND(AND(E2="x",F2="x",J2="x"),ABS(TODAY()-C2)>7),"","Opvragen!!")
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    02-01-2012
    Location
    België
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Nested If function I can seem to get right

    Thank you very much. That looks much more simple indeed and it works!

+ 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