vba - Compare Values in Excel in all sheets that have the same title/name -
hello fellow netizens of programming community!
need couple of excel worksheets i'll working forth day in , out.
here's info of have on hand, , want do..
i have several worksheets (10 of them) of similar (not 100% identical) tables ..
one worksheet may (x, y , z other unimportant variables)
name - score - x - y - z jon - 50 - x - y - z sam - 50 - x - y - z pad - 50 - x - y - z fed - 50 - x - y - z mum - 50 - x - y - z
and worksheet may
name - score - x - y - z pad - 50 - x - y - z mum - 50 - x - y - z fed - 50 - x - y - z jon - 50 - x - y - z sam - 50 - x - y - z
simply put, there names such 'jon' , relevant scores can occur across worksheets, or names such 'ped' can appear once in 1 worksheet.
i compare sheets @ same time, finding out highest score jon, sam, pad, fed, mum across sheets , have these information presented in new sheet itself.
for e.g.
the new sheet should present data
name - highest score jon - 39 sam - 22 pad - 42 mum - 22
i hope whatever i'm trying not confusing anyone! if help, ill appreciate it!
the solution available via pivot table formed across multiple sheets. steps:
- assuming files open, , in 1 of sheets.
- alt+d+p (opens dialog box)
- select "multiple consolidation ranges" , "pivottable" >>next
- select "create single page field me" >>next
- here, select in range box , add, table areas 1 one. have 1 addition per sheet of yours. should have 10 ranges getting inserted here. >>finish
you pivot table values field have "count of score" (it this, else sum of score, etc. here's how change max) click on whatever in values field >> value field settings >> max >> ok.
(if want choose min/average/count/product/stddev, place make change)
as caveat, check fields in filters/columns/rows want. have run sample pivot on 2 tables have provided, screenshot attached, how table should like.
Comments
Post a Comment