Can anyone translate this formula??

mpalermino76

New Member
Joined
Jun 2, 2011
Messages
5
Does anyone know what this is trying to determine?

=ROUND(IF(W15=0,0,IF(X15=1,LOG(W15)/LOG(X15+0.5),LOG(W15)/LOG(X15))),2)
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
It looks like its trying to determine the logarithm of W15 with X15 as a base, with some odd error handling.

If W15 = 0, it avoids the "0 has not logarithm" error by returning 0
If X15 = 1, it avoids the "no number has a logarithm base 1" error by returning Log(W15)base(1.5)
 
Upvote 0
The worksheet function LOG(X) returns the base 10 logarithm of X.
(the Worksheet function LN(X) returns the natural logarithm as does the VBA function Log(x))

To get the logarithm of a number base B, divide LOG(X) by LOG(B)


So if b^a = x then LOG(x)/LOG(b) = LN(x)/LN(b) = a
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,740
Members
452,940
Latest member
Lawrenceiow

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top