text
stringlengths 83
79.5k
|
---|
H: How do I create a pretty link to a Telegram group?
I know how to create a pretty link to a channel (t.me/mychannel).
I know how to create an invite link to a (super)group. However, I can't seem to control how the link looks like.
Is there a way to create a pretty link to a supergroup?
AI: Not possible on the web version :(
On the mobile and desktop version it's located under Group Info from (Group Settings / Manage Group), and this section doesn't exist on webogram yet.
Unfortunately the web version of Telegram lags behind the other platform versions. |
H: How to search all repo in Github while in another repo?
I think Github changed the search bar functionality.
Now when I type anything into the search bar, it defaults to searching within the repo that I'm browsing.
I want to search the entire Github in this case.
AI: Unfortunately your request doesn't seems to be possible[1] without any extension or script that will change GitHub's functionality.
It's not new at all, I don't remember how long it's that way - but not from lately.
The options you have are:
Search in the repo and then click the "view all results.." to search entire GitHub.
N code results in X/Y or view all results on GitHub
Go to the homepage or navigate to the search page.
Write an extension/script that will alter this behavior for you.
You can read more about this on this article:
About searching on GitHub
[1] As I wrote, you might develop a small thing that will alter this behavior for you, but it doesn't seem to be possible just with GitHub. |
H: Google sheets array comma-delimiter not working in functions
I was trying to do a VLOOKUP in a column and print results of a column left to the on to be searched. So I tried put them into an Array to move the search column to the front. But for some reason the comma delimiter doesn't work in Formulas.
What I tried to do:
=VLOOKUP("search-term"; {B:B, A:A}; FALSE)
This results in a formula parse error, also the B:B Range is not colored. This also results in a formula parse error:
{B:B , A:A}
I can workaround by using:
=VLOOKUP("search-term"; TRANSPOSE({TRANSPOSE(B:B); TRANSPOSE(A:A)}); FALSE)
But that gets really chaotic really fast. Is there a reason why the comma delimiter doesn't work?
AI: You can't use , because of your locale. You should use \ instead.
{B:B\A:A}
Note: For countries that use commas as decimal separators (for example €1,00), commas would be replaced by backslashes (\) when creating arrays. |
H: How to use a value in Sheet2 in the WHERE clause of QUERY in Sheet2 whose dataset is in Sheet1
I have a Sheet1 that I want to use as my dataset for a Google Spreadsheet query that looks as follows:
The query is in Sheet 2 and I want to pull across a list of manufacturers who have a Type that matches the value in Sheet2:A1.
The query I currently have isn't working but I can't see what I'm doing wrong.
The value in Sheet2!A1 was copy and pasted from Sheet1!C4 so should be identical.
Spreadsheet can be found at https://docs.google.com/spreadsheets/d/1RP5U16TMbTdZngjrJhGfJxzeLNLapOl9zScQtb2PFLE/edit?usp=sharing
Can anyone advise?
AI: The correct syntax:
=QUERY(Sheet1!A2:C4, "SELECT A WHERE C='"&A1&"'",0) |
H: How to SUM on all column based on their own key?
As the title, I am stuck with getting the SUM of category A and B ( as shown in the pic below )
The left side is the Total and the right side is Individual.
All I want is to get the total value of 120 for category A and 150 for category B.
Thank you in advance
AI: A3:
=SUMIF(D3:J4,"A",E3:K4)
B3:
=SUMIF(D3:J4,B2,E3:K4) |
H: Search a range for a value, return the value of the first cell in the matched column
I have a table, such as:
A B C
1 Animals Colors States
2 Cat Red CT
3 Dog Orange CA
4 Mouse Yellow CO
I want to search for Yellow, and get Colors as a result.
I feel like one of the LOOKUP options should work here, but I'm not having luck. Is there a way to do this with a formula?
AI: D1: Yellow
E1:
=ARRAYFORMULA(TEXTJOIN(,1,IF(D1=A2:C4,A1:C1,)))
IF to get headers
TEXTJOIN to remove blanks |
H: Why do Google events that I create on repeat include a date that I never selected?
I created an all-day event to help me remember my husband's shift schedule. Every other Monday and Tuesday, he works. After creating an event, I go into Custom Recurrence and specifically selected [only] M and T for Monday and Tuesday. After saving the event, my calendar shows a recurring Monday and Tuesday event, PLUS an additional Tuesday and Wednesday event with the exact same information as the Monday and Tuesday recurring event. Under the Tuesday and Wednesday event, it even shows "M and T" as selected under Custom Recurrence, which isn't right. Help?? *I've tried deleting the extra event, but it only deletes EVERYTHING.
AI: Ah! I see the problem. Your events are each two days long, so the calendar is working correctly in that it's creating a two-day event starting Monday, and another two-day event starting on Tuesday.
To fix this, either:
Change the event to be a single day, OR
Change the two-day event to repeat every Monday |
H: Google script insecure?
For a couple of years a script is run in https://script.google.com, but now it is seen as an insecure app? Why? The service is provided by Google right? Third party?
AI: Without knowing the actual script, I've no idea what it's source is.
However, Google has recently launched tighter controls on securing your account and is now looking at things that it wouldn't have looked at before. (I was advised to remove my account from an old phone and to disable an app password I haven't used in quite a while.)
If you trust the script, then you can go ahead and tell Google so. It probably won't ask about it again.
More information from the Google Blog: More transparency and control in your Google Account |
H: What formula can calculate workdays until to the last day of the month
I get paid on the business day of the fifteenth and the last day of the month. However, some months those days fall on weekends, and we are paid the closest business day prior (i.e. 6/30/18 falls on a Saturday, checks get cut Friday 6/29/18).
Currently I'm using the following formula to calculate per diem based on the difference between today and the next pay day:
=G2/if(day(today())<16,15-day(today()),EOMONTH(today(),0)-today())
However, it targets 6/30 from the above example, and I would like it to use 6/29.
Is there a formula to conditionally calculate the pay date based on business days prior?
AI: This solution solves for calendar days. In order to calculate per diem, you need to know the sum of funds and the days they would be distributed across (e.g. $100 for 10 days is $10/day).
Where the sum for the remainder of the pay period is in G2, the divisor is the difference in calendar days between today and either the 15th or last day of the month (or the previous business day if a non-business day), based on the day of the month.
For a concrete example, today is the 6/21, the last day of the month is 6/30. 6/30 is a Saturday, so the previous business day is 6/29. There are eight days (including today) between now and the pay date, so the formula would be G2/8.
This formula solves for per diem based on that pattern, and works for today() being any day in the month:
=G2/if(day(today())<16,workday(workday(concatenate(month(today()),"/15"),1),-1)-day(today()),workday(workday(EOMONTH(today(),0),1),-1)-today())
This formula does not account for holidays |
H: How do I fill out Google applications when their own reCAPTCHA is broken?
I am filling out a Google application:
https://services.google.com/fb/forms/ytapiquotarequest/
At the bottom it says "reCAPTCHA V1 IS SHUTDOWN", so I do not know how to proceed.
I tried entering ""reCAPTCHA V1 IS SHUTDOWN" and that did not work.
Is there any way I can proceed now with this form?
Do I need to wait until Google realizes their form needs to be fixed?
AI: I have heard some reports that:
Entering the shown text ("reCAPTCHA V1 IS SHUTDOWN") will let you pass.
Entering any text will let you pass.
But if that's not true, then you'll have to wait until the site is updated.
Tricking the site itself should be impossible for a properly programmed website. Most bypass methods instead rely on convincing reCAPTCHA's API to return a 'success' result. If the API was shut down in such a way that it never returns a 'success', that's the end of it. |
H: How do I change my Youtube nickname from "Firstname Lastname" to "Nickname" or just "Firstname"
I'm encountering a small but rather frustrating stupid problem that's driving me mad.
At some point Google insisted on me specifying a first and last name. I entered "Stromboli" for both. Since then, my nickname appears as "Stromboli Stromboli" (i.e. twice).
I have changed my nickname, I have removed the last name, but no matter what I try... It seems to looks OK in all profile settings but when I actually place a comment anywhere on Youtube, it still appears as "Stromboli Stromboli".
Here's some screenshots of what I tried, with the current settings.
• Youtube top right profile popup:
• Youtube settings:
• When I click Edit on Google:
• The dropdown options for "Display my name as" are:
• Back in in my Google profile:
• Clicking the top right popup:
• When I click on "My Account", I get to Personal info in Google:
• Top right google account popup:
• And even my Gmail settings:
• However... When I place a comment on a video, or when I enter the chat in a Live stream:
Would anyone know how I can get Youtube to just show my name as "Stromboli" (once, not twice) when I place comments on videos or streams??
Note: instead of using a first and/or last name, I also see a lot of Youtube comments using only a custom nickname. So I know it's possible. That'd be also great for me, is there a way I can specify to just use a nickname on Youtube?
AI: Thanks to Leo Wattenberg's comment: the solution is to simply change my last name into . (a dot) |
H: HAVING clause in Google Sheets QUERY
My Problem
I have built a count query that returns the most common elements from column H in the final sheet:
=QUERY(final!H2:H,"SELECT H, COUNT(H) GROUP BY H ORDER BY COUNT(H) DESC")
I would like to filter out elements that appear only once. In traditional SQL I would add:
HAVING COUNT(H)>1
However, this fails with #VALUE! on Google Sheets.
My Question
How can I filter out query elements based on their count?
AI: Based on this Google Forum answer, I've nested the query:
=QUERY(
QUERY(
final!H2:H,
"SELECT H, COUNT(H) GROUP BY H ORDER BY COUNT(H) DESC"
),
"WHERE Col2 > 1")
Note that the column reference in the outer query is case sensitive, and must be exactly Col2. |
H: Google Sheets: Split row value and count each part
My Problem
I have a survey result with a checkbox question in which more than one answer could be checked. The results are given in a single column, separated by a | sign.
I would like to run a count QUERY to grade answers by popularity. The expected output for this example is something like (numbers made up):
AWS 20
GCP 5
Pizza racks 1
Azure 1
...
What Have I Tried
SPLIT, but then the count spans multiple rows
Exporting to CSV and some Python-foo, but it's manual and error-prone
My Question
How can I QUERY COUNT a row which with one or more values in each cell, separated by a delimiter?
AI: You could do it using join and split - and all in one function with an array literal for display:
=arrayformula({UNIQUE(transpose(split(join(" | ",A1:A), " | ",false))), if(istext(UNIQUE(transpose(split(join(" | ",A1:A), " | ",false)))),countif(transpose(split(join(" | ",A1:A), " | ",false)),UNIQUE(transpose(split(join(" | ",A1:A), " | ",false)))),)}) |
H: SORT formula is pulling in null cells
I have a spreadsheet that uses the following formulas
To merge data an importrange and another sheet (column J):
=iferror(vlookup(D2,List_of_Things!A:N,13,false),"")
To sort that data based on the vlookup (=importrange record's key):
=SORT(FILTER(B:J,NOT(ISBLANK(J:J)),NOT(ISBLANK(D:D))),9,FALSE)
Where J has a numeric value, the data is sorted but it's pulling a bunch of null values before it gets to the populated numbers in J.
How do I adjust the =importrange results so that I can have a numerically-sorted (column J) output with the merged data?
AI: Instead of
=iferror(vlookup(D2,List_of_Things!A:N,13,false),"")
use
=iferror(vlookup(D2,List_of_Things!A:N,13,false),)
This because an empty text ("") is not the same as blank.
Alternatively, instead of using ISBLANK use LEN. This because the length of a blank cell and a cell containing an empty text is 0.
Related
Answer to Create a list of categories from a 2D array
Answer to How Do I Combine Columns In Google Spreadsheets? |
H: Can we use Column Range for Comparison in Google Spreadsheets Query?
Suppose I have a table with 3 columns in a Google Spreadsheets sheet. Col1 is a name and Col2 and Col3 are numbers. Can we use a column range for number comparison such as in the example below? (what I've written below obviously doesn't work)
select * where Col1='John' AND Col2 to Col3 > 0
Is there a way to achieve the same result?
AI: Google Query Language hasn't a to operator.
Instead of Col2 to Col3 > 0 try Col2 > 0 AND Col3 > 0
Reference
https://developers.google.com/chart/interactive/docs/querylanguage |
H: Using Google Apps Script add-on without publishing
I've just written my first Apps Script add-on for showing some links in a sidebar of a Docs document.
It looks like the way I created it made it bound to a specific document (the one from which I clicked Tools > Script Editor). When I open this document, the script shows up under the Add-ons menu item.
I would like the add-on to be available in my other documents as well, but I don't feel like publishing it: It requires me to add screenshots, icons, and other stuff that prevents me from being able to flesh out a script without too much fuzz.
I tried to publish it with "Private visibility" but that didn't make it available to my other documents (tried searching in Add-ons > Get add-ons).
So how do I make the script available to use in all my documents? Can I detach the script from the original document and would that help?
AI: I tried to publish it with "Private visibility" but that didn't make it available to my other documents (tried searching in Add-ons > Get add-ons).
...
So how do I make the script available to use in all my documents?
Publishing and add-on as privately (unlisted or limited to a group of users) will not display the add-on on the add-ons store, except for those that use Google Apps / G Suite account.
To install the add-on, the publisher should grab the add-on listing URL and share it with the users in order to make them be able to install it.
To grab the add-on listing URL, on the Chrome Web Store dashboard, click on the name of the published add-on.
That will open the add-on listing.
Grab the URL shown on the web browser address bar (Chrome call it omnibox). If it contains ?authuser=n or &authuser=n, where n will be an integer, remove that part and share the URL with the add-on users.
To install the add-on for yourself, click the Free button.
Can I detach the script from the original document and would that help?
The way to "detach" a script from a document, is to create an standalone Apps Script project but it could involve to make changes to the code as there some features that can't be tested directly like methods that get the active document and that are blocked when the script is run from Run > Test as add-on.... This rather than making the things easier could be a bit harder and if the add-on is intended your use only, there is not an important gain unless you will use a development process that requires a stand-alone Apps Script project.
https://developers.google.com/apps-script/add-ons/publish
Publish an add-on privately (Stack Overflow Q&A) |
H: Different rights without identification
I have a Google Sheets spreadsheet. I want to share it with people that don't necessarily have a Google account by just sending a URL.
It's ok if everyone has the same rights but what if I want some people with read-only and others with read and write rights?
Is it possible for instance to have two URLs: one for read-only and another for read and write?
AI: no, you "cant" have two URLs of the same document or sheet.
the closest you can get is to set Link sharing to On - Anyone with the link Can view and then invite individual people and give them individual read+write rights
the other way around is to have two URL links of two spreadsheets where one has open read+write rights for everyone with link (the original sheet) and the other one has only-read rights for everyone with link (dummy sheet that uses IMPORTRANGE() to import all data from the original sheet)
Sample Usage:
IMPORTRANGE("https://docs.google.com/spreadsheets/d/abcd123abcd123", "Sheet1!A1:AA1000") |
H: Is there any way to export google maps driving directions as a series of gps coordinates?
Is there a good way of taking google maps' driving directions and exporting them as a series of GPS coordinates detailing the route? Any help you can provide is much appreciated!
AI: Try the tool at Maps to GPX.
Get a share link for your route on Google Maps, then paste it into that website. It will give you a download for a GPX file, containing the directions as a track or route.
Some more details on the developer's blog: Converting Google Maps Directions to GPX data |
H: Weird behavior with "Wrap Text" in tables
I'm trying to add an image at the beginning of cell of a table that Wraps text however, for some bizarre reason it seems also block out space in the cell to the right.
Where as, I'd expect something that looks like:
Here's my example document. Is this a bug? If so is it documented anywhere or is there a workaround?
AI: looks like its some kind of a bug, but it can be resolved as tested:
click on the image
select In line
then select wrap text
done |
H: How do I find the sum of the last row of data?
I have a spreadsheet with a row of numbers added every day automatically. I want a function to find out the sum of the last row of numbers, as that last row contains the most up-to-date information.
Here is an example spreadsheet of what I mean:
AI: =SUM(INDEX(A:E,MATCH(2,1/(NOT(ISBLANK(A:A))))))
Match to find the last row and sum up. |
H: How add column BY to a query?
How do I include the column BY in a query?
I first tried =unique(query(data_table,"SELECT D, BY"))
Then, I tried to surround it with single quotes =unique(query(data_table,"SELECT D, 'BY'"))
AI: Short answer
Put BY column identifier between back quotes, =unique(query(data_table,"SELECT D, `BY`"))
Explanation
BY is a Google Query Language keyword. From https://developers.google.com/chart/interactive/docs/querylanguage#Identifiers
Identifiers
Identifiers (or IDs) are text strings that identify columns.
Important: If your identifier
Has spaces,
Is a reserved word,
Contains anything but alphanumeric characters or underscores ([a-zA-Z0-9_]), or
Starts with a digit
it must be surrounded by back-quotes (not single quotes). |
H: Google Sheets: Count how many unique values appear more than X number of times
Given a column of names I would like a formula to return a count of unique names that appear >=X number of times. The function COUNTUNIQUE works only if X=1.
AI: =FILTER(A:A,COUNTIF(A:A,A:A)>=2)
IF COUNT is more than 2,FILTER them in. |
H: How to disable suggestions in Gmail?
The new Gmail interface has suggestions visible in this image:
How can I turn them off?
AI: As we saw, at the moment there isn't a builtin way for doing that.
You can go for other solutions:
Block the element with your ad blocker
Use a user script manager with a small script that will just remove the suggested replies.
You can use this:
document.querySelector('div[aria-label*="Suggested reply"]').parentNode.remove() |
H: Does Google Drive notify when sharing stops?
Google Drive will send a notification to somebody when I share a Google Sheet with them. Will it also send a notification when I stop sharing that file with them?
AI: No, it won't send any "end of sharing" notification. (Also, it's not necessary to send any notification when something is shared) |
H: How to play YouTube video list in chronological order?
Here's a random YouTube video list sorted in chronological order:
https://www.youtube.com/user/numberphile/videos?sort=da&flow=list&view=0
If you click on the PLAY ALL button, however, the order of the playback does not match the chronological ordering of the original list.
Is there a way to play the list back in chronological order?
AI: it looks like YouTube doesn't support it, but it can be done:
first, you need to get all IDs from that sorted range (I copy/pasted source code into google spreadsheet and filtered it out)
Muc5HQonSEo
sPFWfAxIiwg
umYvFdU54Po
mLQNvuZH3GU
ZfKTD5lvToE
d8TRcZklX_Q
kw6l_uTakRA
fUSZBVYZdKY
4aMtJ-V26Z4
PLL0mo5rHhk
mhJY74Bw8mw
9xbJ3enqLnA
hiOMtBrH8pc
MlyTq-xVkQE
5sKah3pJnHI
IQofiPqhJ_s
bFfSfzjhfC8
kC6YObu61_w
a2ey9a70yY0
8GEebx72-qs
_DpzAvb3Vk4
LzjaDKVC4iY
-O4mYiP2zPQ
DRxAVA6gYMM
daro6K6mym8
D6tINlNluuY
abv4Fz7oNr0
sJVivjuMfWA
yJ-HwrOpIps
wPn4tgmU8ek
QTrM-UVcgBY
U7f8j3mVMbc
UfEiJJGv4CE
XTeJ64KD5cg
DRjFV_DETKQ
UkZqFtYtqaI
CMUI6m8ZMwg
ci3P5jf48cY
RxxDD2LWAyY
R9m2jck1f90
C-52AI_ojyQ
kUBIJdGsD1A
1EGDCh75SpQ
4mEk7d8oRho
yu_aqA7mw7E
MmhNk-zRJcU
8d49sEAU5Ws
oIkhgagvrjI
KbxRDVCVzq4
elvOZm0d4H0
euAHY9hqRN4
mqK63v2Jzks
nBgQPSUTWVM
1GCf29FPM4k
p_Hqdqe84Uc
fiTwar7mFws
A25pxcYstHM
M-yAgyrzGdo
f2Gne3UHKHs
x6Ml4AEt0kk
tflf05x-WVI
dXGhzY2p2ug
Dd81F6-Ar_0
dHzUQnRjbuM
pT52hREAf18
EDauz38xV9w
-Djj6pfR9KU
8542XmS98Yo
yF2J39Xny4Q
QV9k6dRQQe4
tivvYl8ZRvA
BTyzE-NDga8
kQZmZRE0cQY
ZDn_DDsBWws
vNTSugyS038
RkBl7WKzzRw
2dzS_LXvYA0
BRRolKTlF6Q
3ZMnVd4ivKQ
ygqIfLHGTu4
gVzu1_12FUc
83ofi_L6eAo
uuMwz47LV_w
Cn3ogzLzxuM
aiibxmqXV9M
xYAU75IS40A
l7lP9y7Bb5g
VpBmt11czaI
8t1TC-5OLdM
M7kEpw1tn50
U6xJfP7-HCc
ZPv1UV0rD8U
uak-wvXJAvE
mlqAvhjxAjo
G2_Q9FoD-oQ
V4V2bpZlqx8
XXjlR2OK1kM
VbtNy54ya9A
n3x8fIdsla4
QJQ691PTKsA
-rwqnVsGFTU
wCyC-K_PnRY
QSEKzFGpCQs
YJuHC7xXsGA
a9P9Ej1b31s
FpyrF_Ci2TQ
NajQEiKFom4
iW_LkYiuTKE
SzjdcPbjaR4
ZNiRzZ66YN0
bFNjA9LOPsg
x4kyFKyCMv0
QzrRkhU248A
WM1FFhaWj9w
GyN-qpVfOWA
CMP9a2J4Bqw
Waw11zhaKSk
e4sF_Z5oJek
u7Z9UnWOJNY
SxP30euw3-0
noDSyLzVz2g
ctC33JAV4FI
XvDC-0aNw2k
wo19Y4tw0l8
JJQWtGm3eIs
Fmb3TCvlETk
gaVMrqzb91w
5JOAoiX1LHA
vkMXdShDdtY
D4_sNKoO-RA
u17MdWjGA5I
nd_Z_jZdzP4
acTrvMlpuxA
Mfk_L4Nx2ZI
seUU2bZtfgM
dzerDfN2E7U
SbZCECvoaTA
j7jfHM-mMC4
PCu_BNNI5x4
iFuR97YcSLM
3K-12i0jclM
dDl7g_2x74Q
VDD6FDhKCYA
YBbBbY4qvv4
JmyLeESQWGw
aIggWlKr41w
l8ezziaEeNE
N7BABxMlOs0
VRzH4xB0GdM
8UqCyepX3AI
Nu-lW-Ifyec
qiNcEguuFSA
CfoKor05k1I
eaJtjJNrWf0
_YysNM2JoFo
WUlaUalgxqI
K305Vu7hFg0
cUCSSJwO3GU
yDWPi1pZ0Po
kOClr_bew38
lFQGSGsXbXE
qbkH_0TNdk0
1O69uBL22nY
6aDBGTWsydY
NPoj8lk9Fo4
w-I6XTVZXww
ab_dY3dZFHM
Yexc19j3TjE
3_VydFQmtZ8
jbiaz_aHHUQ
HvMSRWTE2mI
y8acoaakvPM
vzV50goW_WM
E8kUJL04ELA
d6c6uIyieoo
E36qMxXGo3A
TUErNWBOkUM
0Oazb7IWzbA
09JslnY7W_k
7dcDuVyzb8Y
3T7jMcstxY0
lNuPy-r1GuQ
iwo7JReFTeg
sG_6nlMZ8f4
hwOCqA9Xw6A
GItmC9lxeco
CwIAfkuXc5A
LBPj8E1JKaQ
00Qu1kgsGpM
ItiFO5y36kw
xOCe5HUObD4
4Lb-6rxZxx0
7u6kFlWZOWg
xdiL-ADRTxQ
8l-La9HEUIU
wBU9N35ZHIw
sxLdGjV-_yg
ZWib5olGbQ0
xPk3SZiFEvQ
shEk8sz1oOw
HX8bihEe3nA
GuigptwlVHo
NGMRB4O922I
txajrEOTkuY
eZUa5k_VIZg
ea7lJkEhytA
4UgZ5FqdYIQ
OuF-WB7mD6k
ZkVSRwFWjy0
HuKl3XuEmj4
Qcv1IqHWAzg
OEMA6jhi5Qo
I7v2wAXFQpc
m5evLoL0xwg
D8ntDpBm6Ok
dTWKKvlZB08
PeUbRXnbmms
n_FsAwvxBI8
0r3cEKZiLmg
99Welatppzk
Lsu2dIr_c8k
mX0NB9IyYpU
izdZPx89ph4
IMItxzSZs0E
6Lm9EHhbJAY
SL2lYcggGpc
v678Em6qyzk
q8n15q1v4Xo
T0xKHwQH-4I
E-d9mgo8FGk
KboGyIilP6k
yfr3BIk6KFc
rudzYPHuewc
Z8lv2vy5vco
AYnJv68T3MM
Obg7JPd6cmw
GznQgTdEdI4
87uo2TPrsl8
ZbKYmfjMPVM
9TAlEVDvXgw
_qvp9a1x2UM
l4bmZ1gRqCc
nUN4NDVIfVI
AxJubaijQbI
OfEv5ZdSrhY
Y2lXsxmBx7E
BkOIw7vAZCQ
PnW5IRvgvLY
_s5RFgd59ao
emiMj8cCL5E
U9qU20VmvaU
7c0CoXFApnM
gjVDqfUhXOY
u6Got0X41pY
ud_frfkt1t0
5qu3WETuf6c
l7E-pBWuSIA
0hlvhQZIOQw
LNS1fabDkeA
AAsICMPwGPY
-k3mVnRlQLU
2g3sdzgSABM
t2ZoU0LEM6E
99stb2mzspI
4KHCuXN2F3I
3WHBlPvK3Ek
Km024eldY1A
aqyyhhnGraw
M-i9v9VfCrs
JnEBO3OHaiA
jPcBU0Z2Hj8
PFkZGpN4wmM
WYijIV5JrKg
NWBToaXK5T0
vA2cdHLKYB8
ZREp1mAPKTM
d0vY0CKYhPY
pKwsPBeSiOc
j-dce6QmVAQ
Lihh_lMmcDw
AxxnziuL408
UkmQNbvlK8s
wymmCdLdPvM
I3ZlhxaT_Ko
wKV0GYvR2X8
mh3eMt09EAs
CN8hK3YFqhM
ktPvjr1tiKk
h09XU8t8eUM
HPfAnX5blO0
QAja2jp1VjE
XPIgR89jv3Q
xRpR1rmPbJE
vgZhrEs4tuk
3BR8tK-LuB0
tlpYjrbujG0
lEvXcTYqtKU
wVH4MS6v23U
lCjspXB5F4A
JuuYFt8bahE
8Nzi1h2m7pE
wwh0KH-ICCw
WYsP1PhoAZc
2s4TqVAbfz4
M8xlOm2wPAA
eAjMvpRMVDw
ua1K3Eo2PQc
aOT_bG-vWyg
aQxCnmhqZko
wGkvyN6s9cY
NjCIq58rZ8I
iObpxBfOLv4
YVvfY_lFUZ8
VTveQ1ndH1c
AEpQ8YxupfQ
y12Tt3bOmKA
Ra9I_-o2LHM
Vp3sgYKULp0
TkGawXjsltc
_-M_3oV75Lw
4izjrtR8Ozg
SDw2Pu0-H4g
5Mf0JpTI_gg
gi-TBlh44gY
mPn2AdMH7UQ
ovsYv-b-wWI
2JM2oImb9Qg
AOMQxLrCI7A
Sa9jLWKrX0c
siawhQBRC8I
MEyIppEOQTw
5mFpVDpKX70
QFeG9CeeH88
Y30VF3cSIYQ
63ILZ9cZ2d4
eeLpkCZkWfc
6_j2X6fgkaA
MfzNJE4CK_s
k8Rxep2Mkp8
G7zT9MljJ3Y
8UUPlImm0dM
zzKGnuvX6IQ
x-DgL49CFlM
4k1jegU4Wb4
tY69D3PSmIk
hP-DZMmQBng
uCsD3ZGzMgE
W18FDEA1jRQ
ZM-i8t4pMK0
BYRTvoZ3Rho
49KvZrioFB0
5kC5k5QBqcc
QvvkJT8myeI
8dHMpnfFdtc
AuA2EAgAegE
xgBGibfLD-U
djmec-Bweeg
1MtEUErz7Gg
ETrYE4MdoLQ
Gq4REVI30Qc
xopM9BFjcNo
YQw124CtvO0
Noo4lN-vSvw
D046q2EbHGE
PQDvEJFdY1U
xhj5er1k6GQ
Ku8BOBwD4hc
0iMtlus-afo
MXJ-zpJeY3E
NgbK43jB4rQ
rXfKWIZQIo4
LqKpkdRRLZw
4dUK1JqTSgU
QKHKD8bRAro
-ruC5A9EzzE
pasyRUj7UwM
kbKtFN71Lfs
ur-iLy4z3QE
WN58941sgtI
MxiTG96QOxw
PEMIxDjSRTQ
O4ndIDcDSGc
mccoBBf0VDM
NoRjwZomUK0
I0peG_kRE-4
3IMAUm2WY70
RhuaPhahHbU
ezdeBrPnzyc
m6rfpQXzXu0
lpj0E0a0mlU
BH1GMGDYndo
co5sOgZ3XcM
pbXg5EI5t4c
aCq04N9it8U
G_uybVKBacI
fQQ8IiTWHhg
FlndIiQa20o
EeuLDnOupCI
mceaM2_zQd8
kaMKInkV7Vs
7dwgusHjA0Y
4LQvjSf6SSw
9yUZTTLpDtk
3P6DWAwwViU
m3drS_8BpU0
4kWuxfVbIaU
fcVjitaM3LY
un-pTKfC1dQ
2BIx2x-Q2fE
A8Tiba3h9Fw
YCXmUi56rao
ZCVAGb1ee8A
G1m7goLCJDY
i3D7XYQExt0
5SfXqTENV_Q
p-xa-3V5KO8
wJGE4aEWc28
Us-__MukH9I
FtNWzlfEQgY
AvFNCNOyZeE
AZRD5UkAm2Y
mthPiiCS24A
3Bv-QMaYlmo
BDEo5XpZcXo
bPZFQ6i759g
aKPkQCys86c
wZ1E_CM7MqA
_pP_C7HEy3g
sj8Sg8qnjOg
7lRgeTmxnlg
1gBwexpG0IY
4445Mbw8pYg
hHG8io5qIU8
FGC5TdIiT9U
6H6EP-AmMFM
DhPtIf-hpuU
then just copy this list and paste it into http://roll.io/
press Run my list! button and you are good to watch
and as for downloading: https://www.youtube.net/channel.php?id
ADDITIONAL DETAILS:
source code in a spreadsheet: https://docs.google.com/spreadsheets/d/
chronologically sorted playlist: http://roll.io/#4U2pNU!0
DOWNLOAD IN CHRONOLOGICAL ORDER:
download this: https://yt-dl.org/latest/youtube-dl.exe
extract IDs in this format: https://docs.google.com/spreadsheets/d/
in folder where you downloaded youtube-dl.exe create text file named feed.txt
copy whole column A from spreadsheet https://docs.google.com/spreadsheets/d/
paste it into feed.txt
create batch file BATCH.cmd with content:
youtube-dl.exe -o %(autonumber)s-%(title)s.%(ext)s -a feed.txt
run/execute BATCH.cmd by double-clicking
and wait till finished
this will download all video files in chronological order in format 00001-Title.mp4 etc. here are supported options: https://pastebin.com/raw/XGh82hg8 and there are more format options: https://pastebin.com/raw/fgqQbpRC also its possible to feed your desktop media player directly like: youtube-dl.exe -o - -a feed.txt | PotPlayerMini64.exe - and also there is a possibility to download all IDs with: youtube-dl.exe --get-id https://www.youtube.com/user/numberphile/ > t.txt and ditch all that ID scraping from source code (note that then you need to open t.txt file with Word/Wordpad, because notepad will show it format-less in one string)
PLAY ON YOUTUBE IN CHRONOLOGICAL ORDER:
get list of IDs either with youtube-dl.exe or from source code
copy/paste it into google spreadsheet and create comma-separated list (ID,ID,ID...)
you can use =JOIN(",";A1:A) (as shown in A1)
then add the lead to it: ="https://www.youtube.com/watch_videos?video_ids="&A1 (as shown in A4)
copy cell A4, paste it into browser's search box and hit ENTER
this will create special playlist URL called "Untitled Playlist" where you will have chronologicaly sorted videos https://www.youtube.com/watch?v=Muc5HQonSEo&list=TLGGiqkpBaB_k8UwNTA3MjAxOA
SIDE NOTE: unfortunately there is one downside... such playlist is limited only to 50 videos
to save such playlist, be sure that you are logged in into youtube
add &disable_polymer=true at the end of the URL and hit ENTER https://www.youtube.com/watch?v=Muc5HQonSEo&list=TLGGiqkpBaB_k8UwNTA3MjAxOA&disable_polymer=true
then, somewhere around Subscribe button will appear + Add to button (or 3-dot/3-slash button with plus sign)
select Create a new playlist name it and press Create button
done!
there is also API approach, that can maybe handle 50+ videos (but that's not fun):
https://developers.google.com/youtube/v3/docs/playlists/insert#examples
or also AHK (AutoHotKey - https://www.autohotkey.com/ ) script:
;;;Select youtube videos with clipboard to create a playlist. Use CTRL + Y when finished.
;Below allows script to start with clipboard empty
clipboard = ; Empty the clipboard
;Define playlist string
playlist = http://www.youtube.com/watch_videos?video_ids=
Msgbox Use clipboard to select videos. `nUse CNTL + Y when done selecting videos. `nCNTL + Z exits the script.
#Persistent
OnClipboardChange("ClipChanged")
return
ClipChanged(Type) {
if clipboard contains youtube.com/watch,youtube.com/embed/,youtu.be
{
StringRight, clipboard, clipboard, 11 ; Removes all but last 11 characters
gosub, doit
return
}
return
}
doit:
count++
playlist = %playlist%%clipboard%,
TrayTip, Current Playlist:, %playlist% `nNumber of Videos: %count%`nUse CNTL + Y when done selecting videos ...
Sleep 2000
TrayTip ; Turn off the tip.
return
^y::
;Remove last comma, display playlist, and copy playlist to clipboard
StringTrimRight, playlist2, playlist, 1 ;Replace last comma with blank (also converts the clipboard to plain text).
clipboard = %playlist2%
;Turn off OnClipboardChange
OnClipboardChange("ClipChanged", 0)
Msgbox Number of Videos in playlist: %count% `n%playlist2% `nPlaylist copied to clipboard `n`nUse CNTL + Z to exit ...
;Turn OnClipboardChange on again (necessary to keep Clipboard from aquiring playlist2)
OnClipboardChange("ClipChanged", 1)
return
^z::
ExitApp
EXTENSIONS TO EXTRACT URL LINKS:
add browser extension: firefox / chrome
select area with your mouse from where extension will extract all URL links
after selecting area / text with right-click-mouse-drag, click on extension icon and perform desired operation
SPREADSHEET YOUTUBE PLAYLIST GENERATOR:
here I wrote a simple spreadsheet playlist generator: https://docs.google.com/spreadsheets/d/ just add youtube links in any desired order and press that red text in cell B1 |
H: How to enumerate dates into a Google Sheets' column?
I need to enumerate a Google Sheets' column with consecutive business dates (Sunday-Thursday) starting and ending with specific days.
Can this be done automatically or I have to this manually?
AI: Manual way:
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
Automatic way:
2.7
3.7
4.7
5.7
6.7
7.7
8.7
enter dates in cells
select all cells
go to: Format > Number > More Formats > More date and time formats...
delete: .Month (8)
hit those arrows next to Day (5)
from dropdown menu select: Day as full name (Tuesday)
press Apply button and you are done |
H: How can I add a destination in between others, on Google Maps?
How can I add something at the orange arrow? It'd be too inefficient to delete everything under Greenwich, add the missing destination, and retype everything under Greenwich? See beneath.
AI: add your destination via: + Add destination
drag & drop your entry where you want it using triple dots |
H: Adding a dynamic date filter to a sum in Google Sheets
I have a spreadsheet of people subscribing to a service with a date column (B) and a 1 in column H for each name. I want to create a run total each month that automatically updates, so I get the sum of all people who joined each month. (I read through much of the information here, but find it very confusing.
Can anybody suggest something?
AI: well, based on given + few assumptions (because your question isn't clear enought)... you can drop those "1"s in column H if you use it for SUM purposes, and add dates - either manualy or automaticaly with script (for example based on last row-edit)
script:
function onEdit(event)
{
var sheet = event.source.getActiveSheet();
// note: actRng = the cell being updated
var actRng = event.source.getActiveRange();
var index = actRng.getRowIndex();
var cindex = actRng.getColumnIndex();
var dateCol = sheet.getLastColumn();
var lastCell = sheet.getRange(index,dateCol);
var date = Utilities.formatDate(new Date(), "GMT+1", "dd.MM.yyyy");
lastCell.setValue(date);
}
and then count your ocurances with something like:
=SUMPRODUCT(--ISNUMBER(H1:H);--YEAR(H1:H)=2018;--(MONTH(H1:H)=7))
how this works:
by adding script to the spreadsheet, everytime something in a given row shall change, an actual date will be printed on the end of that given row. then somewhere under all data or preferably in 2nd sheet you will add 12+ of those formulas that will sum your months as you request. (...where H1:H is column with dates, 2018 is for year and 7 is for 7th month) |
H: How to get Google search results and exclude sub-pages?
Sorry if question title isn't clear. Let me explain with an example.
Search term: Blogging
Results I got from Google
https://www.bloggingbasics101.com/how-do-i-start-a-blog/
https://www.thebalancesmb.com › ... › Home Business › Home Business Toolbox
https://en.wikipedia.org/wiki/Blog
https://blogging.org/
https://shoutmeloud.com/
https://bloggingwizard.com/
https://bloggingarea.com/blogging-tips/
I want to remove 1,2,3 and 7. I am looking only the home page (full domain) as result. Is it possible?
AI: A little "script" that would remove such results from the results page. Note that it can keep the page empty, and you'll just need to pass to the next one.
The best way to use it, in my opinion, would be a bookmarklet:
for (var x of document.querySelectorAll('div.g h3.r a')) {
if (!x.href.match(/https?:\/\/\w+?(?:\.\w+)+?\/$/)) {
x.closest('div.g').remove();
}
}
Just minify it and put it as a bookmarklet, and click it whenever you want to get only base domain results.
A minified version done with jscompress:
for(var x of document.querySelectorAll('div.g h3.r a'))x.href.match(/https?:\/\/\w+?(?:\.\w+)+?\/$/)||x.closest('div.g').remove(); |
H: Auto-updating timestamp
In a particular cell of a column, I would like to have a timestamp of the last date any cell of that column was modified.
Specifically: G31 would show a date of last modification on any cell of the G column.
My question is quite similar to this one, but I can't seem to apply it to my situation :
Auto-updating column in Google Spreadsheet showing last modify date
I have tried this :
function onEdit()
{ var DEVIS_COMPLET_2018 = "MySheet";
var s = SpreadsheetApp.getActiveSheet();
if (s.getName() !== DEVIS_COMPLET_2018) return;
var r = s.getActiveCell();
if( r.getColumn() != G ) { //checks the column
var row = r.getRow();
var time = new Date();
time = Utilities.formatDate(time, "GMT-08:00", "MM/DD/yy");
SpreadsheetApp.getActiveSheet().getRange('G31').setValue(time); }; };
I don't get any error message but nothing happens.
I have tried enclosing G, still no luck :
function onEdit() {
var DEVIS_COMPLET_2018 = "MySheet";
var s = SpreadsheetApp.getActiveSheet();
if (s.getName() !== DEVIS_COMPLET_2018) return;
var r = s.getActiveCell();
if( r.getColumn() != "G" ) { //checks the column
var row = r.getRow();
var time = new Date();
time = Utilities.formatDate(time, "GMT-08:00", "MM/DD/YY");
SpreadsheetApp.getActiveSheet().getRange("G31").setValue(time); }; };
AI: Try
function onEdit(e) {
var sh = e.range.getSheet(); //sheet
if (sh.getName() !="DEVIS_COMPLET_2018" || e.range.columnStart != 7 ) { return; }
sh.getRange("G31").setValue(new Date());
} |
H: onEdit stops working when other function is run
I'm working on a script to help with a spreadsheet we use at work, but I'm having an annoying bug with the onEdit() function. After running the script from the script editor, it operates as intended (automatically sets all cells in range A3:F200 to a desired format). However, whenever I run the other function in the script called by a custom menu, called newDay(), the onEdit() function no longer does anything. Editing the spreadsheet does not reformat the range.
Here is the code:
var logSheet = SpreadsheetApp.getActiveSpreadsheet();
var sheet = logSheet.getSheetByName('Repair');
var logRange = sheet.getRange("A3:F200");
var historySheet = SpreadsheetApp.openById('spreadsheetID')
var interface = SpreadsheetApp.getUi();
function onOpen() {
interface.createMenu("Tunnel")
.addItem("New Day","newDay")
.addToUi();
}
function onEdit() {
logRange = sheet.getRange("A3:F200");
logRange
.setFontSize(10)
.setFontWeight("normal")
.setFontColor("black")
.setFontLine("none")
.setFontFamily("Helvetica")
.setBackground("#ffffff")
.setHorizontalAlignment("center")
.setBorder(true, true, true, true, true, true, "#cccccc", SpreadsheetApp.BorderStyle.SOLID); //formats cells into desired format
}
function newDay() {
var shiftDate = sheet.getRange('B1').getDisplayValue();
var result = interface.alert(
"Reset Log",
"This will clear the current log and reset forms for today's date.\n\nWould you like to record the current log?",
interface.ButtonSet.YES_NO_CANCEL);
if (result == interface.Button.YES) {
sheet.copyTo(historySheet);
var copySheet = historySheet.getSheetByName('Copy of Repair');
copySheet.setName(shiftDate);
}
if (result == interface.Button.YES || result == interface.Button.NO) {
logRange.clearContent();
sheet.getRange('B1').setValue(Utilities.formatDate(new Date(), "GMT-8", "MM/dd/yy"));
}
}
What is causing the onEdit() function to stop doing anything when newDay() is run?
AI: It was the line
var historySheet = SpreadsheetApp.openById('spreadsheetID');
This requires authentication and therefore cannot be run by simple triggers such as onOpen() or onEdit(). moving the function into newDay() and setting up manual triggers through the edit menu resolved my issue. |
H: Placing text from one cell between certain characters of another sentence
Is it possible to take a word from one cell and place it in between certain characters/words of another cell? (Obviously, I can do this one time but I need to do the same thing multiple times)
For example:
I need to take the words "Bulk Organic Alfalfa Seeds" from cell and place
in between the characters like "><" in another cell
Any help would be really really great!!
AI: cell B1: =">"&A1&"<" |
H: Google Maps fails to load in Chrome
. , ' . .
When I visit Google Maps in the Google Chrome browser, all I see is a blank grid for the "Map" mode. The "Satellite" mode works fine.
I don't see this issue in Firefox and Edge. Why does Google's own browser have this bug, and how can I fix it?
I've been having this issue for several months.
AI: Visit maps.google.com in the latest chrome
If you ever see a blank map grid, it could be because of a bugged cookie Google left in your browser.
How to Geek recommends you to just delete the cookies and see if that fixes the problem. |
H: IF function in Google Sheets gives Parse Error, what am I doing wrong?
When I type this into the cell it gives me the parse error.
=if(B10>B2,"Win:" B10 (B10-B2) "SR",if(B10=B2,"Draw:" B10 "+0 SR","Lose:" B10 (B10-B2) "SR"))
B10 is 1489
B2 is 1510
I want the cell to say if I've "won" or not, and then the stats of the game
In this case, I want the cell to say "Lose: 1489 -21 SR"
What have I done wrong?
AI: =IF( B10 > B2; "Win: " & B10 & " +" & B10-B2 & " SR";
IF( B10 < B2; "Lose: " & B10 & " " & B10-B2 & " SR";
IF( B10 = B2; "Draw: " & B10 & "+0 SR" )))
what went wrong:
parse error was generated because spreadsheet does not recognize these parts:
"Win:" B10 (B10-B2) "SR"
"Draw:" B10 "+0 SR"
"Lose:" B10 (B10-B2) "SR"
and its because there is missing character for appending which is: &
also its worth mentioning that empty space should be a part of appending text e.g. between " "
"Win: "&B10&" +"&B10-B2&" SR"
"Draw: "&B10&"+0 SR"
"Lose: "&B10&" "&B10-B2&" SR"
and then there is stacking with CTRL+ENTER for overal visual satisfaction, because 1-liner sucks
=IF(B10>B2; "Win: "&B10&" +"&B10-B2&" SR";
IF(B10=B2; "Draw: "&B10&"+0 SR"; "Lose: "&B10&" "&B10-B2&" SR")) |
H: Formulas in Google Sheets won't execute
I can't seem to get formulas to execute in a Google spreadsheet. Whenever I input a formula, it does not return any output, but rather leaves the cell blank. I have tried the following troubleshooting:
Reducing my formulas to simple queries, such as =1+2. Note that before pressing enter to evaluate this formula, I was able to see the result above the entry box as "3". Pressing enter returned no output
Toggling Iterative Calculations and Recalculations in File>Spreadsheet Details
Reopening spreadsheet, reopening browser (Vivaldi, up to date), and rebooting computer. Note that I can use formulas in other spreadsheets perfectly normally, but every sheet within this spreadsheet will not return output to formulas.
Clearing formatting manually, and with Ctrl+\ (Font, font size, font color, cell color, etc). Note that entering values normally displays correctly; only formulas do not return any output.
Removing all Sheets addons
I do not own this spreadsheet (I'm an editor), however the owner is having the same problem.
Hopefully the problem lies in some simple menu I didn't know to check. But for now, I am completely stumped and have no idea how to troubleshoot anymore.
Unfortunately I can't share this specific spreadsheet due to the content. I tried copying sheets from this spreadsheet into other spreadsheets, but the problem no longer appeared.
AI: It's a known issue that spreadsheets could become broken in such way that they can't be fixed in any way.
If you can't open and access the spreadsheet data anymore, then you should contact Google Sheets Support. Also you could try to use Google Apps Script or the Google Sheets API try to recover the data and formulas.
If you can open and access the spreadsheet data you could try the following:
Change spreadsheet settings like Regional and time-zone settings. Wait few minutes and open again the spreadsheet to check if it's working fine after that.
Restore an early version of the spreadsheet from the version history
Make a copy of the spreadsheet
Copy one sheet at a time to another spreadsheet
Download the data by using a CSV, XLXS, or other file format.
If any of the above work for you, please left a comment and share what worked for you.
References
URGENT: Google Guides - can you please restore a corrupted gDoc for me?
How to open my online spreadsheet "Google Docs encountered an error." |
H: How to efficiently copy recipients from old Gmail message
I am using Gmail webmail in Safari and Chrome on a Mac. Often I want to send a new message to all the same people as in an old email in my inbox. My workflow for this is as following:
click compose
find an old email, and click show details
copy everything in to: and paste to new message
copy from: and paste to new message
find my own address and delete it
This workflow is very tedious, and there is a high risk that I do something wrong when copying the recipients. Is there a better way? -some shortcut or something that allows me to use Reply to all as a way to make a new message to all.
EDIT:
It has been suggested to use Reply to all and then edit the subject. The problem with that is that the email does not lose its connection to the previous thread. I have sent a test to myself and looking at the source(Show original), I can see the ID of the previous thread under References: and In-Reply-To:. Maybe I should not worry about this!? -or maybe there are e-mail clients, that sort the treads from these pieces of information, and not just the subject!?
Example:
By replying to a message, and sending it to myself, the source looks like this:
The ID, ...QYT_Q@... is the ID of the message, that I made the reply to.
AI: Reply to the email then delete all the pre-populated content?
A 'reply' is really just a new email that contains the same subject, sometimes with RE: appended to it.
If you just delete this content (the subject and the mail body) then there's no link between this 'new' email, and the one you actually replied to - except it'll keep all the To: and Cc: information. |
H: Is there something similar to the dollar sign for reference dragging but between two or more sheets in the same spreadsheet?
I have a Google Spreadsheet with 10 Sheets named from 1 up to 10. I also have a sheet called Result which has this formula in one of its cells on row 1: =SUM('1'!G2:G16). I would like to drag it downwards so that that row 2 in that same column uses data from sheet 2 instead; like this: =SUM('2'!G2:G16).
Row 3 should have something like =SUM('3'!G2:G16).
Row 3 should have something like =SUM('4'!G2:G16).
And so on, after dragging the first cell downward.
Is there any way to do this with a formula or special char in Google Sheets or do I have to manually edit each cell?
AI: create a new sheet and name it Index (or use some unneeded column from anywhere)
populate it like this:
+----+---------+
| | A |
+----+---------+
| 1 | Sheet1 |
+----+---------+
| 2 | Sheet2 |
+----+---------+
| 3 | Sheet3 |
+----+---------+
| 4 | Sheet4 |
+----+---------+
| 5 | Sheet5 |
+----+---------+
| 6 | Sheet6 |
+----+---------+
| 7 | Sheet7 |
+----+---------+
| 8 | Sheet8 |
+----+---------+
| 9 | Sheet9 |
+----+---------+
| 10 | Sheet10 |
+----+---------+
then enter your Result sheet
paste this in desired cell =SUM(INDIRECT('Index'!$A1;"!G2:G16")))
and drag it down as usual |
H: Display progress of combined requirements based on values in other cells & sheets
I am compiling a reference sheet in Google Sheets for our Music group. We play covers and everyone in the group is able to contribute suggestions. These suggestions make up sheet 1. This sheet contains the title and artist of a particular song, along with the needed parts (instruments etc.) and their player.
It looks a bit like this:
Artist Song | Vocals Guitar Bass Drums Keys
U2 One | Bob Jeremy Alex Nina
The xx intro | Jim Jeremy Betsy Carl Donald
ABBA S.O.S. | Nina + Bob Lisa ? Jillian Bob
The U2 song here has no Keys part, so that cell is empty. The ABBA song has no designated Bass player yet. This song also features 2 singers (more on that later)
There is a second sheet to keep a record of the availability of the players. The left column has all players listed, top row has the dates we play. I'm using data validation to make sure only "Yes" or "No" is an option (or empty).
Lastly, there is a third sheet, which is where I'd like the magic to happen. This sheet shows only the songs from sheet 1 that have a full setup arranged. In the above example, this would be the first 2 songs on the list. I'm using Filter for this, as explained here. Now what I'd like to display next to each entry is whether the song can be played on a particular moment.
I've thought up a possible way to do this, but since I'm still a beginner, I have no idea what syntax to use.
My idea of how to tackle this:
Keep checking the date of the corresponding column
Keep check of the song name (should be unique enough but can be combined with an artist for super flexibility)
Cross-reference the song with the first sheet and look for the first part needed (either empty or has a name). In case of empty go to the next part.
Search this name in the availability sheet and check whether that person is there on the date from step 1.
Repeat step 3 and 4 for all parts.
Present the result.
If possible I would like to keep a tally of how many parts are already confirmed (for instance 4/5 parts are confirmed available), if this stays within the realm of possibilities :)
Also, how would I tackle multiple parts of the same (could make more columns..) or multiple players on the same part (would be very nice to have this but I have a feeling this can't be done really..)? In the above example for the ABBA song, if Bob is available but Nina is not.
Is my thought process (somewhat) correct? If yes, how would one accomplish such a feat?
EDIT: Here is a link to a full-fledged sheet, just like the one we use
AI: well, the magic consists of 4 sub-magic steps and one bonus magic:
1: this will list names of players (musicians) from a given cover (song), sorted from A-Z and without empty cells all into one column
=TRANSPOSE(SORT(FILTER(Suggestions!F4:Q4,Suggestions!F4:Q4<>""),4,TRUE))
2: this will check and cross reference if at given date are musicians avail with musicians that are needed to play given cover, and then it will list only persons that are avail that day
=IF($B2<>"",(IFERROR(FILTER(
(SORT(FILTER(Availability!$A$3:$A,Availability!B$3:B="YES"))),
REGEXMATCH(
(SORT(FILTER(Availability!$A$3:$A,Availability!B$3:B="YES"))),
$B2)),"")),"")
3: then there is this minor formula that basically converts matching person's names to number 1, because the previous formula has a lots of errors that are just hidden
=IF($B2<>"",(IF($B2=C2,1,"")),"")
4: and finally this shall then make final calculations to check if given cover can be performed at given date with avail musicians
=IF((COUNTIF(Calculations!$B$2:$B$30,"<>")=(SUM(Calculations!N$2:N$30))),"YES","NO")
SIDE NOTE: you cant use this kind of format: Franca/Jerome. if you want to have 2+ people under one category in "Suggestions" sheet, then you must add 2+ columns and place each person in a different cell, because otherwise it will not calculate properly who can when play what - this step (fix) needs to be done as first thing!
and ofcourse you need to set up an additional sheet named Calculations and populate it with steps 1 - 3 and when done you can just hide it all. here is an example sheet (proof that it works and how it works): https://docs.google.com/spreadsheets/d/ |
H: Google is in German instead of English
As you can see in the following picture, firefox's language is German.
Searching for 'google maps' brings as first result www.google.de/map.
What i did was to follow the steps in this tutorial: https://support.mozilla.org/en-US/kb/use-firefox-interface-other-languages-language-pack
I have installed the English (US) version of the browser
In the add-ons Manager, the Language panel shows English language pack
When trying to change the language of the user interface, i type about:config in the address bar; searching for ' intl.locale.requested' brings no result
There are other entries such as intl.accept_languages, but the tutorial does not use them. Anyway, this entry is set to English
What can i do about this problem? While the location of my company is outside Germany, the website https://www.whoismyisp.org/ identifies the location of my ISP as a german city.
EDIT: I also tried this approach:
I went to https://www.google.co.in/preferences?hl=en, and changed the Region Settings from Current Region to United States. Still the same result
2nd EDIT: several more attempts:
I typed 'about:config' in the address bar, I added the entry 'intl.locale.requested' with the value 'en-GB', and I also modified the wifi uri to point to a New York location. I also set 'geo.enabled' to false, but the results are still in german. I did not forget to restart the browser after these changes.
As pointed out here , it appears that websites derive the location based on the IP address. The only way to bypass this is to use a proxy - which might be against my company's policy, and the internet connection is pretty slow already.
AI: Go to https://www.google.com/webhp?hl=en&gl=en
Underneath the buttons should be a line containing
Google offered in: English
Click on English |
H: Compare two lists and produce a list of names not duplicated
I have one list of total available people and the second list of people who have been assigned. I would like to auto-populate a third list of the people (from the first list) who have not been assigned (list B). Basically whichever names from column A that are not used in Column B would show up in Column C.
+----+----------+----------+----------+
| | A | B | C |
+----+----------+----------+----------+
| 1 | All | Assigned | Free |
+----+----------+----------+----------+
| 2 | AJ | AJ | Dayna |
+----+----------+----------+----------+
| 3 | Dayna | Leah | Kristina |
+----+----------+----------+----------+
| 4 | Kristina | Mag | Mai |
+----+----------+----------+----------+
| 5 | Leah | Milla | Sarah |
+----+----------+----------+----------+
| 6 | Mag | Mimi | |
+----+----------+----------+----------+
| 7 | Mai | Oksana | |
+----+----------+----------+----------+
| 8 | Milla | Richelle | |
+----+----------+----------+----------+
| 9 | Mimi | | |
+----+----------+----------+----------+
| 10 | Oksana | | |
+----+----------+----------+----------+
| 11 | Richelle | | |
+----+----------+----------+----------+
| 12 | Sarah | | |
+----+----------+----------+----------+
AI: C2: =ARRAYFORMULA(FILTER(A2:B; ISERROR(MATCH(A2:A; B2:B; 0))))
bonus knowledge:
to achieve the opposite:
=FILTER(A2:A; REGEXMATCH(A2:A; "^"&JOIN("|"; FILTER(B2:B; LEN(B2:B)))&"$"))
to avoid #REF! error if D column exists:
=ARRAY_CONSTRAIN(FILTER(A2:B; ISERROR(MATCH(A2:A; B2:B; 0))); 1000; 1) |
H: Google sheet query to combine values
From various examples I've hacked together a pretty neat aggregation function which gives me an overview on which activity (strings in G) I've spent non-billable work hours (numbers in E) or billable (numbers in E) hours of work.
=query(E35:G232, "select G, sum(E), sum(F) where G != '' group by G order by sum(F) desc label G 'activity', sum(E) 'work hours', sum(F) 'billable hours'")
So this might give me:
Development | 5 | 12
Marketing | 14 | 5
Admin | 0 | 2
What I've tried, but so far failed, to do now is getting this same list with the combined hours per activity, and also sort it by that combined number. I tried combining the select with combining the sum of columns, but that gives me an error:
=query(E35:G232, "select G, sum(E), sum(F), sum(E:F) where ...
How can I further combine the grouped values to get the overall values per activity to get something like this, additionally sorted by highest combined?
Marketing | 14 | 5 | 19
Development | 5 | 12 | 17
Admin | 0 | 2 | 2
AI: You can use a double query like:
=QUERY(query(E35:G232, "select G, sum(E), sum(F) where G != '' group by G order by sum(F) desc label G 'activity', sum(E) 'work hours', sum(F) 'billable hours'"),"Select Col1,Col2,Col3,Col2+Col3 order by Col2+Col3",1 ) |
H: What video sharing services exist that facilitate sharing from a time within a video beyond YouTube?
I frequently need to share videos starting at specific times within videos. YouTube is not always feasible and I'd like to know about other possible services that also have time sharing functionality so that viewers can click on the link and the video will start at that time stamp.
What such services exist for specific time frame video sharing?
AI: VIMEO:
To share a video link that will begin playback at a specific point,
all you need to do is add a bit of code to the end of the URL. Just
add: #t= followed by the timecode of where you'd like playback to
begin.
Here is an example where playback begins one minute and two seconds
into the video: https://vimeo.com/81400335#t=1m2s
You can also use this parameter for embedded videos. To do this,
simply add #t=(timestamp here) to the end of the player URL in your
embed code. For example:
<iframe src="https://player.vimeo.com/video/81400335#t=1m2s"
width="640" height="360" frameborder="0" webkitallowfullscreen
mozallowfullscreen allowfullscreen></iframe>
If you're embedding a video and would like it to automatically start
playing, you can add the ?autoplay=1 parameter before #t= as shown in
this example:
<iframe
src="https://player.vimeo.com/video/81400335?autoplay=1#t=1m2s"
width="640" height="360" frameborder="0" webkitallowfullscreen
mozallowfullscreen allowfullscreen></iframe>
DAILYMOTION:
parameter start number 0 - Specifies the time (in seconds) from
which the video should start playing.
For a specific time just add ?start=xxxx to your url. Where xxxx
is the starting time in seconds.
Example: http://www.dailymotion.com/video/x1yp9ce?start=120 will start video
at 2 minute mark.
TWITCH:
Just add ?t=_h_m_s to the end of the url. Fill in the blanks with
the timestamp.
For example, if you want to link to a spot that is at 01:18:42, your
link would look like:
http://www.twitch.tv/floe/b/541334138?t=01h18m42s
You can also drop starting zeros, so 01:29:19 could also look like
?t=1h29m19s. If the time is at 19:51, the link could use
?t=19m51s. This way there's no need to wade through hours of stream
to find something. Hope it helps.
WISTIA:
To share your video at a specific time navigate to the Embed and Share
modal under the ▸ Video Actions menu. In the Embed & Share window,
select the Social Sharing option at the top. Under the URL you'll see
an option to Link to a specific time. Clicking the box will
automatically link to wherever you've paused the video. You can also
manually edit the time stamp.
You can do this to any Wistia link by adding the wtime= string.
Examples:
https://support.wistia.com/medias/h1z3uqsjal?wtime=2
https://support.wistia.com/medias/ktv95e6b2g?wtime=1m1s |
H: SUMIF by month different entry locations
Beforehand please check my sample sheet.
I'm trying to use SUMIF or any specific formula that shows the total amount of income of each month over on the side (March, April, May...)
As noticed the date (month) is not always the same on each column (Date 1, Date 2, Date 3...), it may vary.
I've tried SUMIF, FILTER, ARRAYFORMULA, but haven't had any luck.
Is there any way to do this or do I have to change the whole structure?
AI: S2:
=ARRAYFORMULA(SUMIF(TEXT($F$2:$P$5,"mmmmyyyy"),S$1&"2018",$E$2:$O$5))
Drag to right.
SUM E2:O5,IF F2:P5 has S1's Month&2018. |
H: Lookup another sheet get whole row in sheet and no duplicates
I have looked through the questions but somehow I just can't find what I am looking for.
What am I looking for?
I have a document with 2 sheets.
Let's say, sheet 1 is the backlog, sheet 2 is the sprint.
In the spreadsheet, I have a selection (with dropdown) where I can pick the sprint I want to see. When I click on a certain sprint I want all the rows in the backlog where this sprint is selected in my sprint sheet.
The format of the columns is exactly the same, so I just need to display the WHOLE row when the match is met.
I tried with Vlookup but as far as I found it is just for one cell.
If anyone could help I would be glad!
AI: A3: =QUERY('Product Backlog'!A2:G5,"select A, B, C, D, E, F, G where C matches '"&B1&"'",0)
to avoid #N/A:
=IFERROR(
QUERY('Product Backlog'!A2:G5,"select A, B, C, D, E, F, G where C matches '"&B1&"'",0),
"NO DATA") |
H: How do I stop the Disqus comment count from loading on Blogger post timestamps?
Disqus seems to automatically add a comment count link next to timestamps on Blogger posts.
I don't want the count to show. It's at the bottom of my posts right next to the disqus iframe which already shows the count.
I know how to hide the item by adding css.
.disqus-blogger-comment-link {
display: none;
}
What I'm looking for is a way to stop the javascript from loading at all to save on page load speed.
Either via disqus (somehow) or blogger (via the theme editor html) would work, but how?
AI: Go to your Disqus code, There are three script tags, Remove the last one
Remove this
<script type='text/javascript'>
(function() {
var bloggerjs = document.createElement('script');
bloggerjs.type = 'text/javascript';
bloggerjs.async = true;
bloggerjs.src = '//' + disqus_shortname + '.disqus.com/blogger_index.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(bloggerjs);
})();
</script> |
H: How do I request a refund on Fandango?
I want to request a refund for a ticket order on Fandango, as I can't make the show time.
According to Fandango's FAQ, you can request to exchange or refund movie tickets up until the posted showtime, but the instructions on how to request a refund are frustratingly vague.
How do I request a refund for movie tickets on Fandango?
AI: Sign in to your Fandango VIP account you used to make the order.
If you purchased tickets as a guest, create a Fandango account with the same email address you used to order the tickets.
Open your Purchase History. (My VIP Account → See Purchase History)
Find the order you want to refund and click Can't make the show?
Choose if you want to request a cash refund (minus convenience fee) or exchange for Fandango credit.
Select a reason for refunding and click Continue. |
H: YouTube enable old layout
I am not happy with the new YouTube layout:
it is very slow to load compared to the old version. Can I switch back to the
old version somehow?
AI: I could not find an option anymore in the UI, but you can add a cookie to enable
the old layout (case sensitive):
document.cookie = 'PREF=f6=8';
You can also use this expanded cookie to disable autoplay and default to "list"
layout:
document.cookie = 'PREF=cvdm=list&f5=30030&f6=8'; |
H: Search prices for a list of items
I have a list of supported Router models for the gluon Freifunk firmware. and would like to create an automated list, that always shows the actual prices for those routers.
How is it possible to search for more items at https.//geizhals.de or a similar price search engine?
This is my list:
ALFA Network - AP121 - 150 Mbit/s
ALFA Network - AP121F
ALFA Network - AP121U
ALFA Network - Hornet-UB
ALFA Network - Tube2H
ALFA Network - N2
ALFA Network - N5
Allnet - ALL0315N
AVM Fritz!Box 4020
Buffalo - WZR-HP-AG300H
Buffalo - WZR-600DHP
Buffalo - WZR-HP-G300NH
Buffalo - WZR-HP-G300NH2
Buffalo - WZR-HP-G450H
D-Link - DIR-505
D-Link - DIR-825
GL-AR150
GL-AR300M
GL-AR750
GL-iNet 6408A
GL-iNet 6416A
Linksys WRT160NL
Netgear WNDR3700
Netgear WNDR3800
Netgear WNDRMAC
Onion Omega
OpenMesh A40
OpenMesh A60
OpenMesh MR600
OpenMesh MR900
OpenMesh MR1750
OpenMesh OM2P
OpenMesh OM2P-HS
OpenMesh OM2P-LC
OpenMesh OM5P
OpenMesh OM5P-AN
OpenMesh OM5P-AC
TP-Link Archer C5
TP-Link Archer C59
TP-Link Archer C7
TP-Link CPE210
TP-Link CPE220
TP-Link CPE510
TP-Link CPE520
TP-Link RE450
TP-Link TL-WDR3500
TP-Link TL-WDR3600
TP-Link TL-WDR4300
TP-Link TL-WR710N
TP-Link TL-WR842N/ND
TP-Link TL-WR1043N/ND
TP-Link TL-WR2543N/ND
TP-Link WBS210
TP-Link WBS510
Ubiquiti Air Gateway
Ubiquiti Air Gateway LR
Ubiquiti Air Gateway PRO
Ubiquiti Air Router
Ubiquiti Bullet M2/M5
Ubiquiti Loco M2/M5
Ubiquiti Loco M2/M5 XW
Ubiquiti Nanostation M2/M5
Ubiquiti Nanostation M2/M5 XW
Ubiquiti Picostation M2/M5
Ubiquiti Rocket M2/M5
Ubiquiti Rocket M2/M5 Ti
Ubiquiti Rocket M2/M5 XW
Ubiquiti UniFi AC Mesh
Ubiquiti UniFi AP
Ubiquiti UniFi AP AC Lite
Ubiquiti UniFi AP AC LR
Ubiquiti UniFi AP AC Pro
Ubiquiti UniFi AP LR
Ubiquiti UniFi AP Pro
Ubiquiti UniFi AP Outdoor
Ubiquiti UniFi AP Outdoor+
WD - My Net N600
WD - My Net N750
Netgear WNDR3700
Netgear WNDR4300
ZyXEL NBG6716
D-Link DIR-615
TP-Link TL-MR13U
TP-Link TL-MR3020
TP-Link TL-MR3040
TP-Link TL-MR3220
TP-Link TL-MR3420
TP-Link TL-WA701N/ND
TP-Link TL-WA730RE
TP-Link TL-WA750RE
TP-Link TL-WA801N/ND
TP-Link TL-WA830RE
TP-Link TL-WA850RE
TP-Link TL-WA860RE
TP-Link TL-WA901N/ND
TP-Link TL-WA7210N
TP-Link TL-WA7510N
TP-Link TL-WR703N
TP-Link TL-WR710N
TP-Link TL-WR740N
TP-Link TL-WR741N/ND
TP-Link TL-WR743N/ND
TP-Link TL-WR841N/ND
TP-Link TL-WR843N/ND
TP-Link TL-WR940N
TP-Link TL-WR941ND
RaspberryPi 1
RaspberryPi 2
TP-Link Archer C2600
TP-Link TL-WDR4900
GL-MT300A
GL-MT300N
GL-MT750
Ubiquiti EdgeRouter X
Ubiquiti EdgeRouter X-SFP
VoCore2
A5-V11
D-Link DIR-615
VoCore (8M)
VoCore (16M)
Banana Pi M1
AI: not possible on https://geizhals.de/
but you can make a custom spreadsheet which will track down prices for you. something like: https://docs.google.com/spreadsheets/d/
unfortunately, not all items from your list are in the geizhals.de database - hence those empty rows |
H: Confirm that values in a column are alternating
I have a column, call it A, of around 1500 cells. Each cell contains either "a" or "b". For the most part, the As and Bs are alternating, but sometimes there are repeating values.
An example of A1:A20 could be as follows: {a,b,a,b,a,b,a,b,a,b,a,b,b,a,b,a,b,a,a,b}.
(In my actual data these values may be different, however the entire list of cells is guaranteed to begin with "a" and end with "b").
In columns B and C, I have some other values (in my actual spreadsheet they are dates). Each "a" or "b" in Column A corresponds to two dates in the same row (one in column B, and one in column C).
My goal is to remove duplicate As and Bs (in the manner described below), along with the dates associated with these duplicate values. I should be left with a list of alternating As and Bs — matched with the same dates as in the original data (all columns move synchronously).
The rules for deleting duplicates are as follows:
If there are two "a" consecutively, remove the first "a".
If there are two "b" consecutively, remove the second "b".
Note that there may be more than two consecutive As and Bs. In such a case, the first two should be evaluated and one removed, then repeat for the next two, etc until one remaining.
I believe this could best be accomplished with a filter (maybe a query?) somehow, but I was unable to get it to work or even seem close. Using the above example, A13 (and corresponding B13:C13) and A18 (and corresponding B18:C18) should be removed. The resulting A1:A20 (after values below are shifted up) should read {a,b,a,b,a,b,a,b,a,b,a,b,a,b,a,b,a,b,a,b,...}. Every remaining value in column A should still be paired with the original value from column B.
As an alternative semi-solution, would it be possible to write a conditional formatting script to highlight the duplicate values? It is not too difficult to delete the repeating values (there are very few) manually, but very difficult to tell which ones to delete without them being highlighted. I tried highlighting "a" one colour and "b" another to look for non-alternating patterns, but it was still difficult to quickly recognize.
AI: it can be done with brute force :)
here's the sheet: https://docs.google.com/spreadsheets/d/
you can put calculations from D to AE into separate sheet or just hide those columns
ofcourse AF (respectively AG, AH) can be dragged down for the population. select AF2:AF5 and drag down the blue square. also you can drop half of those columns - I just left them there, so you could see the whole process of getting final result |
H: Grab route from other site
Is it possible somehow grab route from others maps and use in my personal map?
For example how to grab map from this ultimatedrives site?
AI: go to https://www.ultimatedrives.net/ site
press CTRL+SHIFT+I (on chrome)
and then CTRL+F
type google.maps.LatLng
copy paste coordinates into https://www.google.com/maps/
press search icon and drag blue route to adjust it
done |
H: How do I display the results of console.log in JS Fiddle?
Using JS Fiddle how do I display the result of console.log. I'm teaching a class, for free, and I'd like to give me students a place where they can go and run:
console.log('foo');
I want them to be able to see the results of the .log().
AI: click on that arrow next to JavaScript
and as FRAMEWORKS & EXTENSIONS select No-Libary (Pure JS)
paste your console.log('foo'); in JS box
under Resources add https://rawgit.com/eu81273/jsfiddle-console/master/console.js
and run your script hitting that Play button |
H: Is there a keyboard shortcut to have Google correct one misspelled word?
When I look at the keyboard shortcuts for Google Docs, there are shortcuts listed to move forward and backwards between misspelt words, which work.
Is there a keyboard shortcut to fix a misspelt word?
Right now, I find myself having to use my mouse to right click on the word and then scroll up to select the spelling.
Is there any keyboard shortcut that just replaces the spelling with the correct word?
AI: depends if you have a good keyboard. there is so-called Menu Key and usually sits on the right side next to RIGHT CTRL key - https://en.wikipedia.org/wiki/Menu_key
however, if you don't have anything like that on your keyboard you can use a shortcut for that which is SHIFT + F10
so the final combo should be:
CTRL + ' / CTRL + ; ... ≣ MENU KEY ... ARROW DOWN ... ENTER
CTRL + ' / CTRL + ; ... SHIFT + F10 ... ARROW DOWN ... ENTER |
H: How to compare multiple values in Google sheet in a single row?
Please check the attached screenshot.
I want to compare values in "User 1 Values" and "User 2 values" and I want to assign 5 points for each value that is common.
What formula do I write in "Actual Points" to achieve this?
AI: =SUMPRODUCT(NOT(ISERROR(MATCH(SPLIT(B2,", "),SPLIT(C2,", "),0)))*5)
SPLIT Both values by "," and MATCH them. |
H: Spreadsheet calculating sum of values as per date and specific text
I have the following data in a Google Spreadsheet:
+------+------------+---------------+---------+---------+
| Date | Difficulty | |Date | Points |
+------+------------+---------------+---------+---------+
| Jul15| Easy | Easy (1pts) | Jul15 |4 |
| Jul15| Easy | Medium (2pts) | Jul16 |5 |
| Jul15| Medium | Hard (3pts) | | |
| Jul16| Hard | | | |
| Jul16| Medium | | | |
+------+------------+---------------+---------+---------+
I would like to add up all the points for a date in the column date/points where points for a date are next to each other. Points depend on difficulty and are in column 3.
I was able to get the dates in column 4 by using
=UNIQUE(A2:A800)
However, unable to get points 4, 5 etc in column 5. Can someone suggest how it can be done?
AI: Y1:Easy Z1:1
Y2:Medium Z2: 2
...
C1:
=ARRAYFORMULA(QUERY({A:A,IFERROR(VLOOKUP(B:B,Y:Z,2,0),B:B)},"Select Col1,sum(Col2) where Col1 is not null group by Col1",1))
VLOOKUP to convert "difficulty" to "points"
QUERY to aggregate values |
H: Preview custom text in fonts.google.com by URL
Occasionally found this type of link (Google Fonts Previewer undocumented feature?) - search with query:
https://fonts.google.com/selection?query=some+search+text&selection.family=Archivo+Black|Asul|Cardo
It gives a list of fonts, but preview-test-text must be entered in the input box.
Is it possible to put custom text in URL (i.e. basically - to generate a preview with the link) to view how it looks in https://fonts.google.com/?
Maybe some kind of:
https://fonts.google.com/selection?query=search+text&selection.family=Archivo+Black|Asul|Cardo&preview=Some+Custom+Text+for+Preview
AI: this is not possible to achieve and also it's unwise for Google to provide such "luxury" coz it would bloat them |
H: Some saved places are not shown on map
I have saved Dune of Pilat to my custom list:
If I zoom out I see my other bookmark from the same list, but there is no Dune of Pilat mark on map.
Why some bookmarks are visible and some not from the same custom made list?
AI: this is (probably) due to a bug in Google Maps.
you just need to unhide them
also whenever you enter directions it will automatically hide your labels (all except those with star) even if they are set as unhidden and/or public
and here is how to show them during entering directions: with the mouse, if you deselect the last point that was selected as a destination, they will show up |
H: Is there a free cloud storage app to install on my server?
I am looking for a free web application to manage cloud storage so that I can install it on my web server and serve client requests? Let's say I want to have my own Dropbox (on my own domain like example.com). That way I will have complete control over files and storage.
AI: Try Nextcloud or OwnCloud. Both are quite similar as Nextcloud is a fork of OwnCloud. |
H: How to perform multiple operations where the IF statement is true?
The function below is what I use to handle contact information (email/phone numbers). If the entry is an email id (has text), it will keep it as is. When a phone number is entered, it does a variety of things to it.
=IF(ISNUMBER(E2), IF(LEFT(E2, 2) = "44", REPLACE(E2,1,2,"0"), CONCAT("0",E2)), E2)
I am trying to add the code/function below to the phone number before Google Sheets applies the above formula.
=REGEXREPLACE(TEXT(E2,"##############"),"\D","")
Basically, if cell E2 is a number, then I want to REGEXREPLACE that number first, and then perform the additional operations. I'm not sure how to join the two formulas.
You may have a look at the expected output, and test your formulas here: spreadsheet sample
AI: IF statement consists of 3 parts. understanding how it works:
if (something is something, do this, if not - do this)
so in formula expression:
=IF(E2="something", "its ok, do nothing", "E2 isn't ""something"" do something")
things get confusing if you want to do more advanced things, however, 3-part rule always remains
solution 1:
cell B3: =REGEXREPLACE(TEXT(A3,"##############"),"\D","")
cell C3: =IF(B3="",A3, IF(LEFT(B3, 2) = "44", REPLACE(B3,1,2,"0"), CONCAT("0",B3)))
hide column B
see: https://docs.google.com/spreadsheets/d/sheet1
solution 2:
cell B3:
=IF(AND(ISNUMBER(A3),LEFT(A3, 2) = "44"), REPLACE(A3,1,2,"0"),
IF(AND(ISNUMBER(A3),LEFT(A3, 2) <> "44"), CONCAT("0",A3),
IF(AND(ISTEXT(A3), LEFT(A3, 3) = "+44"),REPLACE(REGEXREPLACE(TEXT(A3,"##############"),"\D",""),1,2,"0"),
IF(AND(ISTEXT(A3), LEFT(A3, 2) = "07"), A3,
IF(AND(ISTEXT(A3), LEFT(A3, 1) = "7"), CONCAT("0",REGEXREPLACE(TEXT(A3,"##############"),"\D","")),
IF(ISTEXT(A3),A3))))))
see: https://docs.google.com/spreadsheets/d/sheet2
why it didn't work for you:
cells A7, A9 and A11 are in your sheet formatted as TEXT and not as NUMBER while your formula claimed =IF(ISNUMBER(...etc. so returning value was equal to the original/initial value. |
H: How do you link the value of a checkbox to another checkbox
I am using the checkbox feature in Google Sheets and I have another checkbox that I would like to be ticked when the original one is ticked.
I tried using the formula where the original checkbox is A1 and the secondary checkbox is B4 I would enter the formula =A1 in the B4 formula field, however, this just inserts the value true not a ticked checkbox.
AI: This can't be done via "standard" means. Formulas are not permitted as custom checked/unchecked values.
here is one of many methods of how to fake it:
decide on cell height / width / color / background color
insert checkbox
zoom in via browser zoom CTRL + +
take a screenshot (ticked and unticked)
photoshop it (count for the frame around checkbox)
upload it (preferably on your Google Drive to minimalize update lag response)
and then use a simple IF statement to insert those images based on another checkbox
=IF(E23=1;
IMAGE("https://i.imgur.com/DgTwvYi.png");
IMAGE("https://i.imgur.com/8AxCgKZ.png")) |
H: Export data from 1 Foursquare account and import it to another one
I see that there's "Export data" option (already requested it). However, is there a way to import it into a new Foursquare account?
AI: Foursquare doesn't support importing exported data. Once it's exported you can import it to Google Maps. |
H: Removing someone who has taged themselves as working for your page
You see I sort of have an issue with a former employee who is still listed as working for me on his facebook profile. I would like to know if it is possible for me to remove that tag from his profile. Contacting him and asking nicely is not an option.
AI: If contacting him and asking nicely (or by force) is not an option, you can't remove that tag by any legal means.
If you could, it would mean a violation of his privacy and a free choice. Even if its a lie, he did not anyhow violate (willingly or unwillingly) any ToS rules, simply because there is not such a rule stating that any information on the internet can't be a lie. |
H: Conditional Formula using two string values to generate an integer?
I have a sheet consisting of information on items. These items have string qualities (Located on columns C & D) that affect a numerical value (Located on Column E). How do I use the IF Formula to generate an expected number derived from what is in the C & D cells of the corresponding row?
Right now I have the following:
=IF(C3="Pistol";+2;
IF(C3="SMG";+1;
IF(C3="Shotgun";+2;
IF(C3="Assault rifle";+2;
IF(C3="Sniper rifle"; +3;
IF(C3="Rocket launcher"; +4;
IF(C3="Laser";+4;
IF(D3="Tediore";-1;
IF(D3="Torgue";+2;
IF(D3="Chrono";-2))))))))))
On this graphic, note that the "Pistol" attribute should add 2 to the Rolled value, and the "Tediore" value should subtract 1, but it doesn't
AI: solution:
=SUM(IF(C3="Pistol"; +2;
IF(C3="SMG"; +1;
IF(C3="Shotgun"; +2;
IF(C3="Assault rifle"; +2;
IF(C3="Sniper rifle"; +3;
IF(C3="Rocket launcher"; +4;
IF(C3="Laser"; +4;))))))) + IF(D3="Tediore"; -1;
IF(D3="Torgue"; +2;
IF(D3="Chrono"; -2)))) |
H: How to create an histogram with inner divisions in Google Sheets?
I have a column of grades on a Google Sheets document and I want to generate something like that:
I only managed to create a simple histogram with custom bucket size, but I want it to be more informative and show the distribution of the grades in each bucket. Is that possible? If so, how?
I also tried the Stacked chart type, but haven't succeed in doing what I'm looking for.
AI: If you have a list of grades in the form of raw data, to use a stacked bar chart to make an histogram first you should create a table of frequency distributions. Since you want to show "inner divisions" you should include a column for each "division".
The shape of the table of frequency distribution with inner divisions should look like the following
+0 +1 +2 +3 +4
50-54
55-59
...
If you don't wan't to do this by yourself then you could look if there is a Google Sheets add-on for statistics similar to Statistics (AFAIK it hasn't an histogram with "inner divisions")
Related Google Sheets Functions
FREQUENCY
FILTER
QUERY
Related Q&A
Create chart with total for each score |
H: Get route distance in Google My Maps
Creating a map in Google My Maps by adding a route. Route drawing is fine, but how to get the distance between points?
AI: click on 3-dots
select Step-by-step directions |
H: Macro in Google sheets put data in empty cell every month
My question
pick up date and write in the following empty line?
I want to copy a data from a fixed cell to a database and that it always comes under the last line.
For example, Data from cell A1 from sheet1 and write on sheet2 in D1 and then a month later the data from A1 from sheet1 write on sheet2 in D2 ectect.
The data from D1 must not change when we put de data in D2
I have a script but it does not work at all
/** @OnlyCurrentDoc */
function myFunction() {
var spreadsheet = SpreadsheetApp.getActive();
spreadsheet.getRange('D1').activate();
spreadsheet.getCurrentCell().setFormula('=Blad1!U29');
spreadsheet.getActiveRangeList().setNumberFormat('0');
};
AI: Copying the data from the fixed cell
This is the simple part, but you can do it slightly differently from what you have posted:
var spreadsheet = SpreadsheetApp.getSheetByName('Sheet1');
var cellValue = spreadsheet.getRange('A1').getValue();
This will do two things:
Get the exact tab (sheet1) that you want to get the value from, rather than whichever tab was last active
Capture that value without moving the active "cursor" around the sheet by grabbing that Cell object and storing the value within
For setting the next cell on Sheet2
My assumption is that you want to go down column D and find the last entered value. Then copy the new value below that? (let me know if this is incorrect)
There are a few ways to do this, depending if you have empty cells in that column, if this will always be the lowest row on that sheet populated, etc.
The following is a simple way if it's always the last row of data on the sheet:
var rowToUpdate = spreadsheet.getLastRow() + 1; //Gets the row after the last row on that sheet with data
spreadsheet.getRange("D" + rowToUpdate).setValue(cellValue); //Sets the value to the next row to the value we grabbed earlier |
H: Is it possible to download EXIF GPS info from Google Photos?
Google Photos has this nice feature of geotagging pictures even if they didn't have EXIF GPS info. It does it based on your Android devices GPS history.
When downloading photos however, the GPS information seems to be lost. Is there a way to include it in the export? Is it possible that the GPS info is somewhere in the metadata?
AI: I use https://takeout.google.com and it downloads the pictures and the metadata in JSON format. Make sure to un-select everything but Google Photos. |
H: QUERY for like-minded rows
Scenario
Consider the following query:
=QUERY(A15:E861, "select B, sum(D) group by B")
This works for rows with col B's that have the SAME description eg.
1 | abc | n | 10
2 | abc | n | 10
3 | cba | n | 10
Will result in
abc | 20
cba | 10
Question
But let's say I have
1 | abc-#ref123 some description | n | 10
2 | abc-#ref456 another description | n | 10
3 | cba-#ref889 last description | n | 10
And I want to ignore the "$refxxx description". How do I go about doing this?
AI: F1:=ARRAYFORMULA(SUBSTITUTE(B15:B861; B15:B861; LEFT(B15:B861; 3)))
and then: =QUERY(A15:H861; "select F, sum(D) group by F") |
H: How to remove insignificant decimal point in Google Spreadsheets?
I'm trying to format a number in Google Spreadsheets. I want it to show the thousands comma, then a period ., followed by mostly 3 digits, only when necessary.
For example:
1,234.56789 => 1,234.568
1,234.5 => 1,234.5
1,234 => 1,234
1,234.00 => 1,234
I tried #,#.#, but then the period shows up always. #,#.0 doesn't omit the decimal point when its value is zero.
AI: closest you can get is to use 1+ column
go to 123 or Format
select Numbers
select More formats
select Custom number format...
type: #,###.###
and corect it with: =IF(RIGHT(A2;1)=".";SUBSTITUTE(A2;".";"");A2)
https://docs.google.com/spreadsheets/d/ |
H: Are any Gmail addons published by Google?
There are many Gmail addons. Are any of them published and maintained by Google?
My emails are private so I will only run software against my emails if that software is written by Google or myself.
AI: AFAIK there are only one Gmail add-on published by Google: Hire by Google.
It's worthy to say that at this time publishing Gmail add-ons submits a review request to Google. Ref. https://developers.google.com/gmail/add-ons/how-tos/publish |
H: Is there a way to hide the Google Calendar sidebar / navigation pane?
Preferably I want to be able to toggle the sidebar on and off. I tried several user scripts on Chrome but they didn't seem to work.
AI: Installation
Install User JavaScript and CSS or another extension that allows adding custom CSS.
Open google calendar
Add a new CSS rule
The URL for the CSS rule should be: calendar.google.com
The css code should be: .AOL3Kb { display:none; }
Usage
To toggle the sidebar, activate or deactivate the script in the User JavaScript and CSS extension menu and reload the page with the F5 key. |
H: Google Drive indigestion over folder I moved from one place to another
I have Google's Backup and Sync (current incarnation of Google Drive for PC) installed on two laptops.
In the web interface, on Chrome, I dragged the folder "Tools" to the folder "Automation." On both of my laptops, this change does not show up in Windows Explorer.
Inspection of the blue arrow in the white cloud symbol in the Task Tray reveals "Can't sync one item" --> Download Error - ...\Tools".
Both laptops are running Windows 7. The folder Tools is within the file hierarchy owned by my work persona, which uses the Google Suite, and as a result when I shared the main folder, there was a warning message that the folder was going to be shared with someone outside the organization. Does that have something to do with the problem? Is it because of the way I moved the folder?
I tried quitting Backup and Sync on one laptop and then restarting the sync program -- that didn't help.
AI: Solution:
Turns out there was a file within the Tools subfolder that was open on one of the laptops.
It's a shame the browser interface didn't detect that -- but I suppose that would be asking too much. |
H: Check value even if it doesn't match validation
In my Google spreadsheet, I have a column G of dates that interviews are/have been scheduled on. There is a validation set on it to validate for dates with a warning. Every once in a while, when someone was adding historical data but didn't know the right date they just put an x that the event has occurred (or cancelled if it was cancelled, or a variety of other non-blank statuses).
I'm now trying to use Query to get for all rows where that column is empty (regardless of validation)
I have
=QUERY('Interview Planning'!A:G, "select D, A, F, G WHERE G IS NULL")
But seem to be getting back any row for which G is not a valid date, not just where it is NULL.
How do I make it ignore the validation?
Demo of the issue:
https://docs.google.com/spreadsheets/d/14HmBvzjjo_z88WtfKAwYckIUNruTA8ivZEUaefKj2qw/edit?usp=sharing
AI: try this:
=QUERY('Interview Planning'!A:G; "select D, A, F, G where G = ''"; 1)
and also select column G end set it as plain text
https://docs.google.com/spreadsheets/d/ |
H: Filter data in Google Sheets spreadsheet for me only, not any other shared users / viewers
We have a "Google Drive Spreadsheet" that 4 team members use. (User A, B, C, D)
Users need to apply filters to the spreadsheet, but from time 2 or more users are trying to filter the spreadsheet at once. This causes issues as they may be trying to filter the data to review it / analyse it on different things.
Is it possible User A filter data in a way that it will only be visible to User A, but if User B, C, D where in the spreadsheet they would see the unfiltered data and be able to create their own filters which would in turn no impact upon other users either?
AI: You need to have the users define "Filter views" through the Data -> Filter Views menu. See Create, name, and save a filter view
Basically, this creates a filtered view which only one user sees, and several users can have different filter views active on the same data at the same time. |
H: Can't change permissions for a Google Calendar that's under "My Calendars"
We have a G suite account where all users add to and edit one calendar. When we got a new employee, as a Super Admin, I was unable to add them to the calendar nor edit the permissions.
I went on a hunt to figure out who it belonged to as I seemingly didn't have access to it, telling me that it may be outside of our domain. Miraculously, after reactivating and logging into an old suspended account from a previous employee, I found it under "My Calendars". When I tried to go edit the permissions, I ran into the same problem, the options had no dropdown/were greyed out and they only allowed people to view events.
So I exported the calendars and transferred ownership of the calendars to my admin account, but when I logged in, the transferred calendars displayed nothing. Luckily the export worked and I was able to bring in the calendar to a newly created calendar on the Admin account, but then that only allowed me to set it to view only again for the organization, everything else was greyed out!
I was able to add each individual account with the permission to edit, so in the end it worked out, but my question is why was I not able to edit permissions as a super admin or when it was listed under my calendar in the owners account, and why did nothing transfer over?
AI: I had a similar problem before. I just did some more test, and here is my conclusion:
"Make changes to events" is not available for "Make available for organization" (the last two options are grayed out for me also).
You have to explicitly invite users...
Or you can create a user group, add members to that user group, and then invite the user group. For example, we have a "all@company.com" user group which includes everyone. User group is also handy for sending mail to people in a group or for sharing documents with a group.
However, if a user group includes external users, they aren't granted access to the calendar. You have to add external users individually. |
H: How can I toggle or shrink the WhatsApp web sidebar?
I want to view WhatsApp web in a narrow window next to my other windows. Therefore I want to shrink or toggle the contacts sidebar.
AI: Download Stylus (for Chrome or Firefox)
Click Stylus icon from the toolbar, click "Manage"
Click "Write new style", click "Import"
Copy the text below to text box:
@-moz-document domain("web.whatsapp.com") {
.k1feT {
flex-basis: 80px !important;
}
}
Click "Overwrite Style"
Enter a name for your style (e.g. "Whatsapp")
Click "Save", refresh Whatsapp Web page. |
H: Multiple IF conditions nested with a CONCATENATE
I have a formula as follows which I'm using for a scheduling system within Google Sheets:
=IF(B2="","",(CONCATENATE($B$1&" "&B2&CHAR(10)&$C$1&" "&C2&CHAR(10)&$D$1&" "&D2&CHAR(10)&$E$1&" " &E2&CHAR(10)&$F$1&" " &F2&CHAR(10)&$G$1&" " &G2)))
Currently, my formula works b2 has a value inside it which is great, what I want, however, is for the formula only to show if one value is inside either.
B2, C2, D2, E2, F2 or G2.
so if c2 has a value I want the formula to parse.
I've tried
=IF(B2,C2,E2) etc with no luck.
I've also tried:
=IF(OR(B2="",C2="") which parsed the formula but kept it visible even with no data.
Reason for this is that I pull these fields into a master schedule and I only want it to show when one of the fields is populated if that makes sense? otherwise, the schedule will look far to busy.
https://docs.google.com/spreadsheets/d/1KE3VOI43M4-QlWB0EZldCqR73d3RHDnRnUNlv1MqLMo/edit?usp=sharing
Document for you guys.
AI: here it is:
https://docs.google.com/spreadsheets/d/
=IF(A2<>"",CONCATENATE(
IF(B2<>"",$B$1&": "&B2&CHAR(10),),
IF(C2<>"",$C$1&": "&C2&IF(OR(D2<>"",E2<>"",F2<>"",G2<>""),CHAR(10),),),
IF(D2<>"",$D$1&": "&D2&IF(OR( E2<>"",F2<>"",G2<>""),CHAR(10),),),
IF(E2<>"",$E$1&": "&E2&IF(OR( F2<>"",G2<>""),CHAR(10),),),
IF(F2<>"",$F$1&": "&F2&IF( G2<>"", CHAR(10),),),
IF(G2<>"",$G$1&": "&G2,)),) |
H: Copying values between Google Sheets
I have 2 Google Sheets. I have data on Google Sheet A and I would like it to automatically transfer some values to Google Sheet b.
For example, I have some email addresses and some data associated with them organized by row. So one row corresponds to one email address. I want to be able to take the existing data (and any data I add) on sheet A and and have it automatically transfer certain values in sheet A to sheet B (matched by columns) such that if I input the email address on sheet B on an email address column in sheet B it will auto-populate values from cells corresponding to that email addresses row in sheet A. So once I insert the email address in sheet B it will take the corresponding name of that person in sheet A and input it in the name column I have in sheet B.
What type of function would I need to write for this?
AI: this could be solved in many ways, one of which is:
=IMPORTRANGE("URL-of-your-spreadsheet"; "Sheet1!A:Z") |
H: Importing sheet into Google Docs but cell images are not shown
I am importing Google Sheet (with images embedded into cells with =image("img_url")) into Google Docs document but the images are not displayed, just the text data.
Any idea how to achieve that images would be displayed as well?
UPDATE:
This is the link to my Google Sheet: https://docs.google.com/spreadsheets/d/13QgSblHXXN8ZwboBfUyDAMF1r2ohlQp-7f7DETophdg/edit?usp=sharing.
Image is included in cell A1 like this:
=image("https://drive.google.com/uc?export=download&id=1bblx_jApzyiJEdGyK3RIah_tVK01Iml1").
I am importing it in this Google Doc, page 3, under More content section: https://docs.google.com/document/d/1IlXPGONrUmm7q3vXIDFcPT_qdqa-UT2bFD1M64rTaVo/edit?usp=sharing.
Text from Cell B1 is displayed but the image from Cell A1 is not.
AI: to import a spreadsheet into docs, where spreadsheet contains an image embedded in a cell, is not supported by docs. the image can be only manually re-copied, but by updating the sheet it will get re-lost.
Copy image from Google Sheets to Google Docs |
H: Google sheets convenience question: consolidating a function
This might be closer to a math question with a stupidly easy answer, but I can't figure out the order of functions to use in my cells.
I am trying to find the sum of the absolute values of the differences between two columns of four rows each. A bit of a mouthful, but hopefully the formula I have explains it well enough. =SUM(ABS(A1-B1)+ABS(A2-B2)+ABS(A3-B3)+ABS(A4-B4)) This formula gives me the exact answer I am looking for.
The issue is that I will need to use this formula for hundreds of rows, meaning I would have to type out +ABS(Ax-Bx), x being the row number, hundreds of times. I don't want to do that. Is there a way I can rewrite the function (either mathematically or in terms of google sheets functions) so that I only have to input, say a range and avoid having to type out 100 ABS functions?
I would also accept some easy way to type out 100 copies of ABS(Ax-Bx) with an ascending x value so I can just copy and paste it into the function.
AI: What you need is an array formula, which is designed for just this kind of problem. It lets you apply a formula to every row in a range. There are lots of tutorials online, but here’s a link to the official documentation. |
H: Google Sheets URL length limit?
Is there a length limit for a URL (especially for an embedded image) in Google Sheets?
I'm trying to create a cell with an image by a specific URL, in the following way:
=IMAGE(URL)
It works at the creation moment, but a short time afterwards it's not showing the picture anymore. I checked a few times a day later, and the image was missing, although the URL is valid.
Tried to both give IMAGE a direct URL (with quote marks), and also pointing it to a cell that contains a URL.
https://lh3.googleusercontent.com/-mK3Eid7Vg8ytUbbe3W7x-0ZrFE_nXPMrYpIG8ZfhkCop1lSVv8PrY00YGrt_sqLOEaHnqdb0zRft-2YviQ1R_1HPkVxM9U8Ryb8pNFZzy-GHYHEBFWjUByFf-8ifYye1OqvL_Bo287cF6TPLJZx8l9zK6hB6TKVjDQdTqBv9g_vMoyH1oV_OzVPsXfGkqYSgENyviTXjvEeLZjv1HEIx0dFEMVxBULhdY6VaQgNcwHXiMiUf552Z-wA3AXLSA7vZ8d3oZgwb6cEB0d4JwwSGugR-wO0_QtMo6CZGuwe-gddNBiPEhCjs93UqzhAxAfYfC2NHEsgcQN7tor84CNRnbSUoxGh3Ee3YXMvzXlXRL9yWEdX2q7OgG7wzMz0sTEZt81BxlzVeY2g2tvHAB5Hp_HpzTEbGN0dBp3tMWuE-bkf3jbCHOGag70H8ti-8p82ZVjF6Evn9Wk8OZEhAcW9u_04DpTFrIQj_zUw3cl6E4BMkM3iVvFzoOdUNZC60O1ID453BEi9EWGP7_DneZ7-mjl2MFqinXM0GvhEMq4_NYljU-uNM704fOrD49O0GaGJatY7RfkRwocVc4ZTjcq_DF2ozhSeV8q5kbH1y7S_=w728-h947-no
Here's an example sheet - all worked on creation.
The URLs that I tested with, were 663 chars long.
AI: The problem is that https://lh3.googleusercontent.com/... are temporary URLs. See answer to How to get the direct link to an image in my Google Photos? |
H: Using Google Docs to fit criteria set by professor for paper
My friend's college professor asked her to write a paper for class with the following criteria:
written in MS word
A4 paper, margins 35mm on top, 30mm on sides and bottom
font size 11pt (it's a japanese essay so the font is MS P 明朝)
line spacing 18pt, 36 lines per page
However, neither of us have MS word, and would rather not pay over a hundred dollars + a monthly fee just to write an essay.
Is there anyway to fulfill these requirements using Google Docs? The essay will be printed and handed in, no digital copy.
I found the settings for line spacing in Google docs, but it's measured in number of lines, not in "points". And when I do the math (18pt / 11pt (the font size) = 1.64), the number of lines per page comes out to 30 instead of 36.
Is there anyway to make the formatting work correctly using Google Docs (or another free solution)?
AI: You might want to give Open Ofice or LibreOffice a try. You will fnd all the needed options there. To get around your lines/page issue i would recommend to just adjust the linespacing.
From my experience in the academic world, its a lot easier to just use the demanded software (MS Windows & Office, Citavi, etc.) and most of the times the faculties offer licenses for their students. I use a spare laptop for my university stuff only. |
H: Caching assets in website served from GitHub pages
The server for GitHub pages (including mine) sets CacheControl: max-age=600. It means the cache is set to last only for ten minutes, which is undesirable.
Is it possible to control this value and to set also only-if-cached status?
I know that there is no direct access to the .htaccess file or an equivalent, but I am looking for indirect access via some sort of settings or confirmation, or proof that it is impossible.
Note: this question is not a duplicate of Caching assets in Github pages (github.io) which answers whether Github pages have any caching at all.
AI: Officially confirmed to be impossible.
Answer from GitHub support:
Thanks for reaching out to GitHub Support about using GitHub Pages
We set the following Cache-Control header for all GitHub Pages content:
Cache-Control: max-age=600
This header is the same for all assets on all sites on our Pages service, and we don't currently provide a way to alter the value.
I hope that this answers your questions. |
H: How to autofill column based on total in another column
As you can see in the screenshot below, I have one column that is recording a daily count, while the second column is a sum of this count over an entire campaign.
How can I get the second column to auto-fill so that it sums from cell O3 down to the correct point - for instance cell P5 should be =sum(O3:O5), cell P6 should be =sum(O3:O6), etc.
AI: Place the following formula in P3:
=SUM(O$3:O3)
By locking the starting row of the range with $, We achieve the intended result. |
H: Display only last 4 digits in Google Sheets
I have an eight-digit number (20150613), I just want to display the last 4 digits like 0613. I know I can use a formula like =right(20150613,4), but I don't want to do that; I need the number to stay as is, just change how it is displayed.
AI: You'll need scripts. Try this on a "copy" of your sheet:
function Camouflage(){
var sh = SpreadsheetApp.getActive().getSheetByName("Sheet1");
var rng = sh.getRange("A1:A"+sh.getLastRow());
rng.setNumberFormat("@");
var val = rng.getValues();
var rtfArr = val.map(function white(e){
if (e.map){
return e.map(white);
}else{
var rich = SpreadsheetApp.newRichTextValue(); //new RichText
rich.setText(e); //Set Text value in e to RichText as base
var style = SpreadsheetApp.newTextStyle().setForegroundColor("#ffffff"); // Create a new text style with white foreground
var buildStyle = style.build();
rich.setTextStyle(0,4,buildStyle); // set this text style to the first four characters
var rtf = rich.build();
return rtf;
}
});
rng.setRichTextValues(rtfArr);
rng.setNumberFormat("0");
}
Modify,Debug and learn!!! |
H: How do I add more whitespace between my posts on Blogger?
See picture which is a screen shot of my blog. I simply want to add more space in between my posts. As it stands right now there is the same amount of space between the end of the last post and the date which corresponds to the new post.
I want to put more space where the yellow arrow is my image below. How do I do that?
AI: Go to theme > Customize > Advanced > Add CSS
.main-inner .date-outer {
margin-bottom: 7em;
} |
H: How can I convert existing boolean cells into checkboxes in Google Sheets?
I am using Google Sheets and I would like to convert some boolean columns (already filled with True/False values) into the "new" (launched April 2018) Tick box format.
This would be handy to update the values with a simple click/keypress.
However, I don't understand how to convert TRUE/FALSE cells into the Tick box format in bulk. I tried using copy/paste special of formats (from the tick boxes to the boolean cells), but to no avail.
AI: right-click on the cell and select Data validation where: |
H: How to search Gmail conversations that do not have certain people replied
I need to find open conversations sent to help@company.com that do not have received a reply from csr@company.com yet.
to:help@company.com -"csr@company.com"
queries like the above fetches everything as it searches the first email in every conversation (which would not obviously have any traces of csr@company.com) and then returns the entire conversation in the search result, which is not the desired output.
AI: I found a three step solution.
Step 1: Search all conversations that received a reply from csr@company.com using the below search query
to:help@company.com from:csr@company.com
Step 2: Label all the search results as "replied" using the gmail UI
Step 3: Search for conversations that are NOT labelled as "replied"
to:help@company.com -label:replied
I got the desired results :) |
H: Add amount IF statement on Google Sheets
Please see test file at this
link. I have the following formula on a cell:
=IFERROR(IFS(AND(L5>=60%,L5<=79.99%),J5*132,L5>=80%,J5*150,$L$9>=80%,+2500),0)
For example, since L5 is 57% (no amt applied) but L9 is at 80%, it should add 2500.
Likewise, cell L6 is at 71% (multiplies amt in J6 by 132 = 660) but L9 is at 80%; it should be a total of 3160 and not 660 by itself.
The formula works perfectly but when it reaches the +2500 it doesn't add that amount if the cell L9 is over 80%. What could be wrong?
=IFERROR(IFS(AND(L5>=60%,L5<=79.99%),J5*132,L5>=80%,J5*150,$L$9>79.99%,M5+2500),0)
This is giving me a #REF!
AI: Put the "if $L$9>79.99% add 2500" as an outer IF:
=IFERROR(
IF(
$L$9>79.99%,
IFS(AND(L5>=60%,L5<=79.99%),J5*132,L5>=80%,J5*150)+2500,
0),
0
)
NOTE: The formula on E5 of the linked spreadsheet returns 0 because there isn't a match on IFS as 57.14% is not included on the IFS conditions. You have to decide if you add a condition to handle L5<60% or to replace the second argument of IFERROR. |
H: Google sheets resetting reference after deleting and replacing a sheet
I have 2 sheets one and two. one references two. I need to delete the entire sheet two and replace it with another one that is similar. After I do that, one can not from the reference anymore even though sheet two is now there.
The only fix that I have found so far is to go to that cell and press enter on it again. Refreshing it doesn't seem to work.
Is there any way to get google sheets to automatically find the reference without having to go through and press enter on everything?
AI: that's just not possible in a scale you imagine it. best you can do is to use =INDIRECT() when you reference between sheets. this way you can have a cell in sheet-one with the name of the sheet-two and when you want to replace sheet-two with sheet-two-new then you just re-write that sheet name in that cell and do it in this way:
prepare whole sheet-two-new to be ready to replace sheet two
rewrite cell for the reference
delete sheet-two
rename sheet-two-new to sheet-two |
H: Google sheets function IF, AND conditional formatting
EDIT 2: link to test sheet: https://docs.google.com/spreadsheets/d/1IWQWDK9piw_xFVm_48XZ8YAS_LQqXi6sd2GITLIfoAQ/edit#gid=903221057
EDIT 1: added a column, so now J=K, K=L, L=M | updated formulas to reflect the column changes
I'm trying to do conditional formatting (highlight cell) in column M (M:M) when cells in columns K and L are not blank and the corresponding cell in column M is blank. Basically, when the following criteria are met:
K:K>0 (if cell has a number, don't count NAs)
and
L:L has a date (so don't count blanks and NAs)
and
M:M is blank
The formulas I found were:
=ARRAYFORMULA(AND(isnotblank({
But I couldn't set it up right... not sure exactly how this gets set up.
=and(K:K>0, L:L>0, M:M="")
L:L>0 captures NA (seems to capture all values). How do I get it to capture only dates (not date range). I was told to use "if_date()" but this also doesn't work
=countifs(K:K,">0",L:L,">01/01/1998",M:M,"")
Highlights the ENTIRE column M, instead of relevant cells. When I pasted the function into a cell (instead of the conditional formatting box), it correctly counts 1 cell. However, I want conditional formatting to highlight the cell itself. The highlight range is set to M:M. Why isn't this working?
=countifs(K:K, ">0", L:L, "if_date()", M:M, "")
Tried this formula and nothing highlighted
=IF( AND(ISNUMBER(K1:K), ISBLANK(M1:M)), COUNTIFS(K1:K, ">0", L1:L, ">"&DATE(0,1,1)))
This does highlight empty cells in M when criteria are met, but also highlights the empty cells in M when criteria in L are not met (when a cell in L is blank). My criterion for L: must contain a date
Any idea what I'm doing wrong?
AI: in this conditional-formatting-scenario is =ArrayFormula() kind of not necessary.
to hide #N/A you can use =IFERROR()
to avoid #N/A you can use =ISNUMBER =ISDATE =ISBLANK =ISTEXT etc.
and this custom formula is what you seek:
=IF( AND(ISNUMBER(J1:J);
NOT(ISBLANK(L1:L))); COUNTIFS(J1:J; ">0";
K1:K; ">"&DATE(0;1;1)))
it checks if J has number and L is not blank and then it checks if J>0 and K >1st january of year 0.
be sure you have right formatting otherwise it wont work:
update 1:
https://docs.google.com/spreadsheets/d/
update 2:
https://docs.google.com/spreadsheets/d/ where custom formula is:
=IF( AND(ISNUMBER(K2),
ISBLANK(M2),
ISDATE(L2)), COUNTIFS(K2, ">0",
L2, ">"&DATE(0,1,1))) |
H: How do I pick up a value from a cell with the left cell value equals to something in Google Sheets?
Here is my table:
1 | A | B | C |
-------------------------
2 | Name | Value | * |
3 | Joe | 10 |
4 | Bob | 21 |
5 | Rick | 62 |
6 | Terry| 38 |
7 | Jim | 77 |
I want the * cell be a value of a given name, like Jim in this case, it should be 77. Is there any formula I can use?
I have made some guess but failed. My guess:
=QUERY(A:B, "select B when A<>Jim")
AI: =QUERY(A1:B; "select B where A ='"&A7&"'"; 0) |
H: Google Maps returns different directions in the same route, depending which way you go
Let's try to find directions in Google Maps from, for example from:
Pamplona (Spain) to
Burgos (Spain)
And now, let's try the other way:
Burgos (Spain) to
Pamplona (Spain)
You'll see that Google Maps returns a different set of routes depending on which sense you go. And it does the same, I should say, when querying it through the Directions API in Javascript.
Why does it do that? What criteria does Google Maps use to decide which route to use or discard in each case? (I have some intuitions about it, but I'd like to know for sure, since we are developing an app that relies in part on the Directions API).
AI: this all depends on algorithms Google Maps usees like:
en.wikipedia.org/Dijkstra's
en.wikipedia.org/Floyd-Warshall
etc...
and also it can be influenced by submitted data Google Maps receives
as you can see on this gif here, the route is always created in sequences and from both sides at once until the link up is created, therefore even a smallest obstacle from (like one-way road due to reconstruction) can lead in different results comparing AB and BA points
more on this topic can be found in answers here from people that work in the field |
H: How can I move a OneDrive folder to external hard drive?
I’m running out of space in SSD and have bought external hdd, but there is no section showing where to move to
AI: One of the easiest ways to do it is by:
First ensure that your OneDrive is Up-To-Date synced with local.
unlinking your drive to OneDrive
Move the folder you want to the desired location
Re-link the folder to OneDrive account
It's ok to merge, as the sync will read all your files as being the latest ones in the cloud. It does this by checking the MD5/SHA hashes of the files and ensures they are the same that is on the cloud.
That's the easiest way! |
H: Conditional sum stops working in second line in Google Spreadsheet
I am using a quite involved spreadsheet for RPG character creation. Unfortunately, a certain functionality does not fully work and I absolutely cannot explain why.
In https://docs.google.com/spreadsheets/d/sample
Worksheet2.C115 should be 4, as in
=if(and(C115=""),"",if(and(C115<>""),SUMIF($P$113:$CT$113,"ranks",P115:CT115)))
C115 is not empty, Q113 and U113 equal "ranks" and Q115 is 1 and U115 is 3. However, it is evaluated to 0. The same formula works in line 114, though.
In line 116 I have removed the first conditions and simplified the problem to
=SUMIF($P$113:$CT$113,"ranks",P116:CT116)
which still does not work and in line 117, I have limited the range to two fields to avoid spanning the merged field R112/113
=SUMIF($P$113:$Q$113,"ranks",P117:Q117)
still with no success.
As I said, I am out of ideas. Could this be an internal issue with Google Spreadsheet?
AI: you are facing cell format issues. =SUMIF works only with cells that have numbers. if the cell is formatted as something else then =SUMIF won't work.
to fix your problem select range P114:CU and format it as Number / Custom number or Automatic |
H: Google Sheets SUMIF with only different sum range size than
I am trying to use the SUMIF function, but with a different array sizes for the range and sum ranges.
If a value appears in either columns A or B, I would like to sum the corresponding value in column C. This is the formula I tried using:
=SUMIF(A:B, "MYVALUE", C)
What I expected to happen was that it would find MYVAULE in A2 and B4, and then add cells C2 and C4 together.
However, it actually sums C2 and D4 together (and essentially trying to make the sum range the same size as the range, even though I ask it to use only C as the sum range).
There is a way to do this using a sum of SUMIF functions:
=SUMIF(A:A, "MYVALUE", C) + SUMIF(B:B, "MYVALUE", C)
This would work the way I want it to, but it wouldn't be nice if I was trying to search many columns for MYVALUE.
Is there a better way to do this in one formula?
AI: you can use =SUMIFS where you can refer to whole range for criteria instead of column/row like in =SUMIF
=SUMIFS(A1:B10;A1:B10;"=5")
or you can use =SUM with =FILTER
=SUM(FILTER(C:C, A:A = 3),
FILTER(C:C, B:B = 3)) |
H: How to get the complete listing of all the videos in a too-long-to-scroll-through YouTube list?
Here's a concrete example:
https://www.youtube.com/user/AmazonWebServices/videos
I estimate one would have to scroll that page for many hours before getting it to show all the videos in that collection.
I'm looking for a faster way to generate a two-column table consisting of the title and the url for all the videos in that collection.
As this example illustrates, strategies that involve scrolling are unacceptably slow for cases like this one.
(Solutions that involve the Unix command line and/or some scripting are acceptable, as long as the commands and/or source code are provided in the answer.)
EDIT: I apologize: I should have specified that my OS is Linux.
EDIT2: Here's what I ultimately did, based on the accepted answer (at the Unix shell prompt):
% youtube-dl --get-id --get-title https://www.youtube.com/user/AmazonWebServices/videos | \
| perl -pe 's/^(?=\S{11}$)/\t/ || s/\r?\n\z//' > videos.tsv
The youtube-dl command above returns lines of titles alternating with video IDs. The perl one-liner, either inserts a tab or deletes the line-terminating sequence, as the case may be, resulting in the desired 2-column listing. (I'll probably tweak this a bit further to reverse the order of the columns, but this is an inessential detail.)
NB: Although the above procedure still takes a long time (mine has been running for about 15 minutes and has yielded ~1000 lines, but it's still going strong). Nonetheless, once one types the command above, the rest is pretty much "hands-free". It certainly beats manually scrolling through the page.
AI: download this: https://yt-dl.org/latest/youtube-dl.exe
in a folder where you downloaded youtube-dl.exe create batch file BATCH.cmd with content:
youtube-dl --get-id --get-title https://www.youtube.com/user/AmazonWebServices/videos > list.txt
run/execute BATCH.cmd by double-clicking
wait until cmd window closes (it can take even half an hour - depends on your internet speed)
when done you will get a non-coma-non-space separated bulk of text:
to get it formated open it in WordPad or MS Word
copy it and paste it into the spreadsheet column A - https://docs.ggl.com/spreadsheets/d/
where cell B1: =FILTER(A:A; ROW(A:A)=EVEN(ROW(A:A)))
and where cell C1: =FILTER(A:A; ROW(A:A)=ODD(ROW(A:A)))
and then on another sheet create your construct
cell A2: =IF(Sheet2!B1<>"";"https://www.youtube.com/watch?v="&Sheet2!B1;)
cell B2: =IF(Sheet2!C1<>""; Sheet2!C1;) |
H: Unclear behaviour in Google Sheets custom number format
When I use Google Sheets, I can format numbers Format -> Number -> More Formats -> Custom number format .... There are specific placeholders described in the help.
What's not mentioned, however, is the following behaviour:
When I set the custom format to d, 18 appears. If I write ed, another number appears. Using quotation marks leads to the correct value.
Why do some letters represent numbers? What's the logic behind it? I had the clue that it could be a date format, but d-m-y does not lead to the correct date.
AI: Actually, you nailed it. those letters do represent date values however date needs to be in the specific overall format:
d needs to be in a pair like dd or ddd
same goes for m > mm or mmm (single m stands for minutes)
and the year is usually yyyy
eg valid format would be "MM/DD/YYYY" or dd.mm.yyyy etc.
check this for more knowledge: https://developers.google.com/sheets/api/guides/formats |
H: How do I automatically start an add on for Google Docs?
I'm currently using the Code Blocks add on for Google Docs but everytime I open a new tab, it requires a manual restart.
Is there anything that can be done, perhaps writing something custom (like google apps script) or configuration on my end so that on open the addon automatically starts for this document and this document only?
AI: Based on my experience developing unlisted add-ons, at this time it's not possible for end-users to add features to add-ons, like automatically clicking a menu, only the add-on developer could add them. In this case the add-on developer could add a mean for the end-user to create an installable on open trigger.
AFAIK the above is not explicitly mentioned on https://developers.google.com/apps-script.
My suggestion is to send feedback to the add-on developer. |
H: How to remove a custom label in Google Maps?
I am a regular geo-cacher and therefore I want to mark certain places on Google Maps to find the location faster when I am playing. I enter the coordinates of the location in the search bar, go to the location, click "Add a label" and save it with a custom name. That works like intended.
After I found a cache, the label is of no use to me any more and I want to remove it again. Most likely I overlooked the option, but I couldn't find how to do this. Removing the whole label overlay is not a solution as I just want to remove specific custom labels which I created.
AI: hit those 3 dots and select Edit list |
H: How to use text from a cell on SUMIF
I have a google sheet where in there are few text data in Row "B" which is repeating, and row "C" has a transaction in numbers (qty)..
Using Unique function I have sorted out the list in Row "E".
Now I want to Sum all the transaction using Sumif but getting error if use =E3 instead of "A" in formulae.. what needs to be updated in formulae to use refrence of Cell.. As there are large number of data practically copying each data in formula is not possible..
Please guide...
AI: you can try to write it like this:
=SUMIF($B$42:$B$51; "="&E42; $C$42:$C$51) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.