Home

Help with IF command

Daniel0
Occasional Contributor

In the rows I have many many observations

In the columns I have variables X & Y.

X takes values 1-5000, and Y is some price.

I want to create a 3rd column which takes values:

1 if the price is in the top 5% of prices for whatever X value that row has.

0 otherwise

E.g. if the row is X=1, Y=9999, I want the 3rd cell to be =1 if out of all rows with X=1, 9999 is in the top 15% of Y's in those rows.

 

Hope that makes sense.

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
16 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
11 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies
Early preview of Microsoft Edge group policies
Sean Lyndersay in Discussions on
65 Replies