Getting Error while applying list based data validation in excel


I have an excel sheet in which i have entered names in Cells XFC1:XFC12 and also I have named that list as Shifts. When I try to apply list based data validation in Cell C5 using the formula =IF(TEXT(C$4,"mmmm")=$C$1,Shifts,FALSE) it gives me an error the list source must be a delimited list of a reference to single row or column. Attached is the error screenshot.

The value in C4 is a date and value in C1 is a month name. I want to display the list if the month names match or else it should not display the list.

How to get rid of the error? Where am I wrong?

Thanks in advance.
Vipin KumarSr. Network EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rory ArchibaldCommented:
C4's month must equal C1 when you add the validation or you will get that error. You can add some temporary values to get the DV set and then delete them afterwards.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.