Creating a list from random cells

mikewalker

New Member
Joined
Nov 16, 2005
Messages
7
I want to be able to create a series of lists from a range of cells in excel. For example, the cells in rows 1 to 6, colums A to F may each contain a different surname. I want then to produce a list with all names beginning with 'A', another list with those beginning 'B' and another with those starting 'C'. These lists could be further down in the same sheet or another sheet of the same workbook.

Thanks for any ideas

Mike
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
The simple non-macro approach would be to combine columns A - F into a single column and then sort it. Are you looking to automate this?

P.S. Welcome to the board!
 
Upvote 0
Turn on the macro recorder (Tools | Macro > Record new macro...), do whatever it is you want to do by hand, turn off the recorder, and switch to the VBE. In most cases, XL will give you the necessary code, which you can then customize further.
 
Upvote 0
Thanks, but I don't think that will work. There will be a different number of As, Bs, Cs each time the macro is run, and the challenge is to add each successive item to the bottom of the existing list, however long it is already.

Mike
 
Upvote 0
If it will always be the same range (A1:F6), then Tushar is correct in that it can be accomplished using the macro recorder.
 
Upvote 0
Sorry, I still can't see how. Although the range will always be the same, the names will be different on each occasion. The macro will have to search the range until it finds a name beginning with 'A' and put it in the 'A' list; similarly for B, C, etc. Using the macro recorder, how can it search the range until it finds an 'A', without using some formulae?

Thanks,

Mike
 
Upvote 0

Forum statistics

Threads
1,207,012
Messages
6,076,147
Members
446,187
Latest member
LMill

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