+ Reply to Thread
Results 1 to 8 of 8

Calculating Geomean

  1. #1
    Registered User
    Join Date
    11-12-2011
    Location
    Kentucky
    MS-Off Ver
    Excel 2011
    Posts
    3

    Calculating Geomean

    i need to calculate geomean for approximately 20000 cells in a column. the problem is there are blank spaces within the rows. i am not sure if there are any zeroes however i know this can be avoided with the if function and im pretty sure there arent any negatives. i know that the data is probably too much to use geomean alone and i used a formula array along the lines of =exp(average(ln(a1:a20000))) and used ctrl shift enter, yet i still get the #### error. what do i do?

  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: Calculating Geomean

    Try

    =geomean(if(a1:a20000>0, a1:a20000))

    ... confirmed with Ctrl+Shift+Enter.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    11-12-2011
    Location
    Kentucky
    MS-Off Ver
    Excel 2011
    Posts
    3

    Re: Calculating Geomean

    Quote Originally Posted by shg View Post
    Try

    =geomean(if(a1:a20000>0, a1:a20000))

    ... confirmed with Ctrl+Shift+Enter.
    i tried this and got #### error again =/

  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: Calculating Geomean

    The formula MUST be confirmed with Ctrl+Shift+Enter rather than just Enter.

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Calculating Geomean

    #### error whats that? afaik ### only shows if your column is too narrow or you are using negative dates
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Registered User
    Join Date
    11-12-2011
    Location
    Kentucky
    MS-Off Ver
    Excel 2011
    Posts
    3

    Re: Calculating Geomean

    Quote Originally Posted by martindwilson View Post
    #### error whats that? afaik ### only shows if your column is too narrow or you are using negative dates
    it says a value used in the formula is of the wrong data type. shouldnt this be covered if i input if(a1:a20000>0,a1:a20000)? and i used ctrl shift enter to put in the array formula

  7. #7
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719

    Re: Calculating Geomean

    Is it possible that your data is text-formatted? As a test try this formula

    =COUNT(A1:A20000)

    what result do you get?
    Audere est facere

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Calculating Geomean

    must be something wrong with the values then
    see attached using both versions once without and once with blank cells
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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