[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Add a dynamic range

Posted on 2013-11-13
8
Medium Priority
?
237 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 35

Expert Comment

by:Norie
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

by:NBVC
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

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

Thanks
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

Author Comment

by:Seamus2626
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

by:Seamus2626
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

by:NBVC
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

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

Author Closing Comment

by:Seamus2626
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Windows Explorer lets you open cabinet (cab) files like any other folder. In VBA you can easily handle normal files and folders, but opening and indeed creating cabinet files takes a lot more - and that's you'll find here.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

872 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