+ Reply to Thread
Results 1 to 5 of 5

If statement with four conditions, help to amend it to property function

  1. #1
    Registered User
    Join Date
    03-21-2022
    Location
    Botswana
    MS-Off Ver
    2010
    Posts
    31

    If statement with four conditions, help to amend it to property function

    DUMELANG,
    The statement has 4 conditions but a pair each has same vector, the only way to differentiate them is through a cell which is K79 for PWT(Paid Within Target
    ) & POT (PAID OFF TARGET) shouldn't be blank.

    While K79 for NPWT(Not Paid Within Target) & NPOT(Not Paid off Target) should be blank.

    PWT & NPWT Target is less than 14days..
    POT & NPOT Target id more than 14days...

    I have tried my best to make this formula to respond to all situations but it doesn't respond:

    IF((ISNUMBER(K79),K79<=14,""),"PWT",IF(AND(D79-$F$76<=14,K79=""),"NPWT",IF((ISNUMBER(K79),K79>14,"")"POT",IF(AND(D79-$F$76>14,K79=""),"NPOT"))))
    Last edited by Khali; 04-06-2022 at 07:40 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,907

    Re: Help to amend the formula

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title and opening post should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)



    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,907

    Re: If statement with four conditions, help to amend it to property function

    Thank you. Just waiting for your sample workbook.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,860

    Re: If statement with four conditions, help to amend it to property function

    Guessing !

    =IF(ISNUMBER(K79),IF(K79<=14,"PWT","POT"),IF(D79-$F$76<=14,"NPWT","NPOT"))
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  5. #5
    Registered User
    Join Date
    03-21-2022
    Location
    Botswana
    MS-Off Ver
    2010
    Posts
    31

    Re: If statement with four conditions, help to amend it to property function

    Thanks john

+ 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. Amend formula
    By robertguy in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-23-2018, 07:42 AM
  2. [SOLVED] Amend formula
    By Excelski in forum Excel General
    Replies: 1
    Last Post: 08-31-2017, 10:17 AM
  3. [SOLVED] Help to amend vlookup formula
    By mso3 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-21-2016, 07:12 AM
  4. how to amend formula to specification
    By max8719 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 09-15-2016, 03:02 PM
  5. [SOLVED] Amend formula to return ‘Yes’ rather than ‘P’
    By robertguy in forum Excel General
    Replies: 7
    Last Post: 06-17-2015, 10:03 AM
  6. [SOLVED] Help request to amend the formula
    By mso3 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-30-2015, 02:22 AM
  7. Need to amend Array Formula
    By adam2308 in forum Excel General
    Replies: 3
    Last Post: 07-09-2009, 06:54 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