numbers instead if text
Sure, but also remove the quotes (unless Sheet2!A1:G1 are formatted as text)
Why not just try it?
"puiuluipui" wrote in message
...
Hi, can this code work if instead of "OK" i manually enter numbers?
=IF(NOT(SUMPRODUCT(--(Sheet1!A1:G1=TODAY()),--(Sheet2!A1:G1="OK"))),"Please
pay", IF(COUNT(Sheet1!A1:G1),IF(TODAY()=MAX(Sheet1!A1:G 1),"Expired",
INDEX(Sheet1!A1:G1,,MIN(IF(Sheet1!A1:G1TODAY(),CO LUMN(Sheet1!A1:G1)))-COLUMN(Sheet1!A1:G1)+1)-TODAY()),""))
Thanks!
|