Sumproduct & Count formula
I assume that ColA is a named range covering the same number of cells
as G3:G52, i.e. A3:A52.
If so, then you could approach it this way:
=SUMPRODUCT(((ColA=3)+(ColA=4)+(ColA=5))*(ISNUMBER (G3:G52)))
Hope this helps.
Pete
On Dec 5, 12:27*am, VickiMc wrote:
Here is my formula
=SUMPRODUCT(((ColA=3)+(ColA=4)+(ColA=5))*(COUNT(G3 :G52)))
Column G contains either text or numbers.
What I want to achieve is for the formula to count how many cells in column
G contain a number if Column A contains a 3, a 4 or a 5.
What I'm getting is the count of Column A multipling the Sum of Column G.
And just so you know, Column G has to be able to contain Text.
It truly is doing my head in!
|