Finding largest 2 values in a range using excel formula -
i have data below
classifiaction hours home 157.40 home 157.39 mens apparel 157.39 mens apparel 157.39 sunglasses 157.39 sports 157.33 biss 157.33 mens apparel ia 157.32 mens apparel ia 157.32 kitchen 157.32 beauty 157.32 home 157.32 home 157.31 mens apparel 157.31 mens apparel 157.31 sunglasses 157.31 sports 157.29 biss 157.29 mens apparel ia 57.29 mens apparel ia 157.29 kitchen 157.28 beauty 157.28
from looking solution find largest 2 hours under each category.
like below
beauty 157.32 '1st largest value in under beauty beauty 157.28 '2nd largest value in under beauty mens apparel 157.39 '1st largest value in under mens apparel mens apparel 157.39 '2nd largest value in under mens apparel
using large function.i'm able find largest 2 hours in whole range not each category(classification).
this work if numbers non-negative:
=large(($a$2:$a$23="beauty")*$b$2:$b$23,1)
i'm assuming data starts in a1 , formula should entered array formula (press ctrl+shift+enter instead of enter , formula should appear in curly braces {=large...}
.
what copy column somewhere, remove duplicates , put 1 in next column them, copy whole thing underneath , put 2 instead of 1 , sort if afterwards. way can build formulas based on table
beauty 1 beauty 2 biss 1 biss 2 home 1 home 2 kitchen 1 kitchen 2 mens apparel 1 mens apparel 2 mens apparel ia 1 mens apparel ia 2 sports 1 sports 2 sunglasses 1 sunglasses 2
Comments
Post a Comment