View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
KC KC is offline
external usenet poster
 
Posts: 94
Default if, then display message

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(Sheet 1!A1:C1TODAY(),COLUMN(Sheet1!A1:C1)))-COLUMN(Sheet1!A1:C1)+1)-TODAY()),"")))

-kc
*Click YES if this helps

"puiuluipui" wrote:

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:C 1),"Expired",INDEX(Sheet1!A1:C1,,MIN(IF(Sheet1!A1: C1TODAY(),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!