I'm have one sheet with data (in this case share price) and in the same sheet (called total) I'm calculating the % gain or loss of that share. So far so good. The share price is automatically updated each day (one row per date). So column A and B is automatically updated and column c is a formula that looks like this =IFERROR((Total!D5-Dashboard!$I$28)/Dashboard!$I$28;""). The Dashborad sheet is there the initial buying price for the share is. Again no problem. The C column is copies all the way down to row 2000, hence the if error formula to make columns where there is no share price yet marked with a blank ("").

column a column b column c

2021-01-01 172,3 0,42%

2021-01-02 172,2 0,39%

I have also made a named range for column C =OFFSET(Total!$c$5;;;COUNTA(Total!$c$5:$c$2000);1) to use with in the sparkline. But the problem here is that the sparkline interpret the "" as a value so for all the "" rows I get a 0 value in the sparkline??

Is there a way to do this differently instead of using iferrror?