RoryA my blue color is RGB(0,176,240)
So what Im trying to do is write VBA function that could read that background color of the active cell and if so copy number from specific cell since as of now my excel function is = If( AND( D2= S-1 or S-2 or S-3, M2= blue), J2,). So Im just trying to write code that could help me simplify this function instead writing blue on the side of my table, to just read the color and still apply If statement.