Hi All,
I have a dynamic chart range for 2 series. The chart range 1 has data that goes back 3 years. Chart range 2 only has data for the last year. I allow users to pick how far back they want to see the chart 1 month to 36 months. So if they choose more than a years worth of data i have NA() in the 2nd series so that it will not show on the chart instead of a zero line for 2 years back.
Along with the original chart series lines, I want to highlight the min and max of each series by using a couple of dummy series mostly with NA() and then the Min of the dynamic range chosen.
However, when I put in the Min function for the series that doesn't have 3 years worth of data, and the range selected includes an NA(), the Min Function returns NA() as the Min and therefore no min shows up on my chart.
To replicate this, put an =NA() in A1, 1 in A2 and 3 in A3 then in A4 put =min(a1:a4) and you will get an #N/A.
Do you know of any other way to get around this? The array function i came up with worked in one cell, but not in a range of cells for the dynamic user choice.
I have a dynamic chart range for 2 series. The chart range 1 has data that goes back 3 years. Chart range 2 only has data for the last year. I allow users to pick how far back they want to see the chart 1 month to 36 months. So if they choose more than a years worth of data i have NA() in the 2nd series so that it will not show on the chart instead of a zero line for 2 years back.
Along with the original chart series lines, I want to highlight the min and max of each series by using a couple of dummy series mostly with NA() and then the Min of the dynamic range chosen.
However, when I put in the Min function for the series that doesn't have 3 years worth of data, and the range selected includes an NA(), the Min Function returns NA() as the Min and therefore no min shows up on my chart.
To replicate this, put an =NA() in A1, 1 in A2 and 3 in A3 then in A4 put =min(a1:a4) and you will get an #N/A.
Do you know of any other way to get around this? The array function i came up with worked in one cell, but not in a range of cells for the dynamic user choice.