I have a table of Stocks with Return% and Risk%, how do I find the lowest risk percentage with the highest return percentage while ensuring that each subsequent record has a higher return% and risk% than the previous record?
Steps:
1) To first find the Lowest Risk% with the Highest Return%
2) then find the next Lowest Risk% that is greater or equal to the previous Risk% record and
3) the Return% is also greater or equal to the previous Return%
Below is the data in Excel I need the solution for:
| Company |
Return% |
Risk% |
| ABBV |
23.76% |
5.05% |
| CVX |
16.14% |
4.45% |
| DG |
20.91% |
4.26% |
| FDS |
20.36% |
5.77% |
| JNJ |
17.10% |
3.93% |
| LLY |
16.63% |
4.99% |
| LMT |
15.05% |
5.27% |
| LOW |
18.90% |
6.34% |
| LVMUY |
19.00% |
6.73% |
| MA |
30.85% |
5.15% |
| MSFT |
26.27% |
5.69% |
| NDAQ |
15.88% |
6.32% |
| PEP |
17.43% |
4.09% |
| PFE |
16.24% |
4.81% |
| RTX |
14.12% |
5.31% |
| SPY |
11.22% |
3.50% |
| T |
17.94% |
4.64% |
| V |
19.04% |
4.38% |
| VZ |
16.00% |
4.41% |
| XOM |
15.43% |
4.01% |
Column A: Company
Column B: Return%
Column C: Risk%
The Result output should look like below:
| Company |
Return% |
Risk% |
| SPY |
11.22% |
3.50% |
| JNJ |
17.10% |
3.93% |
| PEP |
17.43% |
4.09% |
| DG |
20.91% |
4.26% |
| ABBV |
23.76% |
5.05% |
| MA |
30.85% |
5.15% |