+ Reply to Thread
Results 1 to 10 of 10

Using Excel to find Geometric Mean

  1. #1
    Registered User
    Join Date
    11-12-2014
    Location
    Malta
    MS-Off Ver
    Office for MAC 2011 and Office Windows 2013
    Posts
    6

    Using Excel to find Geometric Mean

    Hi Everyone.

    I am currently using excel to process some data. The data is a long list having 60,000 rows by 96 columns. This is why I need your help.

    To give an example of what I need to do is as follows.

    Say I have 5 matrices being of different number of rows but always 96 columns. For example 5,10,12,8,15 rows respectively. So the matrix size are not uniform.

    The first Column is the date dd/mm/yyyy and I need to find the geometric mean of the 5 matrices but being sorted by the same date and column. The operation I need is similar to the Consolidation. But the consolidation only finds the arithmetic mean but I need the geometric mean.

    Can someone help me please?

    Thanking you in advance,

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Using Excel to find Geometric Mean

    Welcome to the forum. You might benefit from reading the part of the forum rules headed "How to get your question answered quickly."
    Last edited by shg; 11-12-2014 at 04:52 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    11-12-2014
    Location
    Malta
    MS-Off Ver
    Office for MAC 2011 and Office Windows 2013
    Posts
    6

    Re: Using Excel to find Geometric Mean

    Hi shg, Apologies but did not understood the meaning of your post.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Using Excel to find Geometric Mean

    There's a link in the menu bar: http://www.excelforum.com/forum-rule...rum-rules.html. A portion of that reads,

    Want to get your question answered quickly?

    •Ensure your question is not too vague. Don't assume anyone is familiar with your problem. While you can upload small attachments, describe your problem in the body of the post. We are fortunate to have several Excel gurus, but few mind-readers.

    •On the other hand, skip irrelevant details. Be descriptive and concise. Short, direct, and to-the-point questions with apt thread titles are almost always answered promptly.

    •Keep the scope reasonably narrow. Questions like, "How do I set up an accounting system in Excel?" might be a long time waiting.

    •Explain what you've already tried. ("Calculation is set to automatic, but formulas still don't compute") so helpers don't waste your time or theirs.

    •Post a WORKBOOK. Nobody wants to type data from a picture or paste text from your post into a spreadsheet as a prelude to helping. To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

    •If your question has not been answered within a day, consider adding another post with any additional information you believe is relevant. If you think your post is good as is, just reply to your own thread with the words "Bump no response", which will bring it to the top of the forum.

    •Ensure your question is not too vague. Don't assume anyone is familiar with your problem. While you can upload small attachments, describe your problem in the body of the post. We are fortunate to have several Excel gurus, but few mind-readers.

    •On the other hand, skip irrelevant details. Be descriptive and concise. Short, direct, and to-the-point questions with apt thread titles are almost always answered promptly.

    •Keep the scope reasonably narrow. Questions like, "How do I set up an accounting system in Excel?" might be a long time waiting.

    •Explain what you've already tried. ("Calculation is set to automatic, but formulas still don't compute") so helpers don't waste your time or theirs.

    •Post a WORKBOOK. Nobody wants to type data from a picture or paste text from your post into a spreadsheet as a prelude to helping. To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

    •If your question has not been answered within a day, consider adding another post with any additional information you believe is relevant. If you think your post is good as is, just reply to your own thread with the words "Bump no response", which will bring it to the top of the forum.

  5. #5
    Registered User
    Join Date
    11-12-2014
    Location
    Malta
    MS-Off Ver
    Office for MAC 2011 and Office Windows 2013
    Posts
    6

    Re: Using Excel to find Geometric Mean

    Hi shg,

    Thanks for the reply.

    I tried to be as concise as possible if that is the problem. I mentioned the function consolidate that is in excel. But consolidate apart from other mathematical functions makes the arithmetic average. I need a similar function or method the way consolidate works but to find the geometric mean instead of the arithmetic mean. Hope this helps. If no please I appreciate if you specify where is the problem in my message.

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Using Excel to find Geometric Mean

    So are you saying that you have a range of cells, let's say A1:A10 and you want to calculate the geometric mean?

    =PRODUCT(A1:A10)^(1/COUNT(A1:A10)
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  7. #7
    Registered User
    Join Date
    11-12-2014
    Location
    Malta
    MS-Off Ver
    Office for MAC 2011 and Office Windows 2013
    Posts
    6

    Re: Using Excel to find Geometric Mean

    Hi ChemistB,

    Not exactly. Let me try to explain further.

    Date A B C D E F G H
    21/09/2014 0 0 0 0 0 0 0 0
    22/09/2014 0 10 0 0 0 0 0 0
    23/09/2014 0 0 0 0 0 0 0 0
    24/09/2014 0 0 0 0 0 0 0 0
    25/09/2014 0 0 0 0 0 0 0 0
    26/09/2014 0 25 0 35 0 0 0 0
    27/09/2014 0 0 0 0 0 0 0 0
    28/09/2014 0 0 0 0 0 0 0 0
    29/09/2014 0 0 0 0 0 0 0 0
    30/09/2014 0 18 0 0 0 26 0 0
    01/10/2014 0 0 0 0 0 0 0 0
    02/10/2014 0 0 0 0 0 0 0 0
    03/10/2014 0 0 0 0 0 0 0 0
    04/10/2014 0 0 0 0 0 0 0 0

    Say for example I have 5 tables similar to the table above not having the same value in each cell. Please find a screen shot attached

    Taking a particular example: I need to find the geometric mean of all available B:2 cells from every table.
    Then find the geometric mean of all available B:3 cells from every table,
    then find the geometric mean of all available B:4 cells from every table

    having all these values will built a single matrix being filled with the geometric averages of the respective cells.

    Does this explains better?Screen Shot 2014-11-12 at 23.18.28.png
    Last edited by Student001; 11-12-2014 at 06:20 PM.

  8. #8
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,436

    Re: Using Excel to find Geometric Mean

    Since there is not a built in "geometric mean if" function, here's how I would probably do it:

    1) Create a helper column. Because the built in =GEOMEAN() function will ignore text values, I would use a function in this helper column that would return a text string (like "" or other) for those values that did not meet "criteria". Something like =IF(A2=date,B2,"notused") where date refers to a cell that contains the date of interest.
    2) Then, another cell could be added with the built in GEOMEAN() function. =GEOMEAN(F2:F22), assuming F contained the helper column.

    There are a lot of different variations around that kind of theme, so figure out the details of how you would like to do it, but that is the basic approach I would use.

    Help file for GEOMEAN() https://support.office.com/en-us/art...3-0b38980e40d5
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  9. #9
    Registered User
    Join Date
    11-12-2014
    Location
    Malta
    MS-Off Ver
    Office for MAC 2011 and Office Windows 2013
    Posts
    6

    Re: Using Excel to find Geometric Mean

    Hi

    Apologies for replying after a long time.

    I have s problem to apply the proposed method because I am finding it difficult to figure out how to make the helper column.

    But I have found another method, still need help for the last step if it is possible.

    Since the geometric mean is the nth root of the product of terms, I have used consolidate to find the product of the terms, thus having a table with the products of all the respective cells.

    Used consolidate again to find the count of each cell.

    I need to find a way how to use the function POWER(number, power) using the number being the values in the first table, then making the power 1/n where n is the cell values in the second table.

    Thanking you in advance for your time I appreciate

  10. #10
    Registered User
    Join Date
    11-12-2014
    Location
    Malta
    MS-Off Ver
    Office for MAC 2011 and Office Windows 2013
    Posts
    6

    Re: Using Excel to find Geometric Mean

    Quote Originally Posted by Student001 View Post
    Hi

    Apologies for replying after a long time.

    I have s problem to apply the proposed method because I am finding it difficult to figure out how to make the helper column.

    But I have found another method, still need help for the last step if it is possible.

    Since the geometric mean is the nth root of the product of terms, I have used consolidate to find the product of the terms, thus having a table with the products of all the respective cells.

    Used consolidate again to find the count of each cell.

    I need to find a way how to use the function POWER(number, power) using the number being the values in the first table, then making the power 1/n where n is the cell values in the second table.

    Thanking you in advance for your time I appreciate
    HI Ok I have figured out how this was easy to do after having the 2 tables sorted using the consolidate functions. I have used the finction POWER(number, power) and just dragging the cells as with usual functions

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] how to input a calculation in excel to find the geometric mean
    By KL in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 12:05 PM
  2. [SOLVED] how to input a calculation in excel to find the geometric mean
    By student1 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  3. [SOLVED] how to input a calculation in excel to find the geometric mean
    By KL in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 07:05 AM
  4. [SOLVED] how to input a calculation in excel to find the geometric mean
    By student1 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  5. [SOLVED] how to input a calculation in excel to find the geometric mean
    By student1 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1