Hi all!
Long time lurker...first time poster.
I'm not an excel expert, but certainly not a noobie.
So this is very, very frustrating.
I have a very large dataset -- around 25K rows (probably more). I have a bunch of fields including STATE, AGE, GENDER, and RATING AREA. In addition, I have a field with insurance premiums.
What I want to do is take the average of the 5 lowest insurance premiums for every state, age, gender, and rating area. I have another table where I'm trying to plug this in.
The formula that I've tried (and failed at using) is:
I just get a message from excel saying that there's an error in my formula...
Table 2 is the table with all of the information, and I'm plugging this formula into a table that has the proper qualifiers (Age, Gender, Rating Area, State).
Help???
Long time lurker...first time poster.
I'm not an excel expert, but certainly not a noobie.
So this is very, very frustrating.
I have a very large dataset -- around 25K rows (probably more). I have a bunch of fields including STATE, AGE, GENDER, and RATING AREA. In addition, I have a field with insurance premiums.
What I want to do is take the average of the 5 lowest insurance premiums for every state, age, gender, and rating area. I have another table where I'm trying to plug this in.
The formula that I've tried (and failed at using) is:
Code:
=AVERAGEIF(small(Table2[Premiums],{1,2,3,4,5}),Table2[State],[@State]...
I just get a message from excel saying that there's an error in my formula...
Table 2 is the table with all of the information, and I'm plugging this formula into a table that has the proper qualifiers (Age, Gender, Rating Area, State).
Help???