Getting the average in a list with empty values

Hi all,

I am trying to get the average of a few numbers. But it doesn’t work if there are any empty values.

For instance, here I have to try to get an average of {57}. would be around 13000 and having that as 1 number in {57}. I need to keep the list structure, so leaving the empty as empty.

Best,
Tom

average.gh (9.3 KB)

fixed. Just needed the ‘num’ before going into average sum

1 Like