Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Dear All,
I have a range of cells, say A1 to A50. I want to write a formula in cell A51 which will display the number of cells in the range which contain the data (which are not blank). e.g. if only A1 to A5 cells contain some data and other cells are blank, then it should show 5 as the result. The data can be either text or numbers. Is it possible? Thank you in advance. Regards, Pawan |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi!
Try one of these: =COUNTA(A1:A50) If there might be formula blanks in any cells the Counta function WILL count those. This formula WILL NOT count those: =SUMPRODUCT(--(LEN(A1:A50)0)) Biff "Pawan" wrote in message ... Dear All, I have a range of cells, say A1 to A50. I want to write a formula in cell A51 which will display the number of cells in the range which contain the data (which are not blank). e.g. if only A1 to A5 cells contain some data and other cells are blank, then it should show 5 as the result. The data can be either text or numbers. Is it possible? Thank you in advance. Regards, Pawan |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Pawan,
Counting non-blank cells can be done by using "COUNTA" function. Please note "A" after COUNT. Example: =COUNTA(A1:A50) Another example for you: ="There are "& COUNTA(A1:A50) & " non-empty values and "&COUNTBLANK(A1:A50)&" blank cells from A1 to A50" With kind regards. NAVEEN. "Pawan" wrote: Dear All, I have a range of cells, say A1 to A50. I want to write a formula in cell A51 which will display the number of cells in the range which contain the data (which are not blank). e.g. if only A1 to A5 cells contain some data and other cells are blank, then it should show 5 as the result. The data can be either text or numbers. Is it possible? Thank you in advance. Regards, Pawan |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula to calculate number of days & ignore blank cells | Excel Discussion (Misc queries) | |||
checking that cells have a value before the workbook will close | Excel Worksheet Functions | |||
Formula Problem - interrupted by #VALUE! in other cells!? | Excel Worksheet Functions | |||
formula to copy last positive number in range of cells | Excel Worksheet Functions | |||
Convert data of cells to any type: Number, Date&Time, Text | Excel Discussion (Misc queries) |