Populate column based on value of another column

:snoo: Solved

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
stick-to-sports1•

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.

3
viperexOP•

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}

2
Clippy_Office_AsstMOD:assistant: Points•

You have awarded 1 point to stick-to-sports

^I ^am ^a ^bot, ^please ^contact ^the ^mods ^with ^any ^questions.

1
stick-to-sports1•

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.

1
jaysargotra21•

Does negative value in E count as no change in bf

1
viperexOP•

No. For now I want to just pull out the names that have "-" in that column. Later on I'd like to pull the names that fall within a certain range

1
I-speak-squirrel•

You can do it with an If statement

If(e2="-",a2," ") copy that and put it in h2-h8 just make sure each cell is updated if it isn't automatically ex: If(e3="-",a3," ") If(e4="-",a4," ") If(e5="-",a5," ") etc.

1
viperexOP•

That will leave gaps between the list and they won't be sorted

1