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
46 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
30 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies