Dynamic Name Range

MichaelJ300

Board Regular
Joined
Oct 30, 2013
Messages
150
Office Version
  1. 2016
Platform
  1. Windows
Hello,

I'm trying to understand why my calculation is not working on the text.

Any help is appreciated!

=offset('NIQ CALCS (2)'!$D13:$D$23,,,COUNTA('NIQ CALC'!$D$13:$D$23))

Offset function.png
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
What I'm noticing with this formula... I'm using CountA because of the variables. The cells have formulas in them to bring back a sport name. For some reason it still recognizes the empty cells because of the CountA formula. If I were to use numbers I wouldn't have this problem since I would only use the Count formula.

I Need to figure out a way to have the range only see cells with values in them. Thoughts?
 
Upvote 0
Try
Excel Formula:
=offset('NIQ CALCS (2)'!$D13:$D$23,,,COUNTifs('NIQ CALC'!$D$13:$D$23,"?*"))
 
Upvote 0
In your 1st image you showed "blank" cells, but in the 2nd image you showed cells with 0, so which is it?
 
Upvote 0
What is the formula in those cells as it looks like a spill range?
 
Upvote 0
What is the formula in those cells as it looks like a spill range?
First, let me say thank you for helping on this!

No, it just brings back the range with blanks with formulas. Now if I hard code them without a formula it works. Otherwise it recognizes blanks as the range.

What I'm trying to do is make this dynamic for chart purposes. On the first image you can see that the offset counta function is brining in all rows because I have formulas (which I don't understand). Where the 2nd is bringing in the correct amount of rows. Where I don't have formulas. I hope this makes more sense.
1730495184844.png
 
Upvote 0
Thanks for that, with that formula in the cells the formula I showed in post#3 should return exactly what you want.
 
Upvote 0
Thanks for that, with that formula in the cells the formula I showed in post#3 should return exactly what you want.
I'm not sure what I was missing but this formula but it is working. So I have two more questions. A) What does the ("?*") do? B) Although the formula is working I'm getting an error. I'm placing it in Name Manger and trying to use the name for my range. Any idea why? Below is an image.

1730645072889.png
 
Upvote 0

Forum statistics

Threads
1,223,608
Messages
6,173,325
Members
452,510
Latest member
RCan29

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