Here is the syntax in Quickbase for an IF statement. The syntax is actually much simpler than XL because you only need one if for most formulas. You just start with an SF and list your conditions and Quickbase will take the first one that is true if the first one is not true then it goes onto the next and the next until it finds one that is true or else it falls out the bottom and will take the value provided if none of the conditions are true.
It is very important to sequenced the tests in the correct sequence so I will leave that to you but for now I will give you exactly what you asked for which may not be what you need. :)
IF(
[RFQ] + Days(3) <= Today(), "",
[RFQ] + Days(6) <= Today(), "green",
[RFQ] + Days(8) <= Today(), "yellow",
[RFQ] + Days(9) <= Today(), "red")
I actually highly doubt that the formula above will give you the results you want but it will give you the correct syntax so you can rewrite it properly.
//RFQ date + 3 days less than or equal to Today - colour rows white or ""
//RFQ date + 4 days =< RFQ date + 6 days - colour rows green
//RFQ date + 7 days =< RFQ date + 8 days - colour rows yellow
//RFQ date + 9 days - colour rows red
------------------------------
Mark Shnier (YQC)
mark.shnier@gmail.com
------------------------------