Dynamic Range - ignoring formulas that result in empty output

clumzyfish

New Member
Joined
Oct 6, 2009
Messages
29
I'm trying to create a dynamic range using the a similar formula to the following - =OFFSET(Data!$A$1,0,0,COUNTA(Data!$A:$A),2)

In the A column, is a list of formulas that either result in the showing a number or the text BLANK. Is there a way to make the dynamic range only to display the cells up to the text BLANK?

I tried using COUNTIF(DATA!$A:$A,"<>*BLANK*"), but it's still selecting the whole column for the range.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
This formula will create a named range that includes all data from A1 down to the FIRST BLANK cell, any data below that will not be included:

=Sheet1!$A$2: INDEX(Data!$A:$A,MATCH(1,1/(Data!$A$1:$A$1000=""),0)-1)
 
Upvote 0
thanks! this works beautifully for column A, but how would i include column B as well? I tried messing around with the formula and couldn't get it to work.
 
Upvote 0
nevermind, i figured it out:

Sheet1!$A$2:$B$2:INDEX(Data!$A:$A,MATCH(1,1/(Data!$A$1:$A$1000=""),0)-1)

thanks again!
 
Upvote 0

Forum statistics

Threads
1,214,608
Messages
6,120,500
Members
448,968
Latest member
screechyboy79

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