+ Reply to Thread
Results 1 to 4 of 4

GEOMEAN with Negative Numbers Ignoring Zeroes

  1. #1
    Registered User
    Join Date
    10-22-2014
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2011
    Posts
    44

    GEOMEAN with Negative Numbers Ignoring Zeroes

    Hey All,

    I'm trying to calculate a weighted return for a portfolio. I would like to use the GEOMEAN function, but am having trouble with zeros and negative numbers. I would like the geomean to include negative numbers but ignore the zeros. I have attached a sample sheet for reference.

    Please let me know if I am not explaining this clearly.

    Any help would be appreciated.

    Thank You

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: GEOMEAN with Negative Numbers Ignoring Zeroes

    I'll admit that I haven't used the GEOMEAN function before, but looking at Excel's help guide, it says:

    "If any data point ≤ 0, GEOMEAN returns the #NUM! error value. "

    In what way should negative numbers be included? What is the "correct" value that you would like returned in your sample?

    EDIT: To clarify, do you want the GEOMEAN to use the absolute value of the negative entries? Should it exclude them entirely?
    Last edited by CAntosh; 06-09-2016 at 03:46 PM.

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: GEOMEAN with Negative Numbers Ignoring Zeroes

    maybe:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    with Control+Shift+Enter
    but like cantosh says you cannot use values <0 in GEOMEAN() function.

    - IFERROR(E2:E9,0) eliminate #DIV/0!
    - IFERROR(E2:E9,0)>0 eliminate values =< 0
    Last edited by sandy666; 06-09-2016 at 06:30 PM.

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

    Re: GEOMEAN with Negative Numbers Ignoring Zeroes

    How about just ...

    B
    C
    D
    E
    F
    2
    Weight
    Current
    Prior
    Daily Rtn
    3
    0.50
    $ 10.00
    $ 15.00
    4
    2.00
    $ 9.00
    $ 7.00
    5
    1.00
    $ 4.00
    $ 5.00
    6
    0.50
    $ 0.00
    $ 0.00
    7
    1.25
    $ 3.00
    $ 2.00
    8
    2.50
    $ 7.00
    $ 6.00
    9
    1.00
    $ 3.00
    $ 6.00
    10
    1.75
    $ 4.00
    $ 6.00
    11
    12
    GEOMEAN =>
    -3.7%
    E12: =SUMPRODUCT(B3:B10, C3:C10) / SUMPRODUCT(B3:B10, D3:D10) - 1
    Entia non sunt multiplicanda sine necessitate

+ 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] STDEV ignoring blank cells aswell as transforming negative numbers to positive.
    By Per_s in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-08-2016, 11:58 AM
  2. VBA - Finding the average of a range and ignoring zeroes - syntax question
    By lordterrin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-02-2014, 12:56 PM
  3. Random Series of Numbers - Each series to have same GEOMEAN
    By nbezza in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-11-2013, 12:51 AM
  4. [SOLVED] How to AVERAGEIF with positive, negative and zeroes?
    By innatedoc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-20-2012, 08:27 PM
  5. Ranking Values, ignoring zeroes
    By yusunghee in forum Excel General
    Replies: 1
    Last Post: 05-11-2011, 04:53 PM
  6. Ignoring Negative Values
    By solomon_monkey in forum Excel General
    Replies: 3
    Last Post: 06-21-2005, 12:05 PM
  7. [SOLVED] geomean ignoring blank cells and chars
    By Stan Altshuller in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-12-2005, 06:06 PM

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