Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi all,
After receiving unfavourable answers to my enquiry regarding truly blank cells, I'll get a bit long-winded, and explain what I'm trying to do. I have a list of text which is created by a formula which has been filled-down about 100 rows. Currently, only the first 10 cells have text. All the other cells appear blank, but are really ="" (inserted by an IF statement in the formula). As I add data to another part of the sheet, more cells in this list will become visible text. I wanted to make a dynamic named range from this list for use in a DV dropdown. =OFFSET(Sheet1!$A$1,0,0,COUNTA(Sheet1!$A:$A),1) But the COUNTA counts all the ="" cells as well as the text, and they appear in the dropdown as lots of blank rows. Despite the fact that they all appear at the end of the dropdown, it's still annoying. I was wondering if I could use COUNTIF instead of COUNTA, to only count text string lengths of greater than zero, and would that work? I have tried, but failed thus far. Any help would be appreciated. Dave. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=COUNTIF(C1:C10,""&0)
This will ignore zero's and "", Regards, Alan. "Dave" wrote in message ... Hi all, After receiving unfavourable answers to my enquiry regarding truly blank cells, I'll get a bit long-winded, and explain what I'm trying to do. I have a list of text which is created by a formula which has been filled-down about 100 rows. Currently, only the first 10 cells have text. All the other cells appear blank, but are really ="" (inserted by an IF statement in the formula). As I add data to another part of the sheet, more cells in this list will become visible text. I wanted to make a dynamic named range from this list for use in a DV dropdown. =OFFSET(Sheet1!$A$1,0,0,COUNTA(Sheet1!$A:$A),1) But the COUNTA counts all the ="" cells as well as the text, and they appear in the dropdown as lots of blank rows. Despite the fact that they all appear at the end of the dropdown, it's still annoying. I was wondering if I could use COUNTIF instead of COUNTA, to only count text string lengths of greater than zero, and would that work? I have tried, but failed thus far. Any help would be appreciated. Dave. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I have a list of text
only the first 10 cells have text. All the other cells appear blank, but are really ="" Assuming all blank cells will be at the bottom of the range: =OFFSET(A1,,,COUNTIF(A1:A100,"?*")) -- Biff Microsoft Excel MVP "Dave" wrote in message ... Hi all, After receiving unfavourable answers to my enquiry regarding truly blank cells, I'll get a bit long-winded, and explain what I'm trying to do. I have a list of text which is created by a formula which has been filled-down about 100 rows. Currently, only the first 10 cells have text. All the other cells appear blank, but are really ="" (inserted by an IF statement in the formula). As I add data to another part of the sheet, more cells in this list will become visible text. I wanted to make a dynamic named range from this list for use in a DV dropdown. =OFFSET(Sheet1!$A$1,0,0,COUNTA(Sheet1!$A:$A),1) But the COUNTA counts all the ="" cells as well as the text, and they appear in the dropdown as lots of blank rows. Despite the fact that they all appear at the end of the dropdown, it's still annoying. I was wondering if I could use COUNTIF instead of COUNTA, to only count text string lengths of greater than zero, and would that work? I have tried, but failed thus far. Any help would be appreciated. Dave. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
Thanks heaps. The "?*" condition worked perfectly. Pooh to needing truly blank cells! By the way, the ""&0 condition gave a count of 0 (zero). Don't know why. Thanks again. Dave. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You're welcome!
the ""&0 condition gave a count of 0 (zero). Don't know why. It was using the condition of 0 (greater than 0). So, it would only count numbers greater than 0. -- Biff Microsoft Excel MVP "Dave" wrote in message ... Hi, Thanks heaps. The "?*" condition worked perfectly. Pooh to needing truly blank cells! By the way, the ""&0 condition gave a count of 0 (zero). Don't know why. Thanks again. Dave. |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Biff,
Thanks for that. XL sure is picky about what type of data is in a cell. I guess it makes it more precise though. Dave. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Sumproduct copying blanks or how to insert zero into blanks | Excel Worksheet Functions | |||
copy range of cells with blanks then paste without blanks | Excel Worksheet Functions | |||
O/T I know this may get me shot.......... | Excel Discussion (Misc queries) | |||
A shot in the dark | New Users to Excel | |||
Paste Special Skip Blanks not skipping blanks, but overwriting... | Excel Discussion (Misc queries) |