Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
__declspec(dllexport) LPXLOPER12 WINAPI AverDo_vn(LPXLOPER12 x1)
{
//x1 is a Range excel with datatype as 11o22'; 15o13'; 5o06'....
//I want to return of Average of my data
value_average =(11+22/60+15+13/60+5+6/60)/3 = 10.56o = 10o34'

return value_average;
//Thank you
}

What I have tried:

I want to make a user function excel in xll by C++.
Posted
Updated 19-Mar-22 22:57pm
Comments
OriginalGriff 17-Mar-22 3:18am    
And?
What does it do that you didn't expect, or not do that you did?
What have you tried to do to find out why?
Are there any error messages, and if so, where and when? What did you do to make them happen?

This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with.
Use the "Improve question" widget to edit your question and provide better information.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900