Forum Discussion
LABS.GENERATIVEAI() Not working (03/2026)
I am trying to utilize the ai function in a project at work but something isn't working.
I have both a user and admin key from OpenAI that both start with the "sk-" syntax.
I have 365 Premium (personal not business)
When I do a simple function like "=LABS.GENERATIVEAI("Hello World")" it just returns with #N/A! error.
I'm using the gpt-5 model for Excel Labs
I'm at a loss as to why this isn't working... I have credits in the "vault" of OpenAI and have double checked what seems like every parameter for this to work. I'm also on the beta stream of Excel Labs to access the latest updates and Excel is fully updated, computer has rebooted, and it is still not working.
Any ideas or are others having issues with this working too?
1 Reply
- Olufemi7Iron Contributor
HelloCBertoldie,
The #N/A from LABS.GENERATIVEAI() is usually not related to your API key or credits.
Excel Labs is an experimental Microsoft Garage add-in and features like LABS.GENERATIVEAI() are not production features, so they may return #N/A due to backend availability, rollout limitations, or account type, especially with Microsoft 365 Personal.
AI features in Excel also depend on licensing and tenant eligibility, so availability can vary even on the beta channel.
Microsoft documentation:
https://techcommunity.microsoft.com/t5/excel-blog/advanced-formula-environment-is-becoming-excel-labs-a-microsoft/ba-p/3736518
https://appsource.microsoft.com/en-us/product/office/wa200003696
https://support.microsoft.com/en-us/office/copilot-in-excel