Dynamic range to show only positive values

SimonHughes

Active Member
Joined
Sep 16, 2009
Messages
452
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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
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,215,155
Messages
6,123,331
Members
449,098
Latest member
thnirmitha

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