Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-28-2017, 12:47 PM
SavGDK SavGDK is offline Named Ranges Help Windows 7 32bit Named Ranges Help Office 2010 32bit
Novice
Named Ranges Help
 
Join Date: Apr 2016
Location: Savannah Ga
Posts: 20
SavGDK is on a distinguished road
Default Named Ranges Help

I have a bunch of named ranges with this formula to change the range length when the data changes. Occasionally at the end of the data I will get a rows of #N/A if the data query does not pull any data for the entire data range.



How can I change this formula =OFFSET('Misc Calculations'!$T$9,0,0,COUNTA('Misc Calculations'!$T:$T)-1) to exclude the #N/A in the rows? When it includes it my graphs get all messed up because it includes this data on the graph.


Thank you,
Reply With Quote
  #2  
Old 04-28-2017, 08:06 PM
Logit Logit is offline Named Ranges Help Windows 10 Named Ranges Help Office 2007
Expert
 
Join Date: Jan 2017
Posts: 533
Logit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the rough
Default

Try :

Code:
=IFERROR(OFFSET('Misc Calculations'!$T$9,0,0,COUNTA('Misc Calculations'!$T:$T)-1),"")
Reply With Quote
  #3  
Old 04-29-2017, 06:05 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Named Ranges Help Windows 7 64bit Named Ranges Help Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,771
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

To avoid the volatile OFFSET you can use the following as named range

=$t$9:index(T:T,match(9.99e307,T:T))
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #4  
Old 05-01-2017, 05:30 AM
SavGDK SavGDK is offline Named Ranges Help Windows 7 32bit Named Ranges Help Office 2010 32bit
Novice
Named Ranges Help
 
Join Date: Apr 2016
Location: Savannah Ga
Posts: 20
SavGDK is on a distinguished road
Default

Logit, thank you for the information, this worked great.

Pecoflyer, I tired the code you suggested but received an error. I will keep trying.

I appreciate the input from both of you!!!

Thank you,

dan
Reply With Quote
  #5  
Old 05-01-2017, 05:54 AM
Logit Logit is offline Named Ranges Help Windows 10 Named Ranges Help Office 2007
Expert
 
Join Date: Jan 2017
Posts: 533
Logit is a jewel in the roughLogit is a jewel in the roughLogit is a jewel in the rough
Default

You are welcome.
Reply With Quote
  #6  
Old 05-01-2017, 09:41 AM
SavGDK SavGDK is offline Named Ranges Help Windows 7 32bit Named Ranges Help Office 2010 32bit
Novice
Named Ranges Help
 
Join Date: Apr 2016
Location: Savannah Ga
Posts: 20
SavGDK is on a distinguished road
Default

Just as a side note, I noticed that once I added the IFERROR statement the AGGREGATE function no longer worked.

dan.
Reply With Quote
Reply

Tags
excluding rows, named ranges



Similar Threads
Thread Thread Starter Forum Replies Last Post
Named Ranges Help Take String of numbers, expand ranges, sort, then compress back into ranges AustinBrister Word VBA 19 08-22-2016 05:18 PM
Named Ranges Help Data Validation List based on Two Named Ranges Rich18144 Excel 4 01-14-2016 04:37 AM
How to use named ranges in excel vba? bosve73 Excel Programming 4 01-25-2012 09:26 AM
Dynamic Named Ranges using text hannu Excel 0 06-22-2010 04:42 PM
Can't import home adresses in outlook 2010 from excel named ranges eekie Outlook 0 05-14-2010 02:04 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:44 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft