Dynamic Range to Exclude Blank Cells with Formulas

Dokat

Active Member
Joined
Jan 19, 2015
Messages
304
Office Version
  1. 365
I have below dynamic range formula to automatically change chart range. However i need formula to ignore blank cells with formula and exclude it from the range. Did anyone came acriss similar issue?

=(Inno!$AU$6:INDEX(Inno!$AU6:$AU$65,COUNTIF(Inno!$AU6:$AU$65,"<>"&""))
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Does your column of data have blank cells throughout the column? Are you asking for the chart data not to use the blanks within the range?
If so, I don't think your going to get what you want. A chart series has to be contiguous (continuous, uninterrupted set of data) range. If you need your non-blank cells aggregated together, we would have to go a different way.

Dynamic named ranges count the number of non-blank cells and return a row. You can have it return the last non-blank row. In your case, Countif is only counting the non-blank cells. It won't include all the data if blanks are included.

=offset($AU$6,0,0,match(1e+300,$AU$6:$AU$65),1)
This would return the last row with a number in it. It would still return the full range including any blanks.
 
Upvote 0
Does your column of data have blank cells throughout the column? Are you asking for the chart data not to use the blanks within the range?
If so, I don't think your going to get what you want. A chart series has to be contiguous (continuous, uninterrupted set of data) range. If you need your non-blank cells aggregated together, we would have to go a different way.

Dynamic named ranges count the number of non-blank cells and return a row. You can have it return the last non-blank row. In your case, Countif is only counting the non-blank cells. It won't include all the data if blanks are included.

=offset($AU$6,0,0,match(1e+300,$AU$6:$AU$65),1)
This would return the last row with a number in it. It would still return the full range including any blanks.


Thank you
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,173
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top