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)| Argument | What it means | |
|---|---|---|
inumber | Required | A 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
| A | B | |
|---|---|---|
| 1 | Complex | |
| 2 | 3+4i | 0.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
| A | B | |
|---|---|---|
| 1 | Frequency response H | |
| 2 | 0.6-0.8i | 0.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.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#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.
| Language | Function name |
|---|---|
| Danish | IMAGLOG10 |
| Dutch | C.LOG10 |
| Finnish | KOMPLEKSI.LOG10 |
| French | COMPLEXE.LOG10 |
| Hungarian | KÉPZ.LOG10 |
| Italian | COMP.LOG10 |
| Polish | LOG10.LICZBY.ZESP |
| Russian | МНИМ.LOG10 |
| Spanish | IM.LOG10 |
| Turkish | SANLOG10 |