if, then display message

  • Thread starter Thread starter puiuluipui
  • Start date Start date
P

puiuluipui

Hi, i have this code. It's working great. I need to modify a little bit this
code without alter this code. I need just to add one more thing:

{=IF(NOT(SUMPRODUCT(--(Sheet1!A1:C1>=TODAY()),--(Sheet2!A1:G1<>""))),"Please
pay",
IF(COUNT(Sheet1!A1:C1),IF(TODAY()>=MAX(Sheet1!A1:C1),"Expired",INDEX(Sheet1!A1:C1,,MIN(IF(Sheet1!A1:C1>TODAY(),COLUMN(Sheet1!A1:C1)))-COLUMN(Sheet1!A1:C1)+1)-TODAY()),""))}

If in Sheet1!A1:C1 thecode finds "OP", then to display "integral"

Can this be done without to alter the code?
Thanks!
 
try this
=IF(Sheet1!A1:C1="OP","integral",IF(NOT(SUMPRODUCT(--(Sheet1!A1:C1>=TODAY()),--(Sheet2!A1:G1<>""))),"Please
pay",IF(COUNT(Sheet1!A1:C1),IF(TODAY()>=MAX(Sheet1!A1:C1),"Expired",INDEX(Sheet1!A1:C1,,MIN(IF(Sheet1!A1:C1>TODAY(),COLUMN(Sheet1!A1:C1)))-COLUMN(Sheet1!A1:C1)+1)-TODAY()),"")))

-kc
*Click YES if this helps
 
Back
Top