The IMLOG10 function in Google Sheets returns the base-10 logarithm of a complex number. Its syntax is IMLOG10(value), where value is a complex number provided as text like “3+4i” or as a reference to a cell containing that text.
What Is a Complex Number and Why Use IMLOG10?
A complex number has a real part and an imaginary part, written as a+bi, where i is the square root of -1. Standard spreadsheet functions like LOG10 only work with real numbers. When you need to find the logarithm of a value that involves i—for example in electrical engineering, signal processing, or physics—you use IMLOG10. It follows the same mathematical definition as the real logarithm but extends it to the complex plane.
How IMLOG10 Works in Google Sheets
The function takes one argument: a complex number. The result is also a complex number, displayed as text in the format a+bi or a-bi. Google Sheets uses the standard principal branch of the complex logarithm, meaning the imaginary part of the result lies between -π and π (approximately -3.14159 and 3.14159).
For example:
=IMLOG10("10")returns1because log₁₀(10) = 1.=IMLOG10("100+0i")returns2.=IMLOG10("1+i")returns approximately0.150514997831991+0.34109408846046i.
If you have a cell A1 containing the text 3+4i, then =IMLOG10(A1) returns the complex logarithm of that number.
How to Enter Complex Numbers in Google Sheets
Google Sheets represents complex numbers as text strings. You can type them directly into a formula or reference a cell. The accepted formats include:
a+bi(e.g.,2+3i)a-bi(e.g.,2-3i)a(real number, treated asa+0i)bi(pure imaginary, e.g.,4i)
Do not use spaces or a multiplication sign. The letter i is the imaginary unit; Google Sheets does not accept j (common in engineering) as an alias.
Practical Examples of IMLOG10
Suppose you are analyzing an AC circuit’s impedance. With impedance Z = 50+30i ohms in cell A1, you can compute the base-10 logarithm of that impedance:
- Enter
50+30iin cell A1. - In cell B1, enter
=IMLOG10(A1). - The result will be approximately
1.766+0.540i.
You can also use it with other complex functions. For instance, to get the natural logarithm, use IMLN; for base-2, use IMLOG2. These three functions are part of Google Sheets’ Engineering category.
Common Errors and How to Fix Them
If you see an error, check the following:
- #NUM! – The argument is not a valid complex number. Make sure it is text in the correct format, e.g.,
1+inot1+ i. - #VALUE! – The argument is a number, not text. Wrap it in quotes or reference a cell containing text.
- #NAME? – You may have typed the function name incorrectly. It is
IMLOG10, all caps.
Also note that IMLOG10(0) returns an error because the logarithm of zero is undefined.
IMLOG10 vs. LOG10 and Other Spreadsheet Tools
The regular LOG10 function only accepts real numbers. If you give it a complex number as text, it returns #VALUE!. IMLOG10 is the only way to get a base-10 logarithm for complex inputs. In Excel, the same function exists, but Excel uses IMLOG10 as well. The syntax and behavior are identical, so you can move between Google Sheets and Excel without changing formulas.
If you need the magnitude or angle of a complex number, use IMABS and IMARGUMENT respectively. These are separate functions that return real numbers.
Frequently Asked Questions
Can I use IMLOG10 with a cell containing a real number?
Yes. If the cell contains a plain number like 100, Google Sheets will treat it as 100+0i and return 2. However, if the cell is formatted as a number (not text), you must reference it directly; the function will still accept it.
What is the difference between IMLOG10 and IMLN?
IMLOG10 returns the base-10 logarithm, while IMLN returns the natural logarithm (base e). For a complex number z, IMLN(z) = IMLOG10(z) * ln(10) approximately.
Why does IMLOG10 return a complex number, not a real one?
Because the logarithm of a complex number is generally complex. Even for a positive real number, the complex logarithm has an imaginary part of 0, but for numbers with an imaginary component, the result has both real and imaginary parts.
Does IMLOG10 work with negative real numbers?
Yes. For example, =IMLOG10("-100") returns approximately 2+1.364i, because the logarithm of a negative number is complex.
Can I use IMLOG10 in array formulas?
Yes, it works with array formulas. For instance, if you have complex numbers in A1:A5, you can use =ARRAYFORMULA(IMLOG10(A1:A5)) to get results for each cell.
Alternatives and Related Functions
If you only need the logarithm of a real number, use LOG10. For natural logs of complex numbers, use IMLN; for base-2, use IMLOG2. To convert between forms, use COMPLEX to create a complex number from real and imaginary parts, and IMREAL and IMAGINARY to extract parts from a result.
Related
- GESTEP Function in Google Sheets: Syntax & Examples
- Balance Sheet vs Income Statement: Key Differences
- Voter Registration Data Entry Jobs: Real Work & Pay
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Excel Task List Template: Set Up and Customize YoursAn Excel task list template is a worksheet for recording tasks, owners, due dates, priorities, and progress in…
- Excel Split Cell Contents by DelimiterTo split cell contents by a delimiter in Excel for Microsoft 365 on Windows, select the cells and…
- Excel Freeze Panes Shortcut: Windows Keys and TipsIn Excel for Microsoft 365 on Windows, press Alt, then W, F, and F to open Freeze Panes.…
- Excel Protect Sheet with Some Cells Editable: How It WorksTo protect an Excel sheet while leaving certain fields editable, unlock those cells first, then choose Review >…
- How to Circle in PowerPoint: 3 Easy WaysCircling a word, number, or part of a screenshot in PowerPoint draws the viewer’s eye exactly where you…
- Excel Scatter Plot: How to Change Dot Size and ScaleTo change dot size in an Excel scatter plot, select a marker, open Format Data Series, then choose…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.