Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

How to create a google sheets formula to return a value based on % values in other cells & weighted average formula? (FIXED)

$
0
0

I've been trying to create a scoring system for expected stock market returns -Sheet

I'm having problems creating a formula to firstly give stocks a score in multiple conditions for example SS

I want the formula to return a score of 0 if the return is below -20% in each of the 6 scoring system in the right, I want it to return 1 if the value is between -20 and -15% and so on until it returns 10 if the expected return is over 30%.

It's probably a use of the IFS formula, but I just can't get it to work with %.

-Later Edit: Managed to do fix them

  1. =arrayformula(IFS(H8:H="","",H8:H<=-15%,0,H8:H<=-10%,1,H8:H<=-5%,2,H8:H<=0%,3,H8:H<=5%,4,H8:H<=10%,5,H8:H<=15%,6,H8:H<=20%,7,H8:H<=25%,8,H8:H<=30%,9,H8:H>30%,10))

  2. I want to create an arrayformula with a weighted average formula based on the weight of each category:dcf low should have a 7.5% weight, dcf mid should have a 15% weight, dividends should have a 5% weight and so on.I'm trying the average.weighted function, but I can't really nail it.

This worked for me, but I would have liked to put it in an arrayformula but it simply gave errors when I tried.

=AVERAGE.WEIGHTED(P9,$P$6,Q9,$Q$6,R9,$R$6,S9,$S$6,W9,$W$6,X9,$X$6,Y9,$Y$6,AA9,$AA$6,AB9,$AB$6,AC9,$AC$6)

The issue is now when I try to use toe sort function to sort by the overall score, it gives me an error saying that that will overwrite data in W8 but I simply don't understand why.


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>