Forum Discussion
SharePoint List - How to auto populate column based on another choice?
Hello,
How would I go about auto-populating a column based on another choice?
Example:
When users select Dept 1, it will auto-populate the Applications and Hardware columns with App1 and Hw1.
Departments:
- Dept 1
- Dept 2
- Dept 3
Applications:
- App1
- App2
- App3
Hardware:
- Hw1
- Hw2
- Hw3
Thank you.
NinjaLee Do you want the Applications and Hardware columns editable and have cascading type of effect on the list form based on selection of departments? If yes, you can customize list forms using Power Apps. Check: Create dependent drop-down lists in a canvas app
If you need calculated (non-editable) columns for Applications and Hardware, you can use calculated columns with formulas like below.
Applications:
=IF([Departments]="Dept 1","App1",IF([Departments]="Dept 2","App2",IF([Departments]="Dept 3","App3","")))
Hardwares:
=IF([Departments]="Dept 1","Hw1",IF([Departments]="Dept 2","Hw2",IF([Departments]="Dept 3","Hw3","")))
Note:
- Sometimes comma( , ) does not work in formula (it is based on language or regional settings on your site). So in that case use semicolon( ; ) instead of comma( , ).
- Use correct display name of your SharePoint columns in above formula.
- Wrap column names inside [] if your column name has space in it. For example: [My Column Name].
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.