Pulling a Rating from a Matrix
I have this data in a Smartsheet file (exported to Excel below) and I need to pull a Risk Rating from any of the nine combinations of two variables.
Thanks in advance for the help!
Best Answer
-
@Berto D I would use an INDEX(COLLECT()) formula for this. This can be done either on one sheet as my example below shows or as using cross sheet references for the ranges.
Same sheet: =IFERROR(INDEX(COLLECT([Risk Rating]:[Risk Rating], Probability:Probability, P@row, Impact:Impact, I@row), 1), "")
Cross Sheet (cross sheet references need to be set up first): =IFERROR(INDEX(COLLECT({Risk Rating}, {Probability}, P@row, {Impact}, I@row), 1), "")
The formula works by looking at the values in the P (Probability) and I (Impact) columns and using these to query the matrix to return the Result (Risk Rating). The since there should only be one match the INDEX() function returns just the first value in the array. In the event there are no matches the IFERROR() function is used to return a blank. I've put a few examples of the returned results in the yellow section.
Answers
-
@Berto D I would use an INDEX(COLLECT()) formula for this. This can be done either on one sheet as my example below shows or as using cross sheet references for the ranges.
Same sheet: =IFERROR(INDEX(COLLECT([Risk Rating]:[Risk Rating], Probability:Probability, P@row, Impact:Impact, I@row), 1), "")
Cross Sheet (cross sheet references need to be set up first): =IFERROR(INDEX(COLLECT({Risk Rating}, {Probability}, P@row, {Impact}, I@row), 1), "")
The formula works by looking at the values in the P (Probability) and I (Impact) columns and using these to query the matrix to return the Result (Risk Rating). The since there should only be one match the INDEX() function returns just the first value in the array. In the event there are no matches the IFERROR() function is used to return a blank. I've put a few examples of the returned results in the yellow section.
-
hi @Berto D
You can create the following nested if statement with an AND formula. There are other ways using a second look up sheet and index match if you need other options,
=if(and(probability@row="low", Impact@row="low"), "Low", if(and(probability@row="medium", impact@row="low", "Low" do this for all of your scenarios.
have a good night.
best,
Brad
www.MVPOPS.com
-
Ho-Ya! It works. I ran out of brain cells to figure this out myself. Thanks for helping me out.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 67 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!