Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dear All
My requirement is to count the number of cells which are blank in a excel column, for taht i am writing the following code;;;;;;;;;;;;;;;;; private void ValidateReviewComment() { //Range xlsRng = _sheet.get_Range("G1",Type.Missing).EntireColumn; //MessageBox.Show(xlsRng.EntireColumn.Count.ToString ()); Range xlsRng = _sheet.UsedRange; MessageBox.Show("xlsRng.Rows.Count "+xlsRng.Rows.Count.ToString()); for (int i = 2; i <= xlsRng.Rows.Count; i++) { if(xlsRng.Cells.Value2==null) { MessageBox.Show(i.ToString()); } } } kindly assist me thanks shantanu |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to count#cells w/= value in other column and not count blank c | Excel Worksheet Functions | |||
How do I count the items in one column if another column is blank | Excel Worksheet Functions | |||
Only count columns if the column next to it is not blank | Excel Discussion (Misc queries) | |||
Count Non Blank in column | Excel Discussion (Misc queries) | |||
COUNT NON-BLANK CELLS WITH REFERENCE TO ANOTHER COLUMN | Excel Worksheet Functions |