Skip to main content
 

Excel LOG Function

Author: Zhoumandy Last Modified: 2022-03-17

The LOG function returns the logarithm of a number, using a specified base.

log function 1


Syntax

=LOG (number, [base])


Arguments

  • Number (required): The positive number that you want to calculate the logarithm of.
  • Base (optional): The base of the logarithm. If omitted, it defaults to 10.

Return value

The LOG function returns a numeric value.


Function notes

  1. Both arguments in the LOG function should be supplied as positive numeric values.
  2. LOG function will return the #VALUE! error if any of the supplied arguments are non-numeric.
  3. LOG function will return the #NUM! error if:
    • number ≤ 0
    • base≤ 0
  4. LOG function will return the #DIV/0! error if base equals 1.

Examples

To get the logarithms of numbers to specified bases in the below table, please copy the formulas below into cell E4, E5, E6 and E7 respectively and press the Enter key to get the results.

=LOG (B4)

=LOG (B5, C5)

=LOG (B6, C6)

=LOG (B7, C7)

log function 2

Notes:

  1. In the formula of Cell E4, the base argument is omitted and defaults to 10.
  2. We can directly input the values of the two arguments in the formula. The four formulas above can be changed to:

    =LOG (10)

    =LOG (8, 2)

    =LOG (16, 3)

    =LOG (88, 3.5)

Relative Functions:

  • Excel EVEN Function
    The EVEN function rounds numbers away from zero to the nearest even integer.

  • Excel EXP Function
    The EXP function returns the result of the constant e raised to the nth power.


The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ...
Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List...
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...


Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.