Hi
I have a range of numbers that sometimes have zero values in between. Is there a formula or automatic method to calculate R-squared only for the non-zero values? I attach my file. Thanks.
Hi
I have a range of numbers that sometimes have zero values in between. Is there a formula or automatic method to calculate R-squared only for the non-zero values? I attach my file. Thanks.
As with many other Excel functions, the built in RSQ() function (https://support.office.com/en-us/art...d-a8364f2be08f ) ignores text values. The most common approach I see, then, is to add helper columns or an array function that replaces the zero values with a text string. Since I prefer helper columns a lot of the time, I would:
1) Add helper columns with something like =IF(value=0,"text",value)
2) Enter the RSQ() function. =RSQ(helper_y,helper_x)
Originally Posted by shg
Thanks. It worked. Wanted to add to your reputation but was told I had to spread my reputation around.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks