using Excel 2007
I'm looking for a formula that tells me how many times a value is repeated in a range of cells.
For example I have a range of cells , C1 to S5, that will SOMETIMES have a repeated number.
now in Cell C9 I will have one number, say number 27.
What would the the formula that I could put in C10 that tells me how many times the number 27 is in the range C1 to S5.......so for example if 27 was popping up 3 times in the C1 to S5 range, then in C10 the number three would be the result.
Now in C11 have a formula that tells me how many times "within one" of the number 27....so if there was a 26 or a 28 in the same cell range have that amount show up in C11....so lets say there were two 26's and three 28's....the value in C11 would be 5.....meaning 5 numbers are "within one" of 27
and finally in cell C12 have the same concept as within one...but this time set it as "within two" of the value of C9 (which is 27)....so this formula would only look for numbers within 2 of the number 27....so 29 and 25 would be the numbers i'm looking for...so however many numbers within two of 27 would pop up in C12.
man I hope I explained myself clearly....bacially one cell counts the how many numbers match C9....another cell counts how many numbers within one of C9...and last cell counts how many numbers within 2 of C9
I'm looking for a formula that tells me how many times a value is repeated in a range of cells.
For example I have a range of cells , C1 to S5, that will SOMETIMES have a repeated number.
now in Cell C9 I will have one number, say number 27.
What would the the formula that I could put in C10 that tells me how many times the number 27 is in the range C1 to S5.......so for example if 27 was popping up 3 times in the C1 to S5 range, then in C10 the number three would be the result.
Now in C11 have a formula that tells me how many times "within one" of the number 27....so if there was a 26 or a 28 in the same cell range have that amount show up in C11....so lets say there were two 26's and three 28's....the value in C11 would be 5.....meaning 5 numbers are "within one" of 27
and finally in cell C12 have the same concept as within one...but this time set it as "within two" of the value of C9 (which is 27)....so this formula would only look for numbers within 2 of the number 27....so 29 and 25 would be the numbers i'm looking for...so however many numbers within two of 27 would pop up in C12.
man I hope I explained myself clearly....bacially one cell counts the how many numbers match C9....another cell counts how many numbers within one of C9...and last cell counts how many numbers within 2 of C9