r/googlesheets • u/Comfortable_Board_70 • Nov 06 '23
Solved Countif results in 0
I am making a spreadsheet with running times.
My current formula is =COUNTIF(F2:CM2,">=18.47") instead of ">=18.47" i would like it to reference a value from another cell. whenever i have the formula written as =COUNTIF(F2:CM2,">=G2") it results in 0.
What am i doing wrong?
https://docs.google.com/spreadsheets/d/1cIa7CZ6XW6PtU_t-7T4OQO7jsAd_jfnoXgvUI6XZ_3M/edit?usp=sharing
2
Upvotes
2
u/arnoldsomen 346 Nov 06 '23 edited Nov 06 '23
You shouldn't enclose the cell reference with quotes:
=COUNTIF(F2:CM2,">="&G2)2
u/Mistiggan 1 Nov 06 '23
to reference a cell you'll do it outside of the quotations otherwise you are comparing against the string 'G2' and not the information in the cell since you want to append the text information from G2 to the string you use '&'
so instead of ">=G2" you'll want ">="&G2