Named Ranges not selecting correct data

SavGDK

New Member
Joined
Mar 31, 2016
Messages
7
Hello,

I am currently using this formula in my named ranges =IFERROR(OFFSET('Misc Calculations'!$T$9,0,0,COUNTA('Misc Calculations'!$T:$T)-1),"")

I thought this would help with my graphs so it would only pickup up the numbers in the columns and exclude everything else, primarily I get a #N/A in the column if the size changes. The server I am pulling the data from sets this up in an array, not sure if that matters or not.

Does anybody have a suggestion of how to update this so it only pulls in the numeric values?

Thank you,

dan
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hello,

Thank you for the reply, unfortunately when I remove the IFERROR it still picks up everything in the column and does not stop at numerical values.

Thank you,

dan
 
Upvote 0
Are the numerical values in contiguous cells?

Can you give a reduced example, e.g. 10 rows's worth, of the sort of data you have in that column, plus your expected result?

Regards
 
Upvote 0
Hopefully this will work,

The columns with the data can change length based on a user selection. When the length changes the server automatically generates the #N/A. I am trying to make sure the named ranges ignore anything that is not numeric so that when I generate graphs from the named ranges the graphs don't have large blank spaces from all the #N/A at the end of the columns. If I try to include a copy of the spreadsheet none of the data will show up because it is from a database.


[TABLE="width: 101"]
<tbody>[TR]
[TD="align: right"]1486.86[/TD]
[/TR]
[TR]
[TD="align: right"]1492.15[/TD]
[/TR]
[TR]
[TD="align: right"]1473.74[/TD]
[/TR]
[TR]
[TD="align: right"]1458.79[/TD]
[/TR]
[TR]
[TD="align: right"]1466.16[/TD]
[/TR]
[TR]
[TD="align: right"]1467.68[/TD]
[/TR]
[TR]
[TD="align: right"]1461.41[/TD]
[/TR]
[TR]
[TD="align: right"]1526.1[/TD]
[/TR]
[TR]
[TD="align: right"]1444.54[/TD]
[/TR]
[TR]
[TD="align: right"]1424.47[/TD]
[/TR]
[TR]
[TD="align: right"]1423.15[/TD]
[/TR]
[TR]
[TD="align: right"]1422.97[/TD]
[/TR]
[TR]
[TD="align: right"]1435.67[/TD]
[/TR]
[TR]
[TD="align: right"]1437.09[/TD]
[/TR]
[TR]
[TD="align: right"]1432.96[/TD]
[/TR]
[TR]
[TD="align: right"]1440.9[/TD]
[/TR]
[TR]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD="align: center"]#N/A

thank you dan[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
 
Upvote 0
Try defining it rather as:

='Misc Calculations'!$T$9:INDEX('Misc Calculations'!$T:$T,MATCH(9.9E+307,'Misc Calculations'!$T:$T))

Regards
 
Upvote 0

Forum statistics

Threads
1,223,908
Messages
6,175,305
Members
452,633
Latest member
DougMo

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