Hello,
I've been looking for an answer for the following problem but have been unable to find a similar question out there... hopefully someone can help me understand what is going on here. I am trying to determine the median value of a set of numbers but need to apply some criteria. My formula is as follows:
={MEDIAN(IF(OR(A:A="FUN",A:A="HAPPY"),B:B))}
Column A can have 3 types of entries: FUN, HAPPY, BORING
Column B just has plain old numbers in it but for testing purposes I have given entries for BORING a very large set of numbers so I know if they are being included in the final calculation or not.
[TABLE="width: 500"]
<tbody>[TR]
[TD]FUN[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]HAPPY[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]HAPPY[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]FUN[/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD]BORING[/TD]
[TD]10000[/TD]
[/TR]
[TR]
[TD]BORING[/TD]
[TD]10000[/TD]
[/TR]
[TR]
[TD]FUN[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]BORING[/TD]
[TD]10000[/TD]
[/TR]
[TR]
[TD]BORING[/TD]
[TD]10000[/TD]
[/TR]
[TR]
[TD]BORING[/TD]
[TD]10000[/TD]
[/TR]
</tbody>[/TABLE]
I'm finding that when I use this formula I am getting a result which is including entries for BORING - i.e. result is 5015. If I remove entries for BORING then the result is 10.
I'd appreciate it if you can tell me why this formula doesn't just pick up values for FUN and HAPPY but also picks up BORING. Additionally... if you can set me straight on a better formula to use I'd be quite pleased.
Many thanks
I've been looking for an answer for the following problem but have been unable to find a similar question out there... hopefully someone can help me understand what is going on here. I am trying to determine the median value of a set of numbers but need to apply some criteria. My formula is as follows:
={MEDIAN(IF(OR(A:A="FUN",A:A="HAPPY"),B:B))}
Column A can have 3 types of entries: FUN, HAPPY, BORING
Column B just has plain old numbers in it but for testing purposes I have given entries for BORING a very large set of numbers so I know if they are being included in the final calculation or not.
[TABLE="width: 500"]
<tbody>[TR]
[TD]FUN[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]HAPPY[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]HAPPY[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]FUN[/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD]BORING[/TD]
[TD]10000[/TD]
[/TR]
[TR]
[TD]BORING[/TD]
[TD]10000[/TD]
[/TR]
[TR]
[TD]FUN[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]BORING[/TD]
[TD]10000[/TD]
[/TR]
[TR]
[TD]BORING[/TD]
[TD]10000[/TD]
[/TR]
[TR]
[TD]BORING[/TD]
[TD]10000[/TD]
[/TR]
</tbody>[/TABLE]
I'm finding that when I use this formula I am getting a result which is including entries for BORING - i.e. result is 5015. If I remove entries for BORING then the result is 10.
I'd appreciate it if you can tell me why this formula doesn't just pick up values for FUN and HAPPY but also picks up BORING. Additionally... if you can set me straight on a better formula to use I'd be quite pleased.
Many thanks