extract text from links and insert in new sorted - windows

I have a single html file that's updated and generated frequently. It's a list sorted by names and linked with html that contain numbers in the end like ...#835C or #717.
I would like to extract just the number (no letter) and insert it into a new html file sorted by the number but still linked with the original.
Can you help me make this chore an easy one, thanks?
Here is the file I shortened from the current count of 850. The upper half is original and the lower is what I'd like extracted as an example.
http://selvan777.tripod.com/test/rin.htm
Thanks,
Selvan

Related

Deleting entire row if text is found at any column of the sequential file

Using SORT, is it possible to delete a record if a supplied text is in the row? For instance, in the following records any record that contains the text "record" would not be copied.
Suppose:
123456abcdrecord123
111recordaaaaaaaaaa
recordjjjjjj1111111
11111111111abcccccc
So my output should be:
11111111111abcccccc
Can anyone suggest the right control cards for SORT?
Try
OMIT COND=(1,19,SS,EQ,C'record')
Substring search for INCLUDE and OMIT

hierarchical sort of a tree csv file

I have a csv file of a folder/file tree that needs to be hierarchically, and alphabetically sorted. The commas can be thought of representing indents (tab or space). Conversely, because the csv is a comma separated file, the commas are field delimiters and consecutive commas are bounding blank fields. In terms of field position, the csv records the hierarchy with children of a parent in an nth+1 field position. The leading number of commas is therefore significant. In an outline format, they represent the folder hierarchy.
In sample_csv, "foldertop" contains 2 sub-folders. Each sub-folder contains 2 files. The files need to be sorted within their respective parent folders, and the sub-folders need to the sorted within their parent folder. The parent-child sets must be preserved in the end result.
$cat sample_csv
,foldertop,,,,,,,,,,,,,,libname,
,,folderB,,,,,,,,,,,,,libname,
,,,filethis,,,,,,,,,,,,libname,
,,,filethat,,,,,,,,,,,,libname,
,,folderA,,,,,,,,,,,,,libname,
,,,filetwo,,,,,,,,,,,,libname,
,,,fileone,,,,,,,,,,,,libname,
The sort function sorts the line order, but destroys the hierarchy.
$sort sample_csv
,,,fileone,,,,,,,,,,,,libname,
,,,filethat,,,,,,,,,,,,libname,
,,,filethis,,,,,,,,,,,,libname,
,,,filetwo,,,,,,,,,,,,libname,
,,folderA,,,,,,,,,,,,,libname,
,,folderB,,,,,,,,,,,,,libname,
,foldertop,,,,,,,,,,,,,,libname,
The needed hierarchical sort would preserve the hierarchy.
$hier_sort sample_csv
,foldertop,,,,,,,,,,,,,,libname,
,,folderA,,,,,,,,,,,,,libname,
,,,fileone,,,,,,,,,,,,libname,
,,,filetwo,,,,,,,,,,,,libname,
,,folderB,,,,,,,,,,,,,libname,
,,,filethat,,,,,,,,,,,,libname,
,,,filethis,,,,,,,,,,,,libname,
Is there any elegant way to do this?
BTW, the "libname" is another non-blank field on each line that exists in the csv, but is not relevant to the sorting or hierarchy, and can be ignored. I could have left that detail out for simplicity.

Google Sheets split words then sort Alphabetically, Using arrayformula

I have multiple rows, containing varying number of cells, and in each cell I have one or more words.
I'm looking for a way to go row by row:
Splitting the multiple words into single word parts (with space (" ") as the delimiter)
Sort the parts alphabetically
Put the parts back into multiple word cells
Remove duplicates in the row
Already the first, seemingly easy part, gave me issues. Even if I just tried to look at one row, the closest I got was the code below and that inserted strange " " for the one word cells, and also failed to sort
=iferror(arrayformula(transpose(sort(transpose(SPLIT(transpose(B3:3)," "))))),"")
1
I also tried to cut, sort and join the above output using the Query Header trick, but it refuses so sort anything but the first row
=arrayformula(trim(transpose(query(SORT(transpose(B12:D)),,COLUMNS(B12:D)))))
2
I haven't even attempted combining the two things together, considering my epic fails above.
The final input document will have lots more rows and columns, so I also need to make sure this works without any hard coding of row or column numbers.
Any and all help would be greatly appreciated.
I might have something for you. It's a little bit of an odd way to do it, but it could work I think.
Take a look at this sheet.
The original data is in the Original tab in cells B3:J, all the way down.
The Converter tab puts every thing in one column, then there is a "dragdown formula" that'd need to be dragged down a long ways depending on how big your data set it is. The good news is that you can just do it for thousands of rows beforehad and it will remain blank.
the New Data tab has just one formula and will repopulate your data the way it was, but with the resorted words.
Try messing with the data on the Original Data tab as much as you want. see if New Data reflects what you'd want.

Script for copying and pasting value only (GOOGLE SPREADSHEETS)

I have the following idea I can't implement:
There is a row with given table plate numbers (column B) and there is a second row with names which are copies by "vlookup" formula from another spreadsheet and in case there are no numbers found, the text should be filled in manually. I have added the formula which leaves cells blank:
=if(isna(index('spreadsheet1'!A4:A1002;match(B16;'spreadsheet1'!B4:B1002;0)));"";index('spreadsheet1'!A4:A1002;match(B16;'spreadsheet1'!B4:B1002;0)))
But sometimes the person assigned to a car plate changes and thus, after taking this value, I have to make as easy as I can to paste values only (the problem is the person who will add data may make mistakes) - I have created a button and want to assign a script which will check if the value in the column B has a name (not empty =""), then it should copy it and paste value only at the same place but all other cells which will be empty should stay with formulas inside them for further addition of a person to a new plate number or to be added manually.
Every new column will be filled in one by one and would like this script to work for constantly. Do you have any ideas or hints how I can implement it?

List of names and their numbers needed to be sorted .TXT file

I have a list of names (never over 100 names) with a value for each of them, either 3 or 4 digits.
john2E=1023
mary2E=1045
fred2E=968
And so on... They're formatted exactly like that in the .txt file. I have Python and Excel, also willing to download whatever I need.
What I want to do is sort all the names according to their values in a descending order so highest is on top. I've tried to use Excel by replacing the '2E=' with ',' so I can have the name,value then important the data so each are in separate columns but I still couldn't sort them any other way than A to Z.
Help is much appreciated, I did take my time to look around before posting this.
Replace the "2E=" with a tab character so that the data is displayed in excel in two columns. Then sort on the value column.

Resources