indexing - Excel index or vlookup? -


i'm trying report shows top 10 senders of emails each month.

on worksheet 1, have in column date jan-2015, feb-2015 etc, in column b list of email addresses, , in column c total number sent users in each month. on worksheet 2, i'd results show have date ddl, jan-2015, feb-2015 select , on.

what (if it's possible) when select date on worksheet 2, pull top 10 highest amount of emails sent , corresponding user , when change date i'd information update.

an example of spreadsheet this. 1 i'm working on has alot more information should give general idea.

date    sender  amount sent jan-15  john@email.com  12 jan-15  david@email.com 23 jan-15  claire@email.com    45 jan-15  paul@email.com  56 jan-15  ross@email.com  78 feb-15  dayna@email.com 89 feb-15  ben@email.com   65 feb-15  gary@email.com  32 feb-15  jim@email.com   15 mar-15  james@email.com 48 mar-15  luke@email.com  78 mar-15  rebecca@email.com   96 

then on worksheet 2, a1 ddl select date ranges.

any appreciated i've been banging head against desk trying figure 1 out.

thanks in advance dave

edit: i've been asked add additional column time spent looks this

http://imageshack.com/a/img537/1409/ctwrcx.png

when use formula

=large(if($a$5:$a$9=$h$3,$d$5:$d$9),f5)

it puts them in size order doesnt reflect sender. i've had ago @ index/match couldn't work.

can advise im doing wrong?

many dave

with data layout this:

enter image description here

you can use following array formula (confirmed ctrl+shift+enter) in f3 , drag down:

=iferror(index($b$2:$b$13,match($f$1&large(if($a$2:$a$13=$f$1,$c$2:$c$13+row($c$2:$c$13)/10^7),e3),$a$2:$a$13&($c$2:$c$13+row($c$2:$c$13)/10^7),0)),"") 

how work:

large(if($a$2:$a$13=$f$1,$c$2:$c$13+row($c$2:$c$13)/10^7),e3) 

locates e3-th largest amount of mails, , if selects rows parameter f1 date. row($c$2:$c$13)/10^7 decimal part used order ties.

index/match combination performs 2-column (date&amount+row decimal part) lookup on input table.

iferror returns empty string, if there not enough entries parameter date.

edit: (to answer question comment): add amount, use large formula:

=large(if($a$2:$a$13=$f$1,$c$2:$c$13),e3) 

Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -