So I have a bunch of cost centers in column A. Basis the cost center number, I want the column B to be filled with cost center name automatically in excel. For example if the cost center number = 101 Or 105 Or 108 then the name in the Column B should be auto filled as "operations". if the cost center number is = 102, or 106 or 107, then the cost center name should be "marketing" and so on..
I tried writing below formula to achieve at least one condition but it is not working.
=IF(OR($A$2=101,$A$2=105,$A$2=108,"Operations",""))
Please help with an IF statement that combines And and OR conditions to fill the names basis the numbers in column A

You misplace the true and false result into
OR, simply move them out like so and it will work.If you want to meet other criteria, you can add simply use
IFSandOR.But in this case, your formular will become longer with more criteria. Hence, I would suggest using
VLOOKUP. You need to create a lookup table in the sheet that represent the key and value:then use this formula to lookup the value
here is an example: https://docs.google.com/spreadsheets/d/1GDqV_UZGmtIT01bAJgP4PQgPzvU41QbxyLyDO2YhW3U/edit