dynamic ranges with blanks

dmheller

Board Regular
Joined
May 26, 2017
Messages
133
Office Version
  1. 365
All,
Trying to make so graphs with dynamic ranges using name manager. should be easy but I am missing something. I could fill all blanks In with 0 and it works but not without it.
Here is what I have
column B is a date June 2018- now and it always grows with each new day
Column G-U is a number from a sample but happens every 2 weeks so there are blanks.
Column C-F are numbers as well one for every day
I want dynamic ranges for all columns
Here is what I did
for the date
='Outfall 1 input'!$B$5:INDEX('Outfall 1 input'!$B:$B,COUNT('Outfall 1 input'!$B:$B)+5)
for c-f one for each
='Outfall 1 input'!$E$5:INDEX('Outfall 1 input'!$E:$E,COUNT('Outfall 1 input'!$E:$E)+5)
for g-u one for each
='Outfall 1 input'!$G$5:INDEX('Outfall 1 input'!$G:$G,COUNT('Outfall 1 input'!$B:$B)+5)
g-u doesn't work due to blanks. Any help would b great.
thanks
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Jeffrey Mahoney

Well-known Member
Joined
May 31, 2015
Messages
2,061
Office Version
  1. 365
Platform
  1. Windows
Please try using a formula like this:
=OFFSET($B$4,1,0,match(1e+300,$B:$B)-row($B$4),1)

This will find the last number in the set and include any blanks within the set.

Jeff
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,418
Messages
5,837,129
Members
430,477
Latest member
roseinsydney

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
Top