Formula Help!!! median

Fanwood

Board Regular
Joined
Jan 29, 2014
Messages
60
look in cell G[row] at that number. See if that number is greater than or less than the median of all items in G:G *.8 with the same county in C:C.
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Well, it's too telegraphic for me.

I'd need
- a brief explanation of what this is about
- the logic (what you posted a tad more elaborated)
- a sample of data, input and output expected
- what type of solution you need, vba or formula
- the excel version you have

I believe you'd get more answers with a more complete post.

It may be enough, however, for some other members and I hope, of course, that you get a quick solution.
 
Upvote 0
Well, it's too telegraphic for me.

I'd need
- a brief explanation of what this is about
- the logic (what you posted a tad more elaborated)
- a sample of data, input and output expected
- what type of solution you need, vba or formula
- the excel version you have

I believe you'd get more answers with a more complete post.

It may be enough, however, for some other members and I hope, of course, that you get a quick solution.


I was able to work the formula out myself.
{=IF(MEDIAN(IF(C:C=C26,G:G))*0.8>G26,"Less Than","Greater than")}
 
Upvote 0
I'm glad your problem is solved.

Remark: it's not a good idea to use formulas that refer to whole columns. If you have many of them you'll soon remark how sluggish the workbook gets.

It's always better, if possible, to use specific ranges. For ex., if you think that you'll always have less than 1000 rows:

=IF(MEDIAN(IF(C1:C1000=C26,G1:G1000))*0.8>G26,"Less Than","Greater than")

If you just have a couple of such formulas, however, it shouldn't make difference.
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top