Asumptions:
B2:B100 contains the 'Category'
G2:G100 contains the 'Calculation'
Column G is ranked from highest to lowest, based on category
Formula:
H2, copied down:
=SUMPRODUCT(--($B$2:$B$100=B2),--(G2<$G$2:$G$100))+1
Hope this helps!
In article <Ity5f.8748$6i4.2478@newsfe7-gui.ntli.net>,
"Lee Harris" <lee.harris4@virgin.net> wrote:
> Is there a way I can do effectively a "rankif" formula via some array
> trickery?
>
> I've set up Excel to import web data into a table,
>
> let's say COl A is the names, Col B is some kind of category, Cols C-F are
> data, and in Col G I do some calculation based on cols C-F.
>
> What I want to do is be able to automatically have a ranking but within a
> category, and have that in Col H, so the ranks 1,2,3,4 etc appear for each
> individual category, there will be different items in each category and the
> list might even be mixed up, ie not in category order
>
> does that make sense?
>
> thx in advance
Bookmarks