Fishboy
Well-known Member
- Joined
- Feb 13, 2015
- Messages
- 4,267
Hi all,
I have an Excel 2010 workbook that has a number of columns as dynamic named ranges designed in such a way that the ranges expand as new data rows are added. This has been achieved using the following example RefersTo: codes
On another sheet within the workbook I have a number of tables which carry out COUNTIF or COUNTIFS functions based on the data in the dynamic named ranges. For example
My problem is being caused by incomplete data on the main source sheet containing the named ranges. Basically, if there are any columns containing blank cells, the COUNTIF or COUNTIFS formulas just stop working. I assume this is because the way I have created the named ranges means the range stops at the first blank cell maybe? My temporary workaround has been to fill the empty cells with a period "." to fool Excel into seeing this as a value to make the formulas work, but this is obviously not an ideal solution.
Does anyone know if / what I am doing wrong, or know of an alternative way of making the dynamic ranges still function if there are blank cells included?
I have an Excel 2010 workbook that has a number of columns as dynamic named ranges designed in such a way that the ranges expand as new data rows are added. This has been achieved using the following example RefersTo: codes
Code:
Name: Screening_Location
RefersTo: =Screening!$D$3:INDEX(Screening!$D:$D, MATCH("zzzz", Screening!$D:$D),1)
Code:
Name: Screening_Scheme
RefersTo: =Screening!$F$3:INDEX(Screening!$F:$F, MATCH("zzzz", Screening!$F:$F),1)
Code:
Name: Screening_Function
RefersTo: =Screening!$G$3:INDEX(Screening!$G:$G, MATCH("zzzz", Screening!$G:$G),1)
On another sheet within the workbook I have a number of tables which carry out COUNTIF or COUNTIFS functions based on the data in the dynamic named ranges. For example
Code:
=IFERROR(COUNTIFS([B]Screening_Location[/B],"Corby",[B]Screening_Scheme[/B],"Graduate",[B]Screening_Function[/B],"Procurement"),"0")
My problem is being caused by incomplete data on the main source sheet containing the named ranges. Basically, if there are any columns containing blank cells, the COUNTIF or COUNTIFS formulas just stop working. I assume this is because the way I have created the named ranges means the range stops at the first blank cell maybe? My temporary workaround has been to fill the empty cells with a period "." to fool Excel into seeing this as a value to make the formulas work, but this is obviously not an ideal solution.
Does anyone know if / what I am doing wrong, or know of an alternative way of making the dynamic ranges still function if there are blank cells included?