Engineering function

IMLOG10 function

Returns the base-10 logarithm of a complex number. Useful when decibel formulas run into complex values.

Available in Excel 2007 and later (Excel 2003 needed the Analysis ToolPak add-in), Microsoft 365, Excel for the web, Excel for Mac

Excel 2007 and laterWorks in Google Sheets

Syntax

IMLOG10(inumber)
ArgumentWhat it means
inumberRequiredA complex number as text such as "3+4i" or "5-2j", a cell containing one, or a plain number. Build it with COMPLEX to avoid typing errors.

Returns: A complex number as text.

How IMLOG10 works

IMLOG10 is the common (base-10) logarithm for complex numbers. It equals the natural log from IMLN divided by ln 10, so the real part is log10 of the size and the imaginary part is the angle divided by ln 10 (about 2.3026).

It is mainly used in signal and acoustics work, where decibels are 10 or 20 times a base-10 log; taking IMREAL of 20*IMLOG10(H) gives the gain in dB of a complex frequency response H. Like all IM functions, it reads complex numbers written as text (x+yi or x+yj) and returns its answer as text with up to 15 significant digits, so you can feed the result straight into another IM function.

Examples

1Log base 10 of 3+4i

B2fx=IMLOG10(A2)
AB
1Complex
23+4i0.698970004336019+0.402719196273373i

Result: 0.698970004336019+0.402719196273373i

log10(5) = 0.69897 and 0.927295 / ln 10 = 0.402719, shown with 15 significant digits.

2Gain in decibels

B2fx=20*IMREAL(IMLOG10(A2))
AB
1Frequency response H
20.6-0.8i0.0

Result: 0.0

|0.6−0.8i| = 1, so the gain is 20·log10(1) = 0 dB: the filter passes this frequency at full strength, only shifting its phase. Shown formatted to 1 decimal place.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 13 KB

Common errors and how to fix them

ErrorWhy it happensFix
#NUM!The input is 0 or not a valid complex number.Check the value.
#VALUE!The argument is a logical value, or the formula mixes the i and j suffixes.Use one suffix consistently throughout a calculation.

Tips

  • For real positive numbers LOG10 is simpler and returns a number.

Google Sheets

IMLOG10 also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

IMLOG10 in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
DanishIMAGLOG10
DutchC.LOG10
FinnishKOMPLEKSI.LOG10
FrenchCOMPLEXE.LOG10
HungarianKÉPZ.LOG10
ItalianCOMP.LOG10
PolishLOG10.LICZBY.ZESP
RussianМНИМ.LOG10
SpanishIM.LOG10
TurkishSANLOG10