Hi John,
I checked the image of your formula against the one in my table, and found them to be identical.
Then I glanced at the Town column, and the light went on.
I suspect that in your region you would write a number including a decimal fraction part like this:
4,25
as opposed to the style used here:
4.25
If that's the case, this revised version should work in your table:
current: OFFSET(A$1,G2,1)&" "&OFFSET(A$1,G2,2)&", "&OFFSET(A$1,G2,3)&" "&OFFSET(A$1,G2,4)&", "&OFFSET(A$1,G2,5)
revised: OFFSET(A$1;G2;1)&" “&OFFSET(A$1;G2;2)&", “&OFFSET(A$1;G2;3)&" “&OFFSET(A$1;G2;4)&", "&OFFSET(A$1;G2;5)
In regions where the comma is used as the decimal separator, formulas use the semi colon as the list separator.
Regarding sorting:
Numbers always sorts the rows, and bases the sort on the values in a specified column.
The full line data will be listed in column G in the order set by the placing of the numbers in column G. Placing 13 in row 2 and 4 in row 6 would reverse the positions of Mary and Eric in the list in column H.
To sort only the rows containing the selected subjects, you';; need to either keep the table sorted in the order you want (likely by column B—surnames, and use a formula ( =ROW()-1) to number the rows in column A. Data retrieved in column H will then be automatically retrieved in order, sorted by surname.
" would it be possible to retain all the columns somehow?"
To extract the data into separate columns requires only having one column for each piece of the data you want to extract, then placing the part of the formula dealing with that piece into each column.
Put the first two OFFSETs into one column, joined by &" "& to get the first and last names in that column.
This will give you the full name for use on a DYMO label or in the greeting line of a letter.
Placed on a separate table, the cell references in the formulas will have to include the name of the data table.Numbers will automatically add these if you place the formula(s) as specified in columns of the existing table, then, after they are working as needed, selecting columns G and H (and any added when splitting the formula to place parts of the required data into separate columns), and pulling those columns off the existing table to form a new table.
Steps to do that:
- Select the tables to form the new table by clicking on the first column (G) then dragging right to expand the selection to include all columns moving to the new table.
- Release the mouse button, ten click and hold on one if the selected column reference tabs.
- After a slight pause, the selected columns will 'rise' from the canvas, and may be dragged right.
- When they have been dragged more than a column width from the rest of the original table, you'll see a slight jerk as they are separated. Release the mouse button to drop the new table onto the canvas, then click the bullseye off the top left of the new table and drag it to where you want it.
Using mail merge to get this date onto an envelope or into a Microsoft Word letter will require transferring the data to an MS Excel file, using copy and paste,
Regards,
Barry