Multiple dynamic lists in columns - move data to same row and count

john69

New Member
Joined
Dec 19, 2010
Messages
11
Hello all, I have dynamic data (may have only two columns or may have 10 columns and number of rows will most always be different) where I some of the data is the same and some not. What I am trying to accomplish is move the like codes to the same row and get a total count of each. I have a sample input (source) and what I want it to look like (SORTED & ALIGNED). Hope this makes sense.
Thank you in advance for your any help.



SOURCESORTED & ALIGNED
LIST 1LIST 2LIST 3LIST 1LIST 2LIST 3COUNT
ATH001AST002AST002 AST002AST0022
ATH002ATH001ATH001ATH001ATH001ATH0013
ATH003ATH002ATH002ATH002ATH002ATH0023
AWC811AWC811AWC811ATH003 1
CGI020BYH001CGI020AWC811AWC811AWC8113
CLA001CGI020CLA001 BYH001 1
CRL004CRL002CRL002CGI020CGI020CGI0203
CWC006CRL003CRL003CLA001 CLA0012
EAS001CWC006CWC006 CRL002CRL0022
EAS002FLE001FLE001 CRL003CRL0032
FLE001CRL004 1
CWC006CWC006CWC0063
EAS001 1
EAS002 1
FLE001FLE001FLE0013

<colgroup><col><col><col><col span="5"></colgroup><tbody>
</tbody>
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Are you mainly trying to determine the count of each "code"? If yes, COUNTIF should get you that quick and easy. There are lots of resources for it on the internet.
 
Upvote 0
Hi duggie33,

Yes and no, I also need to know which list they are in which is why I was doing it this way. I am using this (sorted) list to print and sort some documentation into any number of piles according to how many columns there are.
 
Upvote 0
Hi John,

The sorting and aligning is the part I do not see a straightforward way to achieve. VBA is probably your best bet on that.

I propose you have your source lists; in your example, three of them. Then you have a second table with first column being your list of unique “codes”, second/third/fourth being the count of each “code” in each individual list, and a fifth column which sums the second/third/fourth. It would summarize the count of each code in each list and the total for all lists.

Dynamic ranges for each list in your source data, a listing of unique codes, countif forumlas, done. Sounds easy right?

Doug
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top