Avatar of Alex A
Alex A

asked on 

Excel formulas

Hi, I have to implement calculation in Excel and wondering whether there is already internal/statistical Excel function for this:

ColA / (ColA + ColB)

Any advice is appreciated.


Microsoft ExcelMicrosoft SQL ServerMicrosoft Office

Avatar of undefined
Last Comment
arnold
ASKER CERTIFIED SOLUTION
Avatar of byundt
byundt
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Create your own function in vba
Function mystat(A,B)

mystat = A/(A+B)

end function

Open in new window

 =mystat(x1;y1)

Avatar of arnold
arnold
Flag of United States of America image

You have SQL server as a topic. You could as part of the SQL query

Select columna,columnb, (columna/(columna+columnb) as special from ..

You would. Need to test to make sure no division by 0 is a possibility.

This was covered in an example byundt.
Microsoft SQL Server
Microsoft SQL Server

Microsoft SQL Server is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.SQL Server is available in multiple versions, typically identified by release year, and versions are subdivided into editions to distinguish between product functionality. Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning.

171K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo