Dynamic range to show only positive values

SimonHughes

Active Member
Joined
Sep 16, 2009
Messages
444
Office Version
  1. 365
Platform
  1. Windows
Hello, I have a range of values from high to low in column A1:A50. These values will change dependent on data entry but some values will always be positive and some will always be negative but the number of positive/negative values will change. I want to show the positive values only in a line graph. Can anyone assist, much appreciated.

I am using Excel 2016
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Create a named range such as:

=OFFSET(Sheet1!$A$1,0,0,COUNTIFS(Sheet1!$A:$A,">0"),1)

Create blank line chart then select data. Press the 'add' button. Then in 'series values' put your named range name including the sheet eg =Sheet1!MyChartRange

That will work if you have sorted list of numbers as you state.
 
Upvote 0
Create a named range such as:

=OFFSET(Sheet1!$A$1,0,0,COUNTIFS(Sheet1!$A:$A,">0"),1)

Create blank line chart then select data. Press the 'add' button. Then in 'series values' put your named range name including the sheet eg =Sheet1!MyChartRange

That will work if you have sorted list of numbers as you state.
Hi Steve, perfect! :) Many thanks and much appreciated (y)
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,251
Members
448,556
Latest member
peterhess2002

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