Hi guys, beginner to excel here.

I am looking for a simple function which would give me back a value if the color of the cell where anything other than white.
And by simple I mean one that will work while using the spreadsheet online through gmail's drive system :P

So basically:
A1=white, unaltered
A2=blue, only background changed
A3=red, only background changed


I would then like to make a loop which would count the number of cells so something along the lines of
B1=if(A1=/white,1,0)+if(A2=/white,1,0)+if(A3=/white,1,0)

so B1 would give back 2 in this case. Searching the forum I only found some VBA solutions which I am not familiar with and dont know how to implement into the online spreadsheet. Hope I havent made it too complicated and that someone could help me or point me to a topic I could have missed.

Thanks in advance
Tom