Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
I'm currently using the following formula:- =CEILING(SUMPRODUCT(--(A4=$B$10:$B$240),1/COUNTIF($J$10:$J$240,$J$10:$J$240&"")),1) It seems to be working, but if counting a few less items than there actually are. Does anyone know if there are flaws with this formula? I've checked manually and the count if a few numbers out. The cells it is reading are correct and I do the control, alt shift to make it work... any thoughts would be much appreciated thanks fiona |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Normal entered formula to count the number of distinct items in J10:H240 with
the criteria that B10:B240 = A4 =SUMPRODUCT(--(A4=$B$10:$B$240),1/COUNTIF($J$10:$J$240,$J$10:$J$240&"")) If this post helps click Yes --------------- Jacob Skaria "Fiona Yorke-Saville" wrote: Hi, I'm currently using the following formula:- =CEILING(SUMPRODUCT(--(A4=$B$10:$B$240),1/COUNTIF($J$10:$J$240,$J$10:$J$240&"")),1) It seems to be working, but if counting a few less items than there actually are. Does anyone know if there are flaws with this formula? I've checked manually and the count if a few numbers out. The cells it is reading are correct and I do the control, alt shift to make it work... any thoughts would be much appreciated thanks fiona |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks Jacob,
I still seem to be a few out. Would I have to change the format of the cells or something like that? Your formula did work, but the problem I had is still the same. "Jacob Skaria" wrote: Normal entered formula to count the number of distinct items in J10:H240 with the criteria that B10:B240 = A4 =SUMPRODUCT(--(A4=$B$10:$B$240),1/COUNTIF($J$10:$J$240,$J$10:$J$240&"")) If this post helps click Yes --------------- Jacob Skaria "Fiona Yorke-Saville" wrote: Hi, I'm currently using the following formula:- =CEILING(SUMPRODUCT(--(A4=$B$10:$B$240),1/COUNTIF($J$10:$J$240,$J$10:$J$240&"")),1) It seems to be working, but if counting a few less items than there actually are. Does anyone know if there are flaws with this formula? I've checked manually and the count if a few numbers out. The cells it is reading are correct and I do the control, alt shift to make it work... any thoughts would be much appreciated thanks fiona |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
--If A4 is a text string check out whether the text strings in B10:B240 is
exactly same. (no leading, trailing spaces ) --Any formulas returning a space " " instead of "" blank --Try out the same formula in a small set of manually entered values..to see that it works fine. If this post helps click Yes --------------- Jacob Skaria "Fiona Yorke-Saville" wrote: Thanks Jacob, I still seem to be a few out. Would I have to change the format of the cells or something like that? Your formula did work, but the problem I had is still the same. "Jacob Skaria" wrote: Normal entered formula to count the number of distinct items in J10:H240 with the criteria that B10:B240 = A4 =SUMPRODUCT(--(A4=$B$10:$B$240),1/COUNTIF($J$10:$J$240,$J$10:$J$240&"")) If this post helps click Yes --------------- Jacob Skaria "Fiona Yorke-Saville" wrote: Hi, I'm currently using the following formula:- =CEILING(SUMPRODUCT(--(A4=$B$10:$B$240),1/COUNTIF($J$10:$J$240,$J$10:$J$240&"")),1) It seems to be working, but if counting a few less items than there actually are. Does anyone know if there are flaws with this formula? I've checked manually and the count if a few numbers out. The cells it is reading are correct and I do the control, alt shift to make it work... any thoughts would be much appreciated thanks fiona |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks Jacob,
I've checked the boxes and can't see any that have any extra spaces or different features. I've also checked the formula on a small area and it works fine. I must be missing something but cannot figure out what it is. Thanks for your help. "Jacob Skaria" wrote: --If A4 is a text string check out whether the text strings in B10:B240 is exactly same. (no leading, trailing spaces ) --Any formulas returning a space " " instead of "" blank --Try out the same formula in a small set of manually entered values..to see that it works fine. If this post helps click Yes --------------- Jacob Skaria "Fiona Yorke-Saville" wrote: Thanks Jacob, I still seem to be a few out. Would I have to change the format of the cells or something like that? Your formula did work, but the problem I had is still the same. "Jacob Skaria" wrote: Normal entered formula to count the number of distinct items in J10:H240 with the criteria that B10:B240 = A4 =SUMPRODUCT(--(A4=$B$10:$B$240),1/COUNTIF($J$10:$J$240,$J$10:$J$240&"")) If this post helps click Yes --------------- Jacob Skaria "Fiona Yorke-Saville" wrote: Hi, I'm currently using the following formula:- =CEILING(SUMPRODUCT(--(A4=$B$10:$B$240),1/COUNTIF($J$10:$J$240,$J$10:$J$240&"")),1) It seems to be working, but if counting a few less items than there actually are. Does anyone know if there are flaws with this formula? I've checked manually and the count if a few numbers out. The cells it is reading are correct and I do the control, alt shift to make it work... any thoughts would be much appreciated thanks fiona |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Jacob,
I just had a thought, if I was counting information that had part of one cell in another also, would the count miss it? ie. one cell has 'roberts' the next cell has 'robertson' would it omit the first 'roberts' thinking it was the same as 'robertson'? Thanks "Jacob Skaria" wrote: Normal entered formula to count the number of distinct items in J10:H240 with the criteria that B10:B240 = A4 =SUMPRODUCT(--(A4=$B$10:$B$240),1/COUNTIF($J$10:$J$240,$J$10:$J$240&"")) If this post helps click Yes --------------- Jacob Skaria "Fiona Yorke-Saville" wrote: Hi, I'm currently using the following formula:- =CEILING(SUMPRODUCT(--(A4=$B$10:$B$240),1/COUNTIF($J$10:$J$240,$J$10:$J$240&"")),1) It seems to be working, but if counting a few less items than there actually are. Does anyone know if there are flaws with this formula? I've checked manually and the count if a few numbers out. The cells it is reading are correct and I do the control, alt shift to make it work... any thoughts would be much appreciated thanks fiona |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
No. This will be considered as two entries..Like mentioned in the previous
post even spaces count..Try out the same formula with a small set of data to see how it works.. If this post helps click Yes --------------- Jacob Skaria "Fiona Yorke-Saville" wrote: Hi Jacob, I just had a thought, if I was counting information that had part of one cell in another also, would the count miss it? ie. one cell has 'roberts' the next cell has 'robertson' would it omit the first 'roberts' thinking it was the same as 'robertson'? Thanks "Jacob Skaria" wrote: Normal entered formula to count the number of distinct items in J10:H240 with the criteria that B10:B240 = A4 =SUMPRODUCT(--(A4=$B$10:$B$240),1/COUNTIF($J$10:$J$240,$J$10:$J$240&"")) If this post helps click Yes --------------- Jacob Skaria "Fiona Yorke-Saville" wrote: Hi, I'm currently using the following formula:- =CEILING(SUMPRODUCT(--(A4=$B$10:$B$240),1/COUNTIF($J$10:$J$240,$J$10:$J$240&"")),1) It seems to be working, but if counting a few less items than there actually are. Does anyone know if there are flaws with this formula? I've checked manually and the count if a few numbers out. The cells it is reading are correct and I do the control, alt shift to make it work... any thoughts would be much appreciated thanks fiona |
#8
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Jacob,
I think I've figured out what the problem is....I'm not sure of the solution though? The formula all works fine until I have an entry in coloumn J that is entered twice where coloumn B is different. for example, coloumn A coloum J 1 AA 2 BA 2 BA All works fine but if.... 1 AA 2 BA 2 BA 1 BA It starts to miss a few out? Any ideas how to get around this? Many thanks Fiona "Jacob Skaria" wrote: No. This will be considered as two entries..Like mentioned in the previous post even spaces count..Try out the same formula with a small set of data to see how it works.. If this post helps click Yes --------------- Jacob Skaria "Fiona Yorke-Saville" wrote: Hi Jacob, I just had a thought, if I was counting information that had part of one cell in another also, would the count miss it? ie. one cell has 'roberts' the next cell has 'robertson' would it omit the first 'roberts' thinking it was the same as 'robertson'? Thanks "Jacob Skaria" wrote: Normal entered formula to count the number of distinct items in J10:H240 with the criteria that B10:B240 = A4 =SUMPRODUCT(--(A4=$B$10:$B$240),1/COUNTIF($J$10:$J$240,$J$10:$J$240&"")) If this post helps click Yes --------------- Jacob Skaria "Fiona Yorke-Saville" wrote: Hi, I'm currently using the following formula:- =CEILING(SUMPRODUCT(--(A4=$B$10:$B$240),1/COUNTIF($J$10:$J$240,$J$10:$J$240&"")),1) It seems to be working, but if counting a few less items than there actually are. Does anyone know if there are flaws with this formula? I've checked manually and the count if a few numbers out. The cells it is reading are correct and I do the control, alt shift to make it work... any thoughts would be much appreciated thanks fiona |
#9
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
The below formula with the below data retrievs 2 if C1 = 1 and 1 if C1=2.
Isnt that what we should expect?? =CEILING(SUMPRODUCT(--($A$1:$A$10=C1),1/COUNTIF($B$1:$B$10,$B$1:$B$10&"")),1) Col A Col B 1 AA 2 BA 2 BA 1 BA If this post helps click Yes --------------- Jacob Skaria "Fiona Yorke-Saville" wrote: Hi Jacob, I think I've figured out what the problem is....I'm not sure of the solution though? The formula all works fine until I have an entry in coloumn J that is entered twice where coloumn B is different. for example, coloumn A coloum J 1 AA 2 BA 2 BA All works fine but if.... 1 AA 2 BA 2 BA 1 BA It starts to miss a few out? Any ideas how to get around this? Many thanks Fiona "Jacob Skaria" wrote: No. This will be considered as two entries..Like mentioned in the previous post even spaces count..Try out the same formula with a small set of data to see how it works.. If this post helps click Yes --------------- Jacob Skaria "Fiona Yorke-Saville" wrote: Hi Jacob, I just had a thought, if I was counting information that had part of one cell in another also, would the count miss it? ie. one cell has 'roberts' the next cell has 'robertson' would it omit the first 'roberts' thinking it was the same as 'robertson'? Thanks "Jacob Skaria" wrote: Normal entered formula to count the number of distinct items in J10:H240 with the criteria that B10:B240 = A4 =SUMPRODUCT(--(A4=$B$10:$B$240),1/COUNTIF($J$10:$J$240,$J$10:$J$240&"")) If this post helps click Yes --------------- Jacob Skaria "Fiona Yorke-Saville" wrote: Hi, I'm currently using the following formula:- =CEILING(SUMPRODUCT(--(A4=$B$10:$B$240),1/COUNTIF($J$10:$J$240,$J$10:$J$240&"")),1) It seems to be working, but if counting a few less items than there actually are. Does anyone know if there are flaws with this formula? I've checked manually and the count if a few numbers out. The cells it is reading are correct and I do the control, alt shift to make it work... any thoughts would be much appreciated thanks fiona |
#10
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Try the below array formula which uses FREQUENCY()..instead and feedback
=SUM(IF(FREQUENCY(IF(A$1:A$10=C1,MATCH(B$1:B$10,B$ 1:B$10,0)),ROW(A$1:A$10)-ROW(A$1)+1),1)) If this post helps click Yes --------------- Jacob Skaria "Fiona Yorke-Saville" wrote: Hi Jacob, I think I've figured out what the problem is....I'm not sure of the solution though? The formula all works fine until I have an entry in coloumn J that is entered twice where coloumn B is different. for example, coloumn A coloum J 1 AA 2 BA 2 BA All works fine but if.... 1 AA 2 BA 2 BA 1 BA It starts to miss a few out? Any ideas how to get around this? Many thanks Fiona "Jacob Skaria" wrote: No. This will be considered as two entries..Like mentioned in the previous post even spaces count..Try out the same formula with a small set of data to see how it works.. If this post helps click Yes --------------- Jacob Skaria "Fiona Yorke-Saville" wrote: Hi Jacob, I just had a thought, if I was counting information that had part of one cell in another also, would the count miss it? ie. one cell has 'roberts' the next cell has 'robertson' would it omit the first 'roberts' thinking it was the same as 'robertson'? Thanks "Jacob Skaria" wrote: Normal entered formula to count the number of distinct items in J10:H240 with the criteria that B10:B240 = A4 =SUMPRODUCT(--(A4=$B$10:$B$240),1/COUNTIF($J$10:$J$240,$J$10:$J$240&"")) If this post helps click Yes --------------- Jacob Skaria "Fiona Yorke-Saville" wrote: Hi, I'm currently using the following formula:- =CEILING(SUMPRODUCT(--(A4=$B$10:$B$240),1/COUNTIF($J$10:$J$240,$J$10:$J$240&"")),1) It seems to be working, but if counting a few less items than there actually are. Does anyone know if there are flaws with this formula? I've checked manually and the count if a few numbers out. The cells it is reading are correct and I do the control, alt shift to make it work... any thoughts would be much appreciated thanks fiona |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to use Ceiling to round? | Excel Discussion (Misc queries) | |||
MOD and Ceiling formula used to round up and down to 49 and 99 | Excel Discussion (Misc queries) | |||
ceiling | Excel Discussion (Misc queries) | |||
how to use the ceiling function | Excel Worksheet Functions | |||
Max, Ceiling, If, Etc | Excel Discussion (Misc queries) |