Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have a row of data where each cell is using a VLOOKUP formula - the formula
either returns a number or "-". I need to count all the cells that contain a NUMBER only and I don't want to count the cells that contain "-". I have tried COUNTIF, SUMPRODUCT... Please help Example A B C D 1 3 - 4 I want formula in this cell to return the value of 2 (because there are numbers in cell A1 and C1, while B1 contains "-" which I don't want to count. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try
Countif($A$1:$D$1,"0") "jcannon1" wrote: I have a row of data where each cell is using a VLOOKUP formula - the formula either returns a number or "-". I need to count all the cells that contain a NUMBER only and I don't want to count the cells that contain "-". I have tried COUNTIF, SUMPRODUCT... Please help Example A B C D 1 3 - 4 I want formula in this cell to return the value of 2 (because there are numbers in cell A1 and C1, while B1 contains "-" which I don't want to count. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Did you try this sumproduct formula
=SUMPRODUCT(--(ISNUMBER(A8:E8))) Mike "jcannon1" wrote: I have a row of data where each cell is using a VLOOKUP formula - the formula either returns a number or "-". I need to count all the cells that contain a NUMBER only and I don't want to count the cells that contain "-". I have tried COUNTIF, SUMPRODUCT... Please help Example A B C D 1 3 - 4 I want formula in this cell to return the value of 2 (because there are numbers in cell A1 and C1, while B1 contains "-" which I don't want to count. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
If the choices for each cell are a number of a dash, then you can use:
=count(a1:c1) to count the numbers If you could have anything in those cells, you could use: =3-countif(a1:c1,"-") (3 is the number of cells in the range you're checking.) jcannon1 wrote: I have a row of data where each cell is using a VLOOKUP formula - the formula either returns a number or "-". I need to count all the cells that contain a NUMBER only and I don't want to count the cells that contain "-". I have tried COUNTIF, SUMPRODUCT... Please help Example A B C D 1 3 - 4 I want formula in this cell to return the value of 2 (because there are numbers in cell A1 and C1, while B1 contains "-" which I don't want to count. -- Dave Peterson |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
ps. I'm assuming that you really have a dash in the cell. Not a 0 with a
special format. Dave Peterson wrote: If the choices for each cell are a number of a dash, then you can use: =count(a1:c1) to count the numbers If you could have anything in those cells, you could use: =3-countif(a1:c1,"-") (3 is the number of cells in the range you're checking.) jcannon1 wrote: I have a row of data where each cell is using a VLOOKUP formula - the formula either returns a number or "-". I need to count all the cells that contain a NUMBER only and I don't want to count the cells that contain "-". I have tried COUNTIF, SUMPRODUCT... Please help Example A B C D 1 3 - 4 I want formula in this cell to return the value of 2 (because there are numbers in cell A1 and C1, while B1 contains "-" which I don't want to count. -- Dave Peterson -- Dave Peterson |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
jcannon1 wrote:
I have a row of data where each cell is using a VLOOKUP formula - the formula either returns a number or "-". I need to count all the cells that contain a NUMBER only and I don't want to count the cells that contain "-". I have tried COUNTIF, SUMPRODUCT... Please help Example A B C D 1 3 - 4 I want formula in this cell to return the value of 2 (because there are numbers in cell A1 and C1, while B1 contains "-" which I don't want to count. =COUNTIF(A1:C1,"<-") Alan Beban |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks... It worked perfectly! I was having a brain fart because this is a
pretty easy formula. "akphidelt" wrote: Try Countif($A$1:$D$1,"0") "jcannon1" wrote: I have a row of data where each cell is using a VLOOKUP formula - the formula either returns a number or "-". I need to count all the cells that contain a NUMBER only and I don't want to count the cells that contain "-". I have tried COUNTIF, SUMPRODUCT... Please help Example A B C D 1 3 - 4 I want formula in this cell to return the value of 2 (because there are numbers in cell A1 and C1, while B1 contains "-" which I don't want to count. |
#8
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks Mike! This worked perfectly. Can you tell me what the 2 dashes ("--")
after the sumproduct signify? "Mike H" wrote: Did you try this sumproduct formula =SUMPRODUCT(--(ISNUMBER(A8:E8))) Mike "jcannon1" wrote: I have a row of data where each cell is using a VLOOKUP formula - the formula either returns a number or "-". I need to count all the cells that contain a NUMBER only and I don't want to count the cells that contain "-". I have tried COUNTIF, SUMPRODUCT... Please help Example A B C D 1 3 - 4 I want formula in this cell to return the value of 2 (because there are numbers in cell A1 and C1, while B1 contains "-" which I don't want to count. |
#9
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
See http://xldynamic.com/source/xld.SUMPRODUCT.html
-- __________________________________ HTH Bob "jcannon1" wrote in message ... Thanks Mike! This worked perfectly. Can you tell me what the 2 dashes ("--") after the sumproduct signify? "Mike H" wrote: Did you try this sumproduct formula =SUMPRODUCT(--(ISNUMBER(A8:E8))) Mike "jcannon1" wrote: I have a row of data where each cell is using a VLOOKUP formula - the formula either returns a number or "-". I need to count all the cells that contain a NUMBER only and I don't want to count the cells that contain "-". I have tried COUNTIF, SUMPRODUCT... Please help Example A B C D 1 3 - 4 I want formula in this cell to return the value of 2 (because there are numbers in cell A1 and C1, while B1 contains "-" which I don't want to count. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
EXCEL allow 2 options on status bar e.g. show "Count" + "Sum" | Excel Discussion (Misc queries) | |||
Count cells that contain "Y" in columnA IF contains"X" in columnB | Excel Worksheet Functions | |||
Count(if(A3:A200)="100000" if (B3:B200="Y") and (C3:C200=Z))) | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel |