Hi,
I have a spreadsheet and I am trying to use a count function for data in specific columns only
e.g.
Column A: 1
Column B: 3
Column C: (A+B) 4
Column D: 4
Column E: 0
Column F: (D+E) 4
I am trying to get a count of the number of columns that contain the value 4 but only as an input value as opposed to the sum of any other values (if that makes sense), in this case I do not want to include columns C or F in my count function.
Anyone any suggestions?
Thanks
Try =COUNTIF(A1:B1,4)+COUNTIF(D1:E1,4) or =COUNTIF(A1:E1,4)-(C1=4)
"Relax. What is mind? No matter. What is matter? Never mind!"
Thanks zbor,
The range of columns I am interrogating is over 100 with the formula every 3 cells, would be hoping for a slightly more efficient way of doing this if possible
Regards
Try this... Extend ranges as you need:
=SUMPRODUCT(--(A1:H1=4), --(MOD(COLUMN(A1:H1), 3)<>0))
"Relax. What is mind? No matter. What is matter? Never mind!"
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks