1 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

Output spilling over and I can't seem to fix it

I'm having a problem with a spreadsheet:

In A2:A200 I've got a list of employee names
In C1:H1 I've got a list of departments (Finance, HR, Payroll, Maintenance, Grounds, Housekeeping, etc.) with employees parsed out in their respective columns ('John Smith' in C2 under 'Finance', for example.
I'm trying to get a formula to reference values in the A column vs. where they're listed in the C through H columns and then return the department in the respective B cell (IE "John Smith" in A2 will return "Finance" in B2)

I've tried =IFS(A2=C$2:C$200,"Finance",A2=D$2:D$200,"HR",A2=E$2:E$200,"Payroll") and so on with the remaining logical tests for the other departments but my output keeps spilling into A3 and down, which prevents me from using it in other cells.

I can brute force my way through by putting in each employee and their department manually but I'd rather automate the process to speed it up next time I have to run this report. Any help is appreciated.

Edit: I'm using Office 365 Enterprise

https://preview.redd.it/3aek79h1aijg1.png?width=1722&format=png&auto=webp&s=7ee16a0540a3709d14583ce39cbb241a2dc4e63a

submitted by /u/the_idea_pig
[link] [comments]

Want to read more?

Check out the full article on the original site

View original article

Tagged with

#Excel alternatives for data analysis
#financial modeling with spreadsheets
#natural language processing for spreadsheets
#generative AI for data analysis
#enterprise-level spreadsheet solutions
#rows.com
#AI formula generation techniques
#modern spreadsheet innovations
#machine learning in spreadsheet applications
#digital transformation in spreadsheet software
#Excel compatibility
#collaborative spreadsheet tools
#AI-driven spreadsheet solutions
#cloud-based spreadsheet applications
#real-time data collaboration
#automation in spreadsheet workflows
#no-code spreadsheet solutions
#spreadsheet
#employee names
#departments