You appear to be 'de-pivoting' a pivot table. Here's another approach based on John Walkenbach's very cool tip: Creating a database table from a summary table . I use this tip all the time, and it is a real time-saver.
If you are using Excel 2007 or higher, I strongly suggest you add the Pivot table button to your Quick Access Toolbar. This will permit you to access the "old" Excel 2003 pivot table Wizard. Being able to use the "old" Wizard is very important! Another way to bring up the old pivot table wizard is to type "ALT+D" , then "P".
Now, to your specific issue. Use the "Text-to-columns" feature of the Data menu to split your 2nd data column at the commas. You must also add some column headings. (I have rebuilt your sample data to show unique email addresses for a bit more clarity):
Click on the Pivot table button that is on your Quick Access toolbar. It will bring up Step 1 of the old Wizard. Select the "Multiple consolidation ranges" button, and click "next":
On Step2a, select "I will create the page fields", and click "Next":
On Step2b, highlight your data range, then click the "add" button. This will copy your data range into the lower window of the form. Click "Next".
On step 3, you can choose "New Worksheet" or "Existing Worksheet" as long as the cell you select doesn't overlap your source data. Click "finish".
You should now have a pivot table, and the Pivot Table Field List will be displayed:
Un-check the "Row" box, and the "Column" box, so that you are left with a very small pivot table in a single cell (shown in cell A4 here):
Here's the really cool part: DOUBLE-CLICK that single cell. Your pivot table gets 'de-pivoted' onto a new sheet. You can now filter out the blanks in the third column, and you'll get the layout you want:
can you say me what are the names of the hotkeys, as my excel is not in english (is pt) – Totty.js – 2011-03-02T10:34:56.797
Ctrl-A = Select All, Ctrl-G = Goto, Alt-S = Special, k = Blanks – Hydaral – 2011-03-02T10:41:02.163
how to insert the new line character + a tab? i cant.i use notepad or eclipse ide – Totty.js – 2011-03-03T09:52:04.367
Now im stuck at the 3th part. "press the up arrow" i lose my selection – Totty.js – 2011-03-03T10:28:59.713
To do the search and replace, you will need a app that can use backslashed characters: \t for tab, \n for newline. I use Notepad2
– Hydaral – 2011-03-03T14:31:49.197Whoops, I got the steps around the wrong way, I have corrected it. – Hydaral – 2011-03-03T14:33:09.243