fayez_MrExcel
Active Member
- Joined
- Oct 29, 2005
- Messages
- 444
- Office Version
- 365
- Platform
- Windows
Im new in Power query, i'd like to convert my excel formula in power query (adding custom column). Basically, if the position has *contractor" in it, then value is "Contractor". if the position code appears in the supervisor column, if so then return value as "Supervisory" otherwise "Individual Contributor"
Book1 | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
1 | Position | Position Title | Supervisor | Job Level | ||
2 | 50083048 | Section Head, Network & Unified Coms | 50087289 | Supervisor | ||
3 | 50089906 | Manager, HDPE | 50086143 | Individual Contributor | ||
4 | 50084476 | Chief Information Officer | 50090211 | Supervisor | ||
5 | 50087059 | Supt, Operation - PP | 50089908 | Individual Contributor | ||
6 | 50087256 | Manager, HRBP Corporate Functions | 50084475 | Individual Contributor | ||
7 | 50087289 | Manager, Infrastructure & Operations | 50084476 | Supervisor | ||
8 | 50090918 | Contractor Online | 50086575 | Contractor | ||
9 | 50086622 | Geo Contractor | 50086634 | Contractor | ||
10 | 50086688 | 50083048 | Individual Contributor | |||
ZORG |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D2:D10 | D2 | =IF(COUNTIFS([@[Position Title]],"*Contractor*"),"Contractor",IF(ISNUMBER(MATCH([@Position]&"",[Supervisor]&"",0)),"Supervisor","Individual Contributor")) |