How can I display the HTML of one cell in the adjacent cell in Google Sheets? - google-sheets

A very simple example can be found here: https://docs.google.com/spreadsheets/d/10qUrVMFCdj_myc33uYPKxz_mDXzGhTLC-agh3P7s4XQ/edit#gid=0
Basically, I'd like to have column A feature all of the formatted text, and column B show the HTML version of the same text. Note: we really only need to know how to display whether something is bold.
Thanks to everyone who pitches in with their 2 cents! This community is remarkable.

Related

Auto fill range of cells with different values in Google Sheets

I am a self-taught beginner...
I made a dynamic drop down menu for a Chinese name database from G:S. Everything was working fine, but my problem is that there will be more names added into J:J in the future, and I want to find a way to quickly categorize them.
See A:E for example using English words
I can easily use "sort" and "left" formulas if it's in English.
But what if it's not.
I tried this formula to find the row numbers of the letters in E:E, but I don't know how to auto fill D:D with that information.
=ArrayFormula(IFERROR("E"&MATCH(A2:A,E:E,0)))
please help my poor brain.

Google Sheets: Bold part of a custom formula?

i have the following code:
="Health:"&char(10)&Info!D2
I want the "Health:" part to be Bold and Underlined and the Info it's pulling to be regular.
Similar to this:
Health:
38
.
But they are in a merged cell
See: https://docs.google.com/spreadsheets/d/e/2PACX-1vQMcUolEtiO_cwbg7BSLMUrGMcYN3srKnqSPDkUAkJpqntZ6giMx--uc-Mogqfmt0PZoPkXjXjnfsyF/pubhtml?gid=22908179&single=true
I want it to look similar to Size/Weight/etc... but i want them to be in a merged cell.
Unfortunately, at this time it's impossible to partially format anything that is a result of a formula.
There is a question (and answer) on Stack Exchange about this:
https://webapps.stackexchange.com/questions/87710/google-spreadsheet-partial-formatting-using-formula-in-cell
Answer stated:
Partial formatting of cell content is a recent addition to Google Sheets, and it not really integrated with the rest of spreadsheet logic. The only thing you can format in this way is a string entered directly into a cell, as some text here. Using any kind of formula, even the simplest ="some text here", is incompatible with partial formatting.

Parse current cell contents into URL based on the content of the same cell in Google Sheets

I would like to parse the content of a cell into a URL based on the entered content of the same cell in Google Sheets. I need the entire column to be processed.
Right now I can only accomplish this with two columns like this...
Column A has an ID number. Column B uses an array to parse a URL based on the ID number in Column A. The array formula I'm using in B2 is...
=ARRAYFORMULA(HYPERLINK("http://www.website.com/content/"&B3:B, ""&B3:B))
So A3 might have the ID number entry: 216856
And this creates the URL in B3: http://www.website.com/content/216856
But what I would really love, is a way to do this with one column. Perhaps through a script? Can anyone help me with this, please? Thank you!
If you highlight the column you want to transform then go to edit and choose the find and replace functionality or press command shift and H it will also pop up - then in the find field enter: ^ and in the replace field enter http://www.website.com/content/ and check the search using regular expressions checkbox.
Once you click replace all, it will add that part of the url to the beginning of all the cells thus turning it into a URL for you. Super easy and generally pretty quick depending on how many rows you have - I have done this with tens of thousands of rows and more.

Copy cell formatting using Lookup formulae google spreadsheet

I am making a spreadsheet for my D&D game in google spreadsheets, and am having some trouble with a vertical lookup. I have the workspace set up such that the first sheet is a search sheet, and the second is a database sheet.
In the search sheet, you type in the name of a spell, and then using VLOOKUP formulae it retrieves the data from the database. That does work. However, it does not copy over the formatting.
One of the pieces of information copied over is the spell description. Inside this description, which is fitted all in one cell, I sometimes use italics to emphasize certain parts. The italic formatting for those few words is not copied over with VLOOKUP. I was wondering if this was possible.
I tried to google this problem, and found somebody else asking this not too long ago on the google forums, but there were no replies there. Hoping to have a bit more luck here.
Example
In cell Sheet2!A1 is 'Name', in Sheet2!C1 is 'Description with italics'
In cell B2 on the active sheet is the searchbar (filled with 'Name')
I currently retrieve the information using:
=VLOOKUP($B$2,Sheet2!A1:C,3,false)
This would return
'Description with italics'
I would like to get
'Description with italics' returned instead.
Partial formatting of cell content was introduced recently and has very limited support in Google Sheets. About the only thing it is good for is formatting of headers and other informational elements, like
| Invoices sent | Invoices not sent |
To save yourself frustration, I suggest using partial formatting just for that, and not for data.
Formulas do not preserve partial formatting, even the simplest =A1 removes it.
Scripts do not support creation of copying of partial formatting, either.

Google sheets Auto Highlight

I have created a google sheet to schedule appointments for a clinic. I am looking to find a method which will highlight the cell or row based on a client name? This can be based off a script or separate google sheet.
For example, I want the following names to be highlighted if they are entered.
John Smith
Susan Johnson
Ted Jones
When someone enters their name in the Column (Name), then that row or cell will be highlighted with a color.
Any help would be greatly appreciated. Thank you
Go to Format -> conditional formatting and then set the rules you want for the range of cells where you want that highlighting rule to be applied. You can highlight if the cell is blank/ not blank, or if the cell contains specific text that you will need to stipulate.
You'll also want to be sure that they spell the name correctly so that the conditional formatting actually works. If you know all the names in advance, you can even create a dropdown list using the data validation tool to prevent typos.
Data > Validation > List from a range or items

Resources