ICASE(ICASE(EMPTY(wipdata.wup1),rgb(255,255,255),!EMPTY(wipdata.wup1) and wipdata.mat_type<>"Blend",RGB(0,255,0),!EMPTY(wipdata.wup1) and wipdata.mat_type="Blend",RGB(255,100,0),rgb(255,255,255))'Is there another of doing this, in like a UDF for instance?