Populate column based on value of another column
Here's the dataset I'm working on. How do I populate column H with the reverse sorted names from column A based on the corresponding value from column E?
In this case, column H should have Laurens J followed by Alex H
Posted Aug 7, 2020, 9:58 AM UTC
38
Use sort and filter. Put this in H2: =sort(filter(A2:A, not(isnumber(E2:E))),1,0)
and you'll never have to update it. It will return any name that does not have a number entered in column E.
Solution Verified
u/stick-to-sports Thoughts on how to filter out a range or multiple discrete values? Eg: 2-4 or {2.2,-3.5}
You have awarded 1 point to stick-to-sports
^I ^am ^a ^bot, ^please ^contact ^the ^mods ^with ^any ^questions.
Sorry, I've been out for a few days.
To filter a range in the above example you would use =sort(filter(A2:A, E2:E>=2,E2:E<=4),1,0). This filters for everything greater than or equal to 2, and then filters that subset for everything less than or equal to 4.
To filter two discrete numbers, you need to add the criteria together -- =sort(filter(A2:A,(E2:E=2.2)+(E2:E=-3.5)),1,0) -- you can do this with as many numbers as you wish.