Solved

Add a dynamic range

Posted on 2013-11-13
8
207 Views
Last Modified: 2013-11-13
=PERCENTILE.EXC(IF(Test=1,'Input - D1'!$W$8:$AH$107),'S7 - Product Risk Scenario'!S7)

Hi,

I am using this formula to calculate some percentiles.

I want to make the range dynamic, can someone show how?

Many thanks
Seamus
0
Comment
Question by:Seamus2626
  • 4
  • 3
8 Comments
 
LVL 33

Expert Comment

by:Norie
Comment Utility
Seamus

How will the range be dynamic?

Will the no of columns change or the no of rows change, or both?
0
 
LVL 23

Expert Comment

by:NBVC
Comment Utility
Go to Formulas tab, Define Name,

Enter a name you want then in source field enter formula:

=OFFSET('Input - D1'!$W$8,0,0,COUNTA('Input - D1'!$W:$W),12)

This assumes that column W has now blanks within the desired range.

Now replace the range with that named range..

e.g.

=PERCENTILE.EXC(IF(Test=1,MyRange),'S7 - Product Risk Scenario'!S7)

where MyRange is then Dynamic Named range name
0
 

Author Comment

by:Seamus2626
Comment Utility
Imnorie, just the number of rows will change, im trying to work in your solution nb_vc

Thanks
0
 

Author Comment

by:Seamus2626
Comment Utility
Hi nb_vc,

I am getting an #NA error for the above formula,

=PERCENTILE.EXC(IF(Test=1,CashFormula),'S7 - Product Risk Scenario'!S7)

in the name manager i have

=OFFSET('Input - D1'!$W$8,0,0,COUNTA('Input - D1'!$W:$W),12)

Thanks
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Author Comment

by:Seamus2626
Comment Utility
I've requested that this question be closed as follows:

Accepted answer: 0 points for Seamus2626's comment #a39645453

for the following reason:

Just needed to drop the a in counta and set up another dynamic range for Test and im all good!

Many thanks
0
 
LVL 23

Expert Comment

by:NBVC
Comment Utility
it works for me.  Do you have any NA# errors in the database in CashFormula?

If still having error, please post workbook sample.
0
 
LVL 23

Accepted Solution

by:
NBVC earned 500 total points
Comment Utility
I see you closing the request.  My solution wasn't correct?
0
 

Author Closing Comment

by:Seamus2626
Comment Utility
That was a mistake, i was meant to allocate points, it works fine, i got rid of counta and set up a dynamic range for my first named range test and it was all good!

Thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now