Rank(ifs) in Excel without Sumproduct | VBA vs Functions -
i have issue i'm trying rankifs , rank while have both return unique ranks instead of duplicates, , while not sorting data. i'll provide sample of i'm getting below. love solve in anyway possible, either vba or formula's. have many data sheets utilizing sumproducts , i'm trying avoid using function it's extremely taxing.
category | total value | rank | unique id lkj | 494.1 | 2 | lkj2 asdf | 679.6 | 1 | asdf1 lkj | 494.1 | 2 | lkj2 tdd | 110.5 | 2 | tdd2 tdd | 120.5 | 1 | tdd1 lkj | 800.5 | 1 | lkj1 b c d 1 category | total value | rank | unique id 2 fx | 494.1 | 2 | fx2 3 fx | 679.6 | 1 | fx1 4 fx | 494.1 | 2 | fx2 5 fx | 110.5 | 4 | fx4 so first example i'm trying rankifs. total value's column referencing raw data sheet. know can combine rank , total value 1 column, example sake thought easier explain i'm referring laying out.
the 2nd problem in 2nd table have issues total values same, , need have 1 of fx's rank 3. i'm doing going in , manually adjusting this, , lots of data sheets have ranks can imagine can taxing on time. not @ hard lot of manual work feel automated.
i can't life of me think of anyway resolve in either functions or vba. thing can think of have ranked , sorted example below.
b c d 1 category | total value | rank | unique id 2 fx | 679.6 | 1 | fx1 3 fx | 494.1 | 2 | fx2 4 fx | 494.1 | 2 | fx2 5 fx | 110.5 | 4 | fx4 then have formula or vba solution looks @ d2 , says if above cell equals d2 give me c1 + 1, otherwise give me c1. this'll matter once loops , get's d4 d3 equal d4. solution seems extremely archaic me, if there's no better way outside of i'll record macro.
any insights appreciated.
thanks,
if looking way unique values rank following function that:
=rank(b2,$b$2:$b$10)+countif($b$2:b2,b2)-1 since countif counts values in rows above first 1 finds given value have higher rank.
i don't understand saying rank if i'm not going try , answer that.
Comments
Post a Comment