Appsheet - special character inside columns' titles but not true - google-appsheet

I'm receiving the following message:
Table name 'IINR(finishes)' uses special characters that are used in expressions and formulas. Consider renaming the table to remove these special characters.
But I checked and there are no special characters inside any title.
I also tried to create a new app using a different GSheets, in which a copy paste the titles of the columns and in this case, no warning message.
What can it be the reason?
Thanks!

In the end (I didn't read well the message) the problem was on the title of the spreadsheet (table) and not at column level..

Related

Scraping bylines from web page using ImportXML in Google Sheets

Looking to extract the author name from articles. Currrently using =IMPORTXML(G2,"//*[#class='author-details']")
When I do this, it creates 4 cells underneath which contain the word 'By', which I can't get rid of.
Very new to code - what am I doing wrong?
Attached example: https://docs.google.com/spreadsheets/d/1Mi1D5G1-_gNsQwVQ6I_ealDqcWixKA2p-hFqJpjlGt4/edit?usp=sharing
You can use:
=index(IMPORTXML(G2,"//*[#class='author-details']"),1,2)
This displays only the first row of the second column of what is returned. The information You are after.
Edit:
Additionally, since you highlighted that you want author name. If all the names are in that format "By FIRST LAST #TwitterHandle Affiliation" then you can use this to get just the author's name:
=trim(split(right(index(IMPORTXML(G2,"//*[#class='author-details']"),1,2),len(index(IMPORTXML(G2,"//*[#class='author-details']"),1,2))-3),"#",true,true))
Will likely look like voodoo but paste it in, it works. It removes the first 3 characters ("By "), splits the text at the "#" symbol, and then keeps only the text on the left side of it, the name.

How to choose the delimiter for splitting text into columns?

I have a DSV file and each row corresponds to one instance/piece of text as normal. Specifically, I have my own delimiter ### instead of the default (i.e., comma ,). However, when I open the DSV by using Google Sheets, these tools always display the DSV file by splitting automatically by default delimiter. It causes a mess because some columns may contain several commas.
How can I disable the trigger that splits the text into columns automatically and only use my own delimiter?
My DSV is like below:
a###b###c###d,e,f,g###h,",",j
h###i,j,k###l###m###n,"[o,p]"
q,r###s###c,u###v,w###x,y,'z,'
As suggested, I have tried to copy the content directly to a newly created Google sheet, however, I got the error as below due to the size of the content.
There was a problem
Your input contains more than the maximum of 50000 characters in a single cell.
With File > Import > Upload > Drag one can choose one's delimiter (though not, as far as I am aware, as in Excel the option to "Treat consecutive delimiters as one"):
So, depending upon your specific file, you may find the result this way is what you want - provided you are prepared to delete a couple of blank columns for each set of ### (if not choosing a single character rather than ### in the first place).
if you import your CSV data into Google Sheets via copy-paste you can press this combo right after importing it:
LEFT ALT + D
E
ARROW UP
ARROW UP
ENTER
and type in your ###

How to transpose rows into columns of contact details without mixing them up? (Google Sheets)

I have a data set of contact details where the emails and their names are scattered in rows, I would like to list them in 2 nice columns. I've tried using "paste special" and use this code below, but none of them worked.
This is how it looks like:
I've tried this code, but it only applies to one row, whereas I want to apply it to all rows and columns.
=transpose(A2:R2)
and
=transpose (A2:R300)
Both don't work. I hope somebody can help me with this, I'd really appreciate it. Thanks in advance!
It looks that you are using the wrong terms so you are using the wrong functions.
Apparently you have a cell with data separated by spaces and break lines and you want to have each email and name on it's own cell, having emails on one column and names on the next column.
One way to achieve that, first replace the separating spaces by using a character like | and the break lines by another different character like $.
Note: Some people use Unicode characters that are very unlikely to appear like ♦, ❤.
To do the above for break lines you could use FIND and REPLACE (Ctrl + H) or function formulas like REGEXREPLACE, SUBSTITUTE, and maybe others. As there are spaces used both as word separators and values separators, FIND and REPLACE can't be used easily. For a single cell, maybe the easier way is to insert the name/email separator manually.
Then separate the cell data. To do this you could use a formula function like SPLIT or Data > Separate values into columns.
Another way is by using Google Apps Script and JavaScript string handling methods but basically the algorithm is the same.
Related
How to split this complex string into 3 columns and 50 rows using Google sheet script
Google Apps Script: Create new rows for cells that contain commas
Google Sheets: string to columns and rows

How to stop google spreadsheet from splitting data automatically?

I am trying to split the below data into responses for each question.
{"question_2":{"1":"5","2":"0","3":"7","4":"8","5":"9","other_comment":""},"question_3":{"1":"0","2":"11","3":"0","4":"0","5":"0","other_comment":""},"question_4":{"sub_question":{"15":"2","16":"3","17":"2"}},"question_5":{"option":"3"},"question_6":{"option":"3"}}
The moment I use Data-->Split text to columns, Spreadsheet automatically splits the data using "comma" as the separator.
But I want to use a custom separator ,"q but I am unable to apply this custom separator after the data is already split.
When you select Data|Split text into columns you should see a drop-down saying Separator:Detect automatically. If you use the up/down arrows to change Detect Automatically to Custom, you can put in any character or combination of characters you choose.
You can also use SPLIT as mentioned by I'-'I but you have to remember to put the third parameter as FALSE to specify the whole string "q and not the individual characters " and q. Use "" to get a " within a string.
=split(A1,"""q",false)

Getting inconsistent tab delimiter width when pasting from Google docs spreadsheet

I am trying to create a gadget for some people, where all they need to do is really copy the contents of a spreadsheet, then paste it in a textbox, which will in turn create a nice table for them to embed in their articles.
I managed to do everything, however Google docs, when copying and pasting data in a text editor, seems to get the size (width) of the tab delimiter wrong between values. So, instead of getting 4 spaces that is the default, i am getting 2 in some cases and so far i managed to find out that the reason is that some of the cells contain strings with spaces. For some reason, this seems to confuse Google docs, thus supplying wrong spacings, which in turn, ruin my script.
I know i can use comma separated values here, but the issue is we are trying to give people the ability to simply copy and paste. Look at the example output below:
School Name Location Type No. eligible pupils
In this example, School Name is one cell, Location is another, Type is another and No. eligible pupils is the last one. It is clear that the first cell does not have the necessary space on the right.
Any ideas? I thought about converting all blank spaces that take more than 1 space to commas, but this might lead to a situation users might actually use 2... which would not work again.
For some reason, it was the code editor that was actually not showing the tabs right. Using a regexp and another code editor (vim) showed that all of them were actual tabs. :)

Resources