[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
Solved

Posted on 2013-11-13
Medium Priority
233 Views
=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
Question by:Seamus2626
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 4
• 3

LVL 35

Expert Comment

ID: 39645355
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

ID: 39645370
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

ID: 39645422
Imnorie, just the number of rows will change, im trying to work in your solution nb_vc

Thanks
0

Author Comment

ID: 39645453
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

Author Comment

ID: 39645534
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

ID: 39645520
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

NBVC earned 2000 total points
ID: 39645523
I see you closing the request.  My solution wasn't correct?
0

Author Closing Comment

ID: 39645535
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

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
###### Suggested Courses
Course of the Month12 days, 12 hours left to enroll