We're aware that some users are experiencing technical issues which the team are working to resolve. See the Community Noticeboard for more info. Thank you for your patience.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Excel Formula Explanation Required

Options
Hi,


I'm looking at a spreadsheet that someone else has setup, the following formula exists within it, can someone advise exactly what it means please?


=MEDIAN(IF(peer=$B3,IF(tcomp>0, tcomp)))

Comments

  • Annie1960
    Annie1960 Posts: 3,009 Forumite
    Tenth Anniversary 1,000 Posts Name Dropper Combo Breaker
    It may help if you could give some context. Is this for a t-test?
  • choyaa
    choyaa Posts: 226 Forumite
    Annie1960 wrote: »
    It may help if you could give some context. Is this for a t-test?

    It is for a sample test, the only context I can give is that it's a sample salary spreadsheet with cell B3 relating to the department of the employee.
  • droopsnoot
    droopsnoot Posts: 1,868 Forumite
    Part of the Furniture 1,000 Posts Name Dropper
    My guess is that 'peer' and 'tcomp' are named ranges in the spreadsheet, so if 'peer' is equal to the content of $b3, and tcomp is greater than zero, then it returns the median of the range of values in tcomp, otherwise it returns zero.


    I'm not exactly sure how a named range 'peer' could equal a single cell value, but I'm not an Excel expert.
  • Annie1960
    Annie1960 Posts: 3,009 Forumite
    Tenth Anniversary 1,000 Posts Name Dropper Combo Breaker
    Do you know what tcomp refers to on the spreadsheet?
  • Le_Kirk
    Le_Kirk Posts: 24,513 Forumite
    Part of the Furniture 10,000 Posts Photogenic Name Dropper
    If you click on "Formula" on the menu tab and then on Name Manager, it should show you a list of defined names and/or ranges, hopefully amongst which you will find "peer" and "tcomp"
  • jackomdj
    jackomdj Posts: 3,073 Forumite
    Part of the Furniture 1,000 Posts
    Agree with the named ranges, only thing to add tcomp range could relate to some kind of tax computation within the spreadsheet?
  • jackomdj
    jackomdj Posts: 3,073 Forumite
    Part of the Furniture 1,000 Posts
    droopsnoot wrote: »
    My guess is that 'peer' and 'tcomp' are named ranges in the spreadsheet, so if 'peer' is equal to the content of $b3, and tcomp is greater than zero, then it returns the median of the range of values in tcomp, otherwise it returns zero.


    I'm not exactly sure how a named range 'peer' could equal a single cell value, but I'm not an Excel expert.

    that single cell could itself be a calculation
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 350.9K Banking & Borrowing
  • 253.1K Reduce Debt & Boost Income
  • 453.5K Spending & Discounts
  • 243.9K Work, Benefits & Business
  • 598.7K Mortgages, Homes & Bills
  • 176.9K Life & Family
  • 257.1K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.1K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.