EDUCBA Logo

EDUCBA

MENUMENU
  • Explore
    • EDUCBA Pro
    • PRO Bundles
    • Featured Skills
    • New & Trending
    • Fresh Entries
    • Finance
    • Data Science
    • Programming and Dev
    • Excel
    • Marketing
    • HR
    • PDP
    • VFX and Design
    • Project Management
    • Exam Prep
    • All Courses
  • Blog
  • Enterprise
  • Free Courses
  • Log in
  • Sign Up
Home Excel Excel Resources Maths Function in Excel LOG Excel Function
 

LOG Excel Function

Pradeep S
Article byPradeep S
Madhuri Thakur
Reviewed byMadhuri Thakur

Updated April 29, 2023

LOG Function in Excel

 

 

LOG in Excel

The LOG function is a worksheet function categorized under the Math/Trigonometry function.

Watch our Demo Courses and Videos

Valuation, Hadoop, Excel, Mobile Apps, Web Development & many more.

As per Mathematics, the logarithm is defined as an inverse function to exponentiation or logarithm of a positive real number x with respect to base b. i.e. bx=y

E.G. log2 16 = 4, since 24 = 2 ×2 × 2 × 2 = 16

Here, the logarithm (with respect to base 2) of 16 is 4.

The LOG function in Excel is easy to use & very simple; it is the most widely used function in statistics, finance & business analytics, or domains.

The LOG function is also used to plot a graph for data representation & it is used with other tools for regression analysis.

The LOG function performs the inverse operation to that of a POWER function.

LOG function in Excel calculates the logarithm of a given number to a supplied base or returns the natural logarithm of a number.

E.G. 1000 = 10 × 10 × 10 = 103, the “logarithm to base 10” of 1000 is 3, i.e. logarithm counts repeated multiplication of the same factor. The logarithm of a given number x is the exponent to a fixed number, the base b, must be raised to produce that number x.

i.e. If ax = b Then Loga(b) = x.

LOG Formula in Excel

Below is the LOG Formula in Excel :

LOG Formula in Excel 1

or 

LOG Formula in Excel 2

Explanation of LOG Function in Excel

LOG formula in Excel consists of two things Number & Base.

  • Number = It is a positive real number that you want to calculate the logarithm in Excel.
Note: It should be a numeric value that must always be greater than zero.
  • Base = It is a base to which the logarithm should be calculated or an optional argument specifying or indicating the base to which the logarithm should be calculated.
Note: If no base is listed, the base is assumed to be 10.

How to Use the LOG Function in Excel?

The LOG function in Excel is very simple and easy to use. Let us understand the working of the LOG function in Excel by some LOG Formula examples.

You can download this LOG Function Excel Template here – LOG Function Excel Template

Example #1 – With Base Argument

In the below-mentioned example, let’s calculate the logarithm in Excel of 47, with a base value of 10.

Follow these steps to calculate the LOG in Excel:

  • Select the output cell where we need to find out the log value, i.e. D8 in this example.

Example 1-1

  • Click the function button (fx) under the formula toolbar; a popup will appear; double-click on the LOG function under the select function.

LOG Example 1-2

  • A dialog box appears where arguments (Number & Base) for the log function need to be filled.

LOG Example 1-3

  • Here the number is 47 & the base argument is 10.

LOG Example 1-4

  • Excel calculates the logarithm value and displays the answer 1.6720979 in the output cell.

LOG Example 1-5

Example #2 – Without Base Argument

In the below-mentioned example, let’s calculate the logarithm of 100 without a base value.

Follow these steps to calculate the LOG in Excel:

  • Select the output cell where we need to find out the log value, i.e. D13 in this example.

Example 2-1

  • Click the function button (fx) under the formula toolbar; a popup will appear; double-click on the LOG function under the select function.

LOG Example 2-2

  • A dialog box appears where arguments (Number & Base) for the log function need to be filled.

LOG Example 2-3

  • Here the number is 100 & In this log function example, the Log function by default takes the base value as 10 if the second argument (Base) is not passed in the log function.

LOG Example 2-4

  • Excel calculates the logarithm value and displays the answer 2 in the output cell. i.e. 100 = 10 × 10 = 102, the “logarithm to base 10” of 100 is 2 i.e. logarithm counts repeated multiplication of the same factor. Therefore, it returns the output value or a result as 2.

LOG Example 2-5

Example #3 – With Decimal Value As Base Argument

In the below-mentioned example, let’s calculate the logarithm of 6, with the decimal value 0.5 as the base argument.

Follow these steps to calculate the LOG in Excel:

  • Select the output cell where we need to find out the log value, i.e. D17 in this example.

Example 3-1

  • Click the function button (fx) under the formula toolbar; a popup will appear; double-click on the LOG function under the select function.

LOG Example 3-2

  • A dialog box appears where arguments (Number & Base) for the log function need to be filled.

LOG Example 3-3

  • Here the number is 6 & the base argument is 0.5.

LOG Example 3-4

  • Excel calculates the logarithm value and displays the answer -2.584963 in the output cell. i.e. 0.5-2 = 6; Therefore, Log0.5(6) = -2.584963

LOG Example 3-5

Example #4 – When Base Argument is Negative Value or Zero

In the below-mentioned example, let’s calculate the logarithm in Excel of 47, with the base argument “0” ZERO or Negative value (-10).

Follow these steps to calculate the LOG in Excel:

  • Select the output cell where we need to find out the log value, i.e. K8 in this example.

Example 4-1

  • Click the function button (fx) under the formula toolbar; a popup will appear; double-click on the LOG function under the select function.

LOG Example 4-2

  • A dialog box appears where the log function’s arguments (Number & Base) need to be filled.

LOG Example 4-3

  • Here the number is 47 & the base argument is -1.

LOG Example 4-4

or 0.

LOG Example 4-5

  • Calculate the logarithm in Excel value and display the answer #NUM! Error in the output cell.

NUM Error Example 4-6

Example #5 – When Base Argument is Non-Numeric Or Text Value

In the below-mentioned example, let’s calculate the logarithm of 47, where the base argument is a text string, i.e. “EXCEL”.

Follow these steps to calculate the LOG in Excel:

  • Select the output cell where we need to find out the log value, i.e. K16 in this example.

Example 5-1

  • Click the function button (fx) under the formula toolbar; a popup will appear; double-click on the LOG function under the select function.

LOG Example 5-2

  • A dialog box appears where arguments (Number & Base) for the log function need to be filled.

LOG Example 5-3

  • The number is 47 & the base argument is TEXT string, i.e. EXCEL.

LOG Example 5-4

  • Excel calculates the logarithm value and displays the answer #VALUE! Error in the output cell.

VALUE Error Example 5-5

Things to remember about the LOG Function in Excel

  • Number argument in LOG Function: It should always be a positive real number you want to calculate the logarithm in Excel.
  • It should be a numeric value & must always be greater than zero.
  • If no base is listed in a Base argument, the base is always assumed to be 10.

LOG Function Errors

If there is an error from the Log function, it is due to one of the following:

Common Errors

 1) #VALUE! – It Occurs due to or if supplied number argument or the supplied [base] argument is non-numeric.

VALUE Error Example 5-5

2) #NUM! – It Occurs due to or if the supplied number argument or the supplied [base] argument is the negative value or zero.

LOG Example 6-2

The output will be :

NUM Error Example 4-6

3) #DIV/0! – It Occurs if the supplied [base] argument equals 1.

LOG Example 6-3.1

The output will be :

LOG Example 6-3.2

Recommended Articles

This has been a guide to the LOG in Excel. Here we discuss the LOG Formula in Excel and How to use LOG Function in Excel, along with practical examples and a downloadable Excel template. You can also go through our other suggested articles –

  1. XIRR in Excel
  2. Write Formula in Excel
  3. OR Excel Function
  4. FIND Function in Excel

Primary Sidebar

Footer

Follow us!
  • EDUCBA FacebookEDUCBA TwitterEDUCBA LinkedINEDUCBA Instagram
  • EDUCBA YoutubeEDUCBA CourseraEDUCBA Udemy
APPS
EDUCBA Android AppEDUCBA iOS App
Blog
  • Blog
  • Free Tutorials
  • About us
  • Contact us
  • Log in
Courses
  • Enterprise Solutions
  • Free Courses
  • Explore Programs
  • All Courses
  • All in One Bundles
  • Sign up
Email
  • [email protected]

ISO 10004:2018 & ISO 9001:2015 Certified

© 2025 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA
Free Excel Course

Excel functions, formula, charts, formatting creating excel dashboard & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

EDUCBA

Download LOG Function Excel Template

EDUCBA Login

Forgot Password?

EDUCBA

Download LOG Function Excel Template

EDUCBA

डाउनलोड LOG Function Excel Template

🚀 Limited Time Offer! - 🎁 ENROLL NOW