Tablesorter: How to exclude row when use widget filter - tablesorter

With tablesorter : http://mottie.github.io/tablesorter/docs/index.html#Introduction
And with this example : http://jsfiddle.net/w1e2x6cz/1/
How i can exclude all value who are in the row of the first body in the select filter ?
For example my first select filter contains this values:
aaa
bbb
ccc
Total
And i want only :
aaa
bbb
ccc
Thanks all.

To have the "Total" row ignored, you'll need to modify the "tablesorter-no-sort" class name of that info-only tbody in the options:
cssInfoBlock : "tablesorter-no-sort"
Here is a working demo.

Related

In Google Sheets, how to transpose multiple column headers and data into a single column of multiple rows (I Column to 1 row each)

My question is very close to that other one:
In Google Sheets, how to transpose multiple column headers and data into a single column of multiple row labels and data
My Input (minimal example of 3 columns, but in reality 100's of columns):
GROUP 1
GROUP 2
GROUP 3
aa
b
cc
aaa
bb
cc
aaaaa
bbb
ccc
aa
bbb
ccc
a
bbb
ccc
bbb
bbbb
Needed Output:
GROUP 1
aa
aaa
aaaaa
aa
a
GROUP 2
b
bb
bbb
bbb
bbb
bbb
GROUP 3
cc
cc
ccc
ccc
ccc
The columns need to be with dynamic ending because their lengths are irregular.
So far I've only managed to use the usual transpose method by manually transposing each columns as so:
IN COLUMN F1:F:
=transpose(A1:A)
=transpose(B1:B)
=transpose(C1:C)
etc.
That is an error prone and very manual process for hundreds of columns.
What way would be a more efficent process to modify #player0 's formula in linked post to suit the above use?
Your help is appreciated very much.
In order to provide a proper response to the question, I'm writing this answer as a community wiki, since the issue was resolved from the comments section.
=TRANSPOSE(A:C)
References
https://support.google.com/docs/answer/3094262

Look up value and return 1 row below

I've been trying to figure out how to find a value in a table and return the string below that.
Most solutions I've tried with index don't work, and I don't think the solution is through vlookup.
So to give an example, I want the formula to look at today() and return the value 1 or 2 rows below corresponding to that date (which row is dependent on the AM/PM, but I'm pretty sure I can set that up with Ifs)
Let's say it's 26-08, 1PM then the formula should return 'Eee' as value in the following table:
25-08-2022 26-08-2022 27-08-2022
Aaa Bbb Ccc
Ddd Eee Fff
28-08-2022 29-08-2022 30-08-2022
Ggg Hhh Iii
Jjj Kkk Lll
Give a try on below formula-
=INDEX(A1:C6, MAX(ROW(A1:C6)*(A1:C6=E1))+IF(F1="AM",1,2),MAX(COLUMN(A1:C6)*(A1:C6=E1)))

Validate text from list using multiple sheets

I am using google sheets to do the following.
Sheet 1 : 1 column for each person who needs access to the file. Each column's cell has a dropdown menu so people can select what items they have.
Sheet 2 : A list of every item in column A, columns B through G are the names of the people.
What I am trying to do is to have on sheet 2, the words "YES" or "NO" appear under each person's name if they have selected the item whatever the order.
So if Person 1 picks in the dropdown of sheet 1 that they have Item 1, Item 3, Item 2 in this order, I want sheet 2 to show the "YES" or "NO" mention. I don't want the order of the items in the list to be an issue.
So far, I have tried these 2 methods :
=IF('Sheet1'!A2:A25=A2;"YES";"NO")
=IF(RegExMatch('Sheet1'!A2:A25;A2);"YES";"NO")
These do not work as the items must be selected in the same order as they appear in the second sheet. Is there another function that can validate a list in any order and apply the appropriate value?
Thanks ahead!
Jason
Edit : https://docs.google.com/spreadsheets/d/1cNn7G9x9o56d_9qM18s3AULkhpfOV5Y-b55vycCUyLY/edit?usp=sharing
Sheet2!B2:
=ARRAYFORMULA(IF(ISERROR(MATCH($A$2:$A$100;Sheet1!A2:A25;0));false;true))
MATCH Sheet1A column against Sheet2A column
IF MATCH returns error, FALSE, else TRUE.

Google Spreadsheet: Split String and return last N elements

I have string ( "-" ) delimited data (alphanumeric, variable length) in a single column which has the format...
Column A
"aaa-bbb-ccc"
"ddd-bbb-eee"
"aaa-fff-ggg"
I have been able to use array_constrain() to return partial data elsewhere but this is N elements from the beginning of the array to the end of the array so I could have...
aaa (num_cols = 1)
aaa-bbb (num_cols = 2)
aaa-bbb-ccc (num_cols = 3)
I am looking to get the last N elements from the split data so...
bbb-ccc OR
ccc
num_cols only goes from the beginning of the array to the back of the array so that's no good for my scenario.
This answer to a similar question suggests using regexextract() to retrieve the last value which if my RegEx Foo was stronger then perhaps I could make that work with a little nudge in the right direction.
I know that index() can be used but that only returns one element at a time from the split data so that gets messy / inefficient.
So the question is does anybody know how to return the last N elements from an array? Ordinary sorting wouldn't work but reversing the array could work.
There's no reverse function. I see two ways:
write small function is sctipt: reverse array
use ugly huge formula
Huge formula sample
=JOIN("-",QUERY({ArrayFormula(ROW(INDIRECT("A1:A"&COUNTA(SPLIT(A1,"-"))))),TRANSPOSE(SPLIT(A1,"-"))},"select Col2 order by Col1 desc limit 2 "))
change limit 2 in the end of the formula to get N last elements.
Script sample
Try this:
function reverseLine(line) {
return line[0].reverse();
}
Use as custom formula: =reverseLine(B1:D1)
for line: aaa bbb ccc returns:
ccc
bbb
aaa
Provided the variable length is exclusively from the number of sets of the format -aaa appended to the first three characters then those three characters and as many further sets as desired may be stripped off the front with:
=replace(A1,1,find("-",A1)*B1,"")
where A1 contains the likes of aaa-bbb-ccc and B1 the number of sets additional to the first three characters to be removed, plus one.

Excel Advanced Filter string equal to AND string Not equal to

A column contains strings "abcdef" and "cdef".
A row contains either abcdef or cdef but not both.
What would the Advance filter criteria be for filtering out rows with "cdef" but not "abcdef"
Filter drop menu on cell-> Text filter -> equals "cdef"

Resources