Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi everyone,
Help is needed......... cells B5 to B40 may contain a number or be left blank--- cells O5 to O40 may contain a number or be left blank. I need to count the instances where a number appears in a cell B5 to B40 and cells O5 to O40 example cell B10 cell O10 cell z10 3 1 = 1 instance cell B15 cell O15 7 1 = 1 instance so total would be 2 instances of criteria met. Hope this is clear to someone who could help me with this. Thanks in advance...... |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try something like this:
=SUMPRODUCT(ISNUMBER(B5:B40)*ISNUMBER(O5:O40)) Does that help? *********** Regards, Ron XL2002, WinXP "pano" wrote: Hi everyone, Help is needed......... cells B5 to B40 may contain a number or be left blank--- cells O5 to O40 may contain a number or be left blank. I need to count the instances where a number appears in a cell B5 to B40 and cells O5 to O40 example cell B10 cell O10 cell z10 3 1 = 1 instance cell B15 cell O15 7 1 = 1 instance so total would be 2 instances of criteria met. Hope this is clear to someone who could help me with this. Thanks in advance...... |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
On Apr 11, 12:02 am, Ron Coderre
wrote: Try something like this: =SUMPRODUCT(ISNUMBER(B5:B40)*ISNUMBER(O5:O40)) Does that help? *********** Regards, Ron XL2002, WinXP "pano" wrote: Hi everyone, Help is needed......... cells B5 to B40 may contain a number or be left blank--- cells O5 to O40 may contain a number or be left blank. I need to count the instances where a number appears in a cell B5 to B40 and cells O5 to O40 example cell B10 cell O10 cell z10 3 1 = 1 instance cell B15 cell O15 7 1 = 1 instance so total would be 2 instances of criteria met. Hope this is clear to someone who could help me with this. Thanks in advance......- Hide quoted text - - Show quoted text - Ron thanks for the input but no it does not count the instances for me when I put your formula in it just comes up blank |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I posted a bit of a shortcut....the formula should automatically count
instances where same-row cells in Col_B and Col_O contain numbers. Consequently, you wouldn't need to list it in Col_Z (if that's what you're doing) If this was the only activity: Refs Col_B Col_O Row_5 1 (blank) Row_6 (blank) (blank) Row_7 (blank) 3 Row_8 4 5 Row_9 9 8 The formula would return: 2 (OnlyRow 8 and 9 contain 2 number) Is there a problem with the data? numeric text, possibly? Try this test: A5: =ISNUMBER(B5) Copy that formula down through A40 The formula will return TRUE for every referenced cell that contains a number. Repeat for O5:O40 Does that help? *********** Regards, Ron XL2002, WinXP "pano" wrote: On Apr 11, 12:02 am, Ron Coderre wrote: Try something like this: =SUMPRODUCT(ISNUMBER(B5:B40)*ISNUMBER(O5:O40)) Does that help? *********** Regards, Ron XL2002, WinXP "pano" wrote: Hi everyone, Help is needed......... cells B5 to B40 may contain a number or be left blank--- cells O5 to O40 may contain a number or be left blank. I need to count the instances where a number appears in a cell B5 to B40 and cells O5 to O40 example cell B10 cell O10 cell z10 3 1 = 1 instance cell B15 cell O15 7 1 = 1 instance so total would be 2 instances of criteria met. Hope this is clear to someone who could help me with this. Thanks in advance......- Hide quoted text - - Show quoted text - Ron thanks for the input but no it does not count the instances for me when I put your formula in it just comes up blank |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
On Apr 11, 12:36 am, Ron Coderre
wrote: I posted a bit of a shortcut....the formula should automatically count instances where same-row cells in Col_B and Col_O contain numbers. Consequently, you wouldn't need to list it in Col_Z (if that's what you're doing) If this was the only activity: Refs Col_B Col_O Row_5 1 (blank) Row_6 (blank) (blank) Row_7 (blank) 3 Row_8 4 5 Row_9 9 8 The formula would return: 2 (OnlyRow 8 and 9 contain 2 number) Is there a problem with the data? numeric text, possibly? Try this test: A5: =ISNUMBER(B5) Copy that formula down through A40 The formula will return TRUE for every referenced cell that contains a number. Repeat for O5:O40 Does that help? *********** Regards, Ron XL2002, WinXP "pano" wrote: On Apr 11, 12:02 am, Ron Coderre wrote: Try something like this: =SUMPRODUCT(ISNUMBER(B5:B40)*ISNUMBER(O5:O40)) Does that help? *********** Regards, Ron XL2002, WinXP "pano" wrote: Hi everyone, Help is needed......... cells B5 to B40 may contain a number or be left blank--- cells O5 to O40 may contain a number or be left blank. I need to count the instances where a number appears in a cell B5 to B40 and cells O5 to O40 example cell B10 cell O10 cell z10 3 1 = 1 instance cell B15 cell O15 7 1 = 1 instance so total would be 2 instances of criteria met. Hope this is clear to someone who could help me with this. Thanks in advance......- Hide quoted text - - Show quoted text - Ron thanks for the input but no it does not count the instances for me when I put your formula in it just comes up blank- Hide quoted text - - Show quoted text - Ok Ron I tried your formula on a new blank sheet and yes it works so I dont understand why it wont work on my workbook. I ran your test B5:B40 came up false in all cells and O5:O40 came up true in all cells---O5:O40 does have a formula in each cell which is as follows =(COUNTIF(COUNT!C42:C72,J5)0)+0 whereas B5 to B40 the user has to enter a number. Awaiting your further advice to helpo solve this if indeed it can be?? |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Make sure B5:B40 is NOT formatted as TEXT.
Select B5:B40...then From the Excel main menu: <format<cells<number tab Category: (Select "General" or "Number"...anything but "Text") Note: if they were set as Text, you'll need to coerce their values from text to numbers..... Select B5:B40 <data<text-to-columns....click the [finish] button Does that help? *********** Regards, Ron XL2002, WinXP "pano" wrote: On Apr 11, 12:36 am, Ron Coderre wrote: I posted a bit of a shortcut....the formula should automatically count instances where same-row cells in Col_B and Col_O contain numbers. Consequently, you wouldn't need to list it in Col_Z (if that's what you're doing) If this was the only activity: Refs Col_B Col_O Row_5 1 (blank) Row_6 (blank) (blank) Row_7 (blank) 3 Row_8 4 5 Row_9 9 8 The formula would return: 2 (OnlyRow 8 and 9 contain 2 number) Is there a problem with the data? numeric text, possibly? Try this test: A5: =ISNUMBER(B5) Copy that formula down through A40 The formula will return TRUE for every referenced cell that contains a number. Repeat for O5:O40 Does that help? *********** Regards, Ron XL2002, WinXP "pano" wrote: On Apr 11, 12:02 am, Ron Coderre wrote: Try something like this: =SUMPRODUCT(ISNUMBER(B5:B40)*ISNUMBER(O5:O40)) Does that help? *********** Regards, Ron XL2002, WinXP "pano" wrote: Hi everyone, Help is needed......... cells B5 to B40 may contain a number or be left blank--- cells O5 to O40 may contain a number or be left blank. I need to count the instances where a number appears in a cell B5 to B40 and cells O5 to O40 example cell B10 cell O10 cell z10 3 1 = 1 instance cell B15 cell O15 7 1 = 1 instance so total would be 2 instances of criteria met. Hope this is clear to someone who could help me with this. Thanks in advance......- Hide quoted text - - Show quoted text - Ron thanks for the input but no it does not count the instances for me when I put your formula in it just comes up blank- Hide quoted text - - Show quoted text - Ok Ron I tried your formula on a new blank sheet and yes it works so I dont understand why it wont work on my workbook. I ran your test B5:B40 came up false in all cells and O5:O40 came up true in all cells---O5:O40 does have a formula in each cell which is as follows =(COUNTIF(COUNT!C42:C72,J5)0)+0 whereas B5 to B40 the user has to enter a number. Awaiting your further advice to helpo solve this if indeed it can be?? |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
On Apr 11, 1:00 am, "pano" wrote:
On Apr 11, 12:36 am, Ron Coderre wrote: I posted a bit of a shortcut....the formula should automatically count instances where same-row cells in Col_B and Col_O contain numbers. Consequently, you wouldn't need to list it in Col_Z (if that's what you're doing) If this was the only activity: Refs Col_B Col_O Row_5 1 (blank) Row_6 (blank) (blank) Row_7 (blank) 3 Row_8 4 5 Row_9 9 8 The formula would return: 2 (OnlyRow 8 and 9 contain 2 number) Is there a problem with the data? numeric text, possibly? Try this test: A5: =ISNUMBER(B5) Copy that formula down through A40 The formula will return TRUE for every referenced cell that contains a number. Repeat for O5:O40 Does that help? *********** Regards, Ron XL2002, WinXP "pano" wrote: On Apr 11, 12:02 am, Ron Coderre wrote: Try something like this: =SUMPRODUCT(ISNUMBER(B5:B40)*ISNUMBER(O5:O40)) Does that help? *********** Regards, Ron XL2002, WinXP "pano" wrote: Hi everyone, Help is needed......... cells B5 to B40 may contain a number or be left blank--- cells O5 to O40 may contain a number or be left blank. I need to count the instances where a number appears in a cell B5 to B40 and cells O5 to O40 example cell B10 cell O10 cell z10 3 1 = 1 instance cell B15 cell O15 7 1 = 1 instance so total would be 2 instances of criteria met. Hope this is clear to someone who could help me with this. Thanks in advance......- Hide quoted text - - Show quoted text - Ron thanks for the input but no it does not count the instances for me when I put your formula in it just comes up blank- Hide quoted text - - Show quoted text - Ok Ron I tried your formula on a new blank sheet and yes it works so I dont understand why it wont work on my workbook. I ran your test B5:B40 came up false in all cells and O5:O40 came up true in all cells---O5:O40 does have a formula in each cell which is as follows =(COUNTIF(COUNT!C42:C72,J5)0)+0 whereas B5 to B40 the user has to enter a number. Awaiting your further advice to helpo solve this if indeed it can be??- Hide quoted text - - Show quoted text - OK Ron thanks for your help but I have solved it with this formula and I just count up the rows....to get the total =SUM(IF((B5:B400)*(O5:O400),1,0)) |
#8
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
On Apr 11, 12:16 am, "pano" wrote:
On Apr 11, 12:02 am, Ron Coderre wrote: Try something like this: =SUMPRODUCT(ISNUMBER(B5:B40)*ISNUMBER(O5:O40)) Does that help? *********** Regards, Ron XL2002, WinXP "pano" wrote: Hi everyone, Help is needed......... cells B5 to B40 may contain a number or be left blank--- cells O5 to O40 may contain a number or be left blank. I need to count the instances where a number appears in a cell B5 to B40 and cells O5 to O40 example cell B10 cell O10 cell z10 3 1 = 1 instance cell B15 cell O15 7 1 = 1 instance so total would be 2 instances of criteria met. Hope this is clear to someone who could help me with this. Thanks in advance......- Hide quoted text - - Show quoted text - Ron thanks for the input but no it does not count the instances for me when I put your formula in it just comes up blank- Hide quoted text - - Show quoted text - I have come up with this but it still counts cell O10 when it has a value (1) as an instance when cell B10 is empty =SUM(IF((B5:B400)+(O5:O400),1,0)) so there must be something wrong with this and I bet it is the + sign in the middle Something like this SUMIF B5:B40 has a number greater than "" and O5:O40 has a corrosponding number greater than "" then count as 1 instance |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
COUNTIF question | Excel Worksheet Functions | |||
Countif question | Excel Worksheet Functions | |||
countif question | Excel Worksheet Functions | |||
COUNTIF Question | Excel Worksheet Functions | |||
COUNTIF Question | Excel Worksheet Functions |