Kraken
Kraken

Reputation: 295

Excluding specific values from a range of cells

I would like to remove #N/A values from being counted in my sparklines. #N/As are produces with =NA().

My formula is =SPARKLINE(D5:AN5, {"ymin", 0}).

How do I exclude specific values from the "D5:AN5" range? I can't seem to find a way to do it.

Upvotes: 1

Views: 4148

Answers (1)

Max Makhrov
Max Makhrov

Reputation: 18707

Try filtering data:

=SPARKLINE(FILTER(D5:J5,ISNA(D5:AN5)=false), {"ymin", 0})

Upvotes: 1

Related Questions