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:

  1. assuming files open, , in 1 of sheets.
  2. alt+d+p (opens dialog box)
  3. select "multiple consolidation ranges" , "pivottable" >>next
  4. select "create single page field me" >>next
  5. 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.

sample pivot screenshot on data provided


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -