{"id":8967,"date":"2023-01-20T08:00:18","date_gmt":"2023-01-20T07:00:18","guid":{"rendered":"https:\/\/blog.sheetgo.com\/?p=8967"},"modified":"2026-10-09T15:57:21","modified_gmt":"2026-10-09T13:57:21","slug":"formule-denregistrement-dans-google-sheets","status":"publish","type":"post","link":"https:\/\/www.sheetgo.com\/fr\/blog\/google-sheets-formulas\/log-formula-in-google-sheets\/","title":{"rendered":"Comment utiliser la formule LOG dans Google Sheets ?"},"content":{"rendered":"<p>[et_pb_section fb_built=&#8221;1&#8243; admin_label=&#8221;section&#8221; module_class=&#8221;sheetgo-post&#8221; _builder_version=&#8221;4.16&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_row _builder_version=&#8221;4.17.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.17.4&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_text _builder_version=&#8221;4.17.4&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Needing to calculate the logarithm of your data inside spreadsheets? No need for a calculator; Google Sheets has its own LOG function to find the logarithm for you.\u00a0<\/p>\n<p>You may have already learned the behavior of natural logarithms and <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/ln-formula-in-google-sheets\/?utm_source=google&amp;utm_medium=organic&amp;utm_campaign=(none)&amp;utm_content=(none)&amp;utm_term=(none)\">the usage of LN formula in Google Sheets<\/a>. Although this formula is useful in many fields, it isn\u2019t as flexible. With the natural logarithm, you cannot evaluate the logarithm for a base that is not Euler\u2019s number (e).\u00a0<\/p>\n<p>What if we need a logarithm value for the base of 2? Or a base of 10? In such scenarios, the LOG formula in Google Sheets is the most flexible and useful function that can help us evaluate values for any base that we choose.<\/p>\n<p>Without further ado, let\u2019s explore exactly what the LOG function is in Google Sheets, when you can use it, and what it looks like when applied to your own Google Sheets data.\u00a0<\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_text admin_label=&#8221;Connections T &#8211; Automate beyond importrange &#8211; Horizontal&#8221; module_class=&#8221;sheetgo-post-no-shadow-img md2-contained-button-light vertical-banner-container&#8221; _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; background_color=&#8221;#f2f7ff&#8221; max_width=&#8221;700px&#8221; module_alignment=&#8221;center&#8221; max_height=&#8221;300px&#8221; custom_margin=&#8221;20px|0px|20px|0px|true|true&#8221; custom_padding=&#8221;25px|25px|25px|25px|true|true&#8221; sticky_limit_bottom=&#8221;section&#8221; border_radii=&#8221;on|20px|20px|20px|20px&#8221; border_width_all=&#8221;1px&#8221; border_color_all=&#8221;#d9e7ff&#8221; saved_tabs=&#8221;all&#8221; global_colors_info=&#8221;{}&#8221; global_module=&#8221;50462&#8243; theme_builder_area=&#8221;post_content&#8221;]<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/Add-on-sm_sheets-connected-new-connection.webp\" width=\"250\" height=\"168\" alt=\"\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/Recommended-for-Google-Workspace-badge.webp\" width=\"150\" height=\"180\" alt=\"39\" \/><\/p>\n<p><span style=\"font-size: 22px; font-weight: 600;\">Automate data transfers beyond Importrange<\/span><\/p>\n<p><a href=\"https:\/\/www.sheetgo.com\/connections\/\" target=\"_blank\" rel=\"noopener\">Find out how<\/a>[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row admin_label=&#8221;row&#8221; _builder_version=&#8221;4.16&#8243; background_size=&#8221;initial&#8221; background_position=&#8221;top_left&#8221; background_repeat=&#8221;repeat&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.16&#8243; custom_padding=&#8221;|||&#8221; global_colors_info=&#8221;{}&#8221; custom_padding__hover=&#8221;|||&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_text _builder_version=&#8221;4.17.4&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>What is the LOG function in Google Sheets?\u00a0<\/h2>\n<p>The LOG function in Google Sheets returns the logarithm of a number in any base. However, in most cases, it\u2019s usually used to calculate the logarithm of a number in base 10.\u00a0<\/p>\n<p>In the image below, you can see the difference between a natural logarithm (LN) and a logarithm (LOG), with two logarithms using a base of 2 and 10. <\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2021\/10\/LOG-formula-1.png&#8221; alt=&#8221;LOG formula 1&#8243; title_text=&#8221;LOG formula 1&#8243; _builder_version=&#8221;4.16&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.17.4&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>Although complex in nature, the syntax of the LOG formula is simple.<\/p>\n<h3>LOG function syntax <\/h3>\n<p><strong>LOG(value, base)<\/strong><\/p>\n<ul>\n<li><strong>value<\/strong>\u00a0\u2013 The value for which to calculate the logarithm given base.<\/li>\n<li><strong>base<\/strong>\u00a0\u2013 The base to use for the calculation of the logarithm. Google Sheets uses the default base of 10.<\/li>\n<\/ul>\n<p>It\u2019s important to note that the value and base parameters inputs must be positive numeric values. The formula will return a #NUM! error if you try to use it with a zero or negative value and\/or base.<\/p>\n<h3>Usage: LOG formula in Google Sheets<\/h3>\n<p>Since this is a mathematical function, it gives us more perspective if we applied this practically on the Google Sheets application. So, here we go.<\/p>\n<p>There are many different ways you can use the LOG function in Google Sheets. From a business perspective, you may use it as part of your calculation to return the percentage increase of a value over a given time. Alternatively, you could use the LOG function as part of a larger formula to calculate any value&#8217;s compound annual growth rate (CAGR). <\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.17.4&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h3>Use case of the LOG function in Google Sheets\u00a0<\/h3>\n<p>Let\u2019s take one of the methods above to show a real-life use case of when you can use the LOG function inside Google Sheets.\u00a0<\/p>\n<p>Let\u2019s say I am the head of the finance department in my company. I want to calculate growth of the company\u2019s latest investments as a percentage, to see whether the investments are worth it.\u00a0<\/p>\n<p>[\/et_pb_text][et_pb_text _builder_version=&#8221;4.17.4&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>How to use the LOG function in Google Sheets\u00a0<\/h2>\n<h3><\/h3>\n<p>Below is an example of how you can use the LOG function to return specific values. As you can see, I use the base of 10 across all the examples.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2023\/01\/LOG-1.png&#8221; alt=&#8221;LOG Formula in Google Sheets: Usage&#8221; title_text=&#8221;LOG &#8211; 1&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.17.4&#8243; width=&#8221;640px&#8221; max_width=&#8221;640px&#8221; height=&#8221;440px&#8221; max_height=&#8221;440px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.17.4&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>As is the case with most Google Sheets formulas, the LOG formula also accepts direct numeric values, as well as cell references.\u00a0<\/p>\n<p>You may notice just by this data table that the results follow a similar exponential increase, as shown in the graph above.\u00a0<\/p>\n<p>If I plot my data as a line graph, you can see how it is almost a replica of the first graph. <\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2023\/01\/LOG-2.png&#8221; alt=&#8221;LOG formula: Results According to Different Bases&#8221; title_text=&#8221;LOG &#8211; 2&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.17.4&#8243; width=&#8221;640px&#8221; max_width=&#8221;640px&#8221; height=&#8221;440px&#8221; max_height=&#8221;440px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.17.4&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>Examples of using the LOG function in Google Sheets\u00a0<\/h2>\n<p>As the head of the finance department in my company, I want to calculate how long it would take for me to reach a certain amount of money.\u00a0\u00a0<\/p>\n<h3>1. How long would it take for you to double your investment?<\/h3>\n<p>In this example, I would like to know how long it would take for me to double my investment with a 1% monthly interest rate that compounds over time.<\/p>\n<p>If I invested $10,000, I would like to know how many months I would have to wait until I reach $20,000. In this case, the principal sum would be $10,000 and the final amount I want to reach would be $20,000. The interest rate is 1%.<\/p>\n<p>The result is the number of times interest is applied to the principal sum. In this case, it would take me over 69 months to double my investment at a 1% monthly interest rate.<\/p>\n<p>&nbsp;<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2023\/01\/LOG-3.png&#8221; alt=&#8221;LOG Formula: Graph in Google Sheets&#8221; title_text=&#8221;LOG &#8211; 3&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.17.4&#8243; width=&#8221;640px&#8221; max_width=&#8221;640px&#8221; height=&#8221;440px&#8221; max_height=&#8221;440px&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.17.4&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p>We have applied the formula <b>LOG(value, base)<\/b>. The value is the ratio between the final amount and the principal sum, whereas the base is the rate at which our capital will appreciate over time (the interest rate).<\/p>\n<p>We have divided the final amount (B4) by the principal sum (cell B2) to get the correct value. In order to get the base, we have converted the interest rate to decimals (cell B3 divided by 100) and added 1.<\/p>\n<p>As a result, we have used the formula as follows.<\/p>\n<p>=LOG(B4\/B2, B3\/100+1)<\/p>\n<h3>2. How long would it take for you to turn $10,000 into $12,000?<\/h3>\n<p>Let&#8217;s say we want to turn $10,000 into $12,000. We are going to invest the principal sum in an investment that will yield a 2% monthly gain. In this case, it would take over 9 months to get the desired result.<\/p>\n<p>For a quick estimate without a formula, the <a href=\"https:\/\/www.sheetgo.com\/blog\/finance-processes\/what-is-the-rule-of-72\/\">rule of 72<\/a> divides 72 by the annual interest rate to give the number of years an investment takes to double.<\/p>\n<p>[\/et_pb_text][et_pb_image src=&#8221;https:\/\/static.sheetgo.com\/wp-content\/uploads\/2023\/01\/LOG-4.png&#8221; alt=&#8221;LOG Formula: Graph in Google Sheets&#8221; title_text=&#8221;LOG &#8211; 4&#8243; align=&#8221;center&#8221; _builder_version=&#8221;4.17.4&#8243; width=&#8221;640px&#8221; max_width=&#8221;640px&#8221; module_alignment=&#8221;center&#8221; height=&#8221;638px&#8221; max_height=&#8221;440px&#8221; custom_margin=&#8221;2px||||false|false&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][\/et_pb_image][et_pb_text _builder_version=&#8221;4.17.4&#8243; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<h2>How to use the LOG formula in Google Sheets<\/h2>\n<p>There you have it! Now you can use the LOG formula in Google Sheets to perform some complex calculations.<\/p>\n<p>If you want to calculate useful finance-related values quickly and easily, check out this article on <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/fv-formula-in-google-sheets\/\" target=\"_blank\" rel=\"noopener\">how to use the FV formula in Google Sheets<\/a>.[\/et_pb_text][\/et_pb_column][\/et_pb_row][et_pb_row _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_column type=&#8221;4_4&#8243; _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;][et_pb_text admin_label=&#8221;Connections T &#8211; Automate between spreadsheets &#8211; Horizontal&#8221; module_class=&#8221;sheetgo-post-no-shadow-img md2-contained-button-light vertical-banner-container&#8221; _builder_version=&#8221;4.27.2&#8243; _module_preset=&#8221;default&#8221; background_color=&#8221;#f2f7ff&#8221; max_width=&#8221;700px&#8221; module_alignment=&#8221;center&#8221; max_height=&#8221;300px&#8221; custom_margin=&#8221;20px|0px|20px|0px|true|true&#8221; custom_padding=&#8221;25px|25px|25px|25px|true|true&#8221; sticky_limit_bottom=&#8221;section&#8221; border_radii=&#8221;on|20px|20px|20px|20px&#8221; border_width_all=&#8221;1px&#8221; border_color_all=&#8221;#d9e7ff&#8221; global_module=&#8221;50460&#8243; saved_tabs=&#8221;all&#8221; global_colors_info=&#8221;{}&#8221; theme_builder_area=&#8221;post_content&#8221;]<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/run-automatically-connect-sheet-icons.webp\" width=\"250\" height=\"168\" alt=\"\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2024\/09\/Recommended-for-Google-Workspace-badge.webp\" width=\"150\" height=\"180\" alt=\"39\" \/><\/p>\n<p><span style=\"font-size: 22px; font-weight: 600;\">Automate data transfers between spreadsheets<br \/><\/span><\/p>\n<p><a href=\"https:\/\/www.sheetgo.com\/connections\/\" target=\"_blank\" rel=\"noopener\">Find out how<\/a><\/p>\n<p>[\/et_pb_text][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Needing to calculate the logarithm of your data inside spreadsheets? No need for a calculator; Google Sheets has its own LOG function to find the logarithm for you.\u00a0 You may have already learned the behavior of natural logarithms and the usage of LN formula in Google Sheets. Although this formula is useful in many fields, [&hellip;]<\/p>\n","protected":false},"author":40,"featured_media":41340,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_et_pb_use_builder":"on","_et_pb_old_content":"In <a href=\"https:\/\/www.sheetgo.com\/blog\/google-sheets-formulas\/ln-formula-in-google-sheets\/\" target=\"_blank\" rel=\"noopener noreferrer\">this post<\/a>, we learned the behavior of <a href=\"https:\/\/en.wikipedia.org\/wiki\/Natural_logarithm\" target=\"_blank\" rel=\"noopener noreferrer\">natural logarithm<\/a> and the usage of LN formula. While we can agree that the logarithm evaluated upon base e is quite useful in many fields, it isn't as flexible. For instance, we can not evaluate the logarithm for a base that is not, the <a href=\"https:\/\/en.wikipedia.org\/wiki\/E_(mathematical_constant)\" target=\"_blank\" rel=\"noopener noreferrer\">Euler's number (e)<\/a>. What if we need <a href=\"https:\/\/en.wikipedia.org\/wiki\/Logarithm\" target=\"_blank\" rel=\"noopener noreferrer\">logarithm<\/a> value for the base of 2? Or base of&nbsp;10? In such scenarios, the <a href=\"https:\/\/support.google.com\/docs\/answer\/3093495\" target=\"_blank\" rel=\"noopener noreferrer\">LOG<\/a> formula in Google Sheets can help us evaluate values for any base that we choose.\n\nIf we were to plot graphs of logarithm functions evaluated upon base 2 and 10, this is how they would look. You can also compare them against the natural logarithm (base e) curve.\n\n[caption id=\"attachment_9022\" align=\"aligncenter\" width=\"432\"]<img class=\"wp-image-9022 size-full\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2018\/07\/Log-formula-in-Google-Sheets-Graphs.webp\" alt=\"Log formula in Google Sheets - Graphs\" width=\"432\" height=\"321\"> Logarithm functions for bases 2, e, and 10. [Image Source: Wikipedia][\/caption]\n<h3>Syntax<\/h3>\n<strong>LOG(value, base)<\/strong>\n<ul>\n \t<li><strong>value<\/strong> - The value for which to calculate the logarithm given base.<\/li>\n \t<li><strong>base<\/strong> - The base to use for calculation of the logarithm.<\/li>\n<\/ul>\nIt is important to note that the inputs for <strong>value<\/strong>&nbsp;and <strong>base<\/strong> parameters must be positive numeric values. The formula will return a #NUM! error, if we tried to use it with a zero or negative <strong>value<\/strong> and\/or <strong>base<\/strong>.\n<h3>Usage: LOG formula in Google Sheets<\/h3>\nSince this is a mathematical function, it gives us more perspective if we applied this practically on the Google Sheets application. So, here we go.\n\n<img class=\"aligncenter size-full wp-image-9025\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2018\/07\/LOG-formula-Illustration-Frame-1.png\" alt=\"LOG formula in Google Sheets\" width=\"765\" height=\"626\">\n\nWe tried using the base of 10 across all the examples. As it is the case with most Google Sheets formulas, the LOG formula also accepts direct numeric values, as well as cell references. We demonstrated that in our examples.\n\nWe will notice that the values tend to progress in line with the curve corresponding to base 10 in the graph. A better way to visualize and reinforce our understanding would be to plot graphs of multiple bases. Now that we already have the outputs for base 10, let's try doing the same exercise for bases 2 and e.\n\n<img class=\"aligncenter size-full wp-image-9026\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2018\/07\/LOG-formula-Illustration-Frame-2.png\" alt=\"LOG formula in Google Sheets\" width=\"765\" height=\"626\">\n\nIf we now plot these values on a chart, it will look like this. And unsurprisingly, it resembles the very first graph on this post.\n\n<img class=\"aligncenter size-full wp-image-9027\" src=\"https:\/\/static.sheetgo.com\/wp-content\/uploads\/2018\/07\/LOG-formula-Illustration-Frame-3.png\" alt=\"LOG formula in Google Sheets\" width=\"765\" height=\"650\">","_et_gb_content_width":"","footnotes":""},"categories":[54],"tags":[39,28],"class_list":["post-8967","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google-sheets-formulas","tag-connections-t","tag-spreadsheets"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/posts\/8967","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/comments?post=8967"}],"version-history":[{"count":0,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/posts\/8967\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/media\/41340"}],"wp:attachment":[{"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/media?parent=8967"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/categories?post=8967"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sheetgo.com\/fr\/wp-json\/wp\/v2\/tags?post=8967"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}