Dynamic range to show only positive values

SimonHughes

Active Member
Joined
Sep 16, 2009
Messages
398
Office Version
  1. 2016
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

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).

steve the fish

Well-known Member
Joined
Oct 20, 2009
Messages
8,647
Office Version
  1. 365
Platform
  1. Windows
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.
 

SimonHughes

Active Member
Joined
Sep 16, 2009
Messages
398
Office Version
  1. 2016
Platform
  1. Windows
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)
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,152,579
Messages
5,770,960
Members
425,653
Latest member
UNSING

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
Top