Share via

Excel Formula Help please :)

Anonymous
2023-07-25T06:16:24+00:00

What can I add to the formula below (currenlty in N2), so that if J2 says 'COMPLETE', N2 will say 'PENDING' - without losing the remainder of what i have there already.

current formula is:

=IF(ISBLANK(L2),"", IF(AND(ISBLANK(M2), (A2-L2 > 28)), "EXPIRED", IF(ISNUMBER(M2), "COMPLETED", "PENDING")))

Microsoft 365 and Office | Excel | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2023-07-25T08:16:47+00:00

Try this one.

=IF(AND(K2="",J2="COMPLETED"),"PENDING",IF(ISBLANK(L2),"", IF(AND(ISBLANK(M2), (A2-L2 > 28)), "EXPIRED", IF(ISNUMBER(M2), "COMPLETED", "PENDING"))))

This formula means,

If K2="" and J2 = Completed, then N2 should be Pending
Plus your previous formula.
=IF(ISBLANK(L2),"", IF(AND(ISBLANK(M2), (A2-L2 > 28)), "EXPIRED", IF(ISNUMBER(M2), "COMPLETED", "PENDING")))

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

6 additional answers

Sort by: Most helpful
  1. Anonymous
    2023-07-25T07:58:38+00:00

    Thanks - it is still doing the same thing though - changing column N2 to PENDING even when there is a date in L2 and M2 (which should change N2 to COMPLETED).

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2023-07-25T07:30:09+00:00

    Try this one.

    =IF(ISBLANK(L2),"", IF(AND(ISBLANK(M2), (A2-L2 > 28)), "EXPIRED", IF(ISNUMBER(M2), IF(J2="COMPLETED","PENDING","COMPLETED"), "PENDING")))

    If it still doesn't meet your goal, share us each result with all the conditions. We may rewrite your entire formula.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2023-07-25T07:19:22+00:00

    Hi thanks for the reply - unfortunately that hasn't worked, when i put this in, it seems to be overriding the existing formula that changes cell N based on dates in cells L and M.

    I need the settings in this formula

    =IF(ISBLANK(L2),"", IF(AND(ISBLANK(M2), (A2-L2 > 28)), "EXPIRED", IF(ISNUMBER(M2), "COMPLETED", "PENDING")))

    PLUS

    OR if J2 says COMPLETED, but there is no date in k2, N2 needs to say PENDING

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2023-07-25T06:37:54+00:00

    =IF(J2="COMPLETED","PENDING",IF(ISBLANK(L2),"", IF(AND(ISBLANK(M2), (A2-L2 > 28)), "EXPIRED", IF(ISNUMBER(M2), "COMPLETED", "PENDING"))))

    Image

    Was this answer helpful?

    0 comments No comments