Excel Formula in C#

Technical support for Spire.XLS

Moderators: iceblue support, Flash, Manager

Excel Formula in C#

Postby rick.ben15 » Thu Jan 06, 2011 6:16 am

What would be the correct syntax for this forumula in Spire.XLS for .NET? [5 + (10 * weight) + (6.25 * height) - (5 * age)] * basalmetab
rick.ben15
 
Posts: 4
Joined: Tue Dec 28, 2010 1:13 am

Re: Excel Formula in C#

Postby iceblue support » Tue Jan 11, 2011 3:37 am

What you have should work, but you could take it step-by-step if you want...

double answer = 5;
answer += weightcalc;
answer += heightcalc;
answer -= agecalc;
answer *= basalmetab;
8)
e-iceblue support
User avatar
iceblue support
 
Posts: 244
Joined: Tue Dec 21, 2010 2:56 am


Return to Spire.XLS

Who is online

Users browsing this forum: No registered users and 0 guests