Text replacement - google-sheets

I have a small business that uses Google Sheets to track our employee's cases. When they are typing in that they are handling a case they just put their initials. I would like to make use of the Reminders addon to make sure that cases are not forgotten. The Reminders addon requires that an email be given with who to contact so that it can send them an email reminder. However it is faster to simply type the initials of the case worker.
How to manipulate the functions or write a custom one so that all initials in a certain column can be replaced with the corresponding email?
For example:
=IF(B2="ABC", SUBSTITUTE(B2,"ABC","ABC#123.com"))
Will place ABC's email if the initials ABC are found in a new cell. However I can't expand the function to replace all the employees initials in one script as IFELSE is not recognized as a valid function.

You could do this with a simple vlookup
Make a new sheet with two columns. The first containing the initals the second containing the email addresses.
In a new column in sheet1 you would then write somethign like this:
=vlookup(B2,Sheet2!A1:B25,2)
Where B2 is the cell with the initials and Sheet2!A1:B25 is the range where you store the email addresses.

Related

Google sheets, block data entry if…

I have a simple google sheet, with Date, Client ID, Name, etc.
What I would like to do is block any kind of data entry IF the first letter of the Name is NOT UPPERCASE.
I know this might sound a bit silly, but the person entering data just won’t do as I ask, and enters Name's inconsistently. So I want it to be blocked and force him to go back, correct the first letter uppercase, and the be able to enter data.
Another option could be a pop up message that warns that the name has been entered incorrectly? Anything like that.
Thanks.
Create data validation rule for column with formula:
=EXACT(LEFT(A:A,1),UPPER(LEFT(A:A,1)))
change A:A to column reference with names

exclude certain text from keyword analysis in google sheets

I'm trying to do a little bit of analysis on the topics of emails I receive. I have the emails in a Google-sheet in the format below. I'm trying to count how often 'privacy' or 'confidentiality' are mentioned. My challenge is that pretty much every email signature mentions one of those words, so when i use SEARCH every cell returns TRUE.
Most email signatures start with similar phrases, so I tried deleting anything after those phrases with this formula:
=ArrayFormula(TRIM(LEFT(B1:B,MIN(IFERROR(FIND({" This email and any","IMPORTANT NOTICE", " Important notice","The information in this email"," The contents of this message"," Information in this email including"," This electronic mail message"," this message and any attachments"," This message is intended for the addressee only"," This email is CONFIDENTIAL"},B1:B),LEN(L2))))))
Column B is the column with the email body text in.
However that seems to be deleting text that follows words that aren't in my search (deleting everything after 'not' instead of 'IMPORTANT NOTICE' for instance).
Could anyone advise on either:
what's wrong with my above search
an alternate way of searching for 'privacy' and 'confidentiality' without including text from email signatures.
Example table:
|email title|email body|
|-----------|----------|
|Do you want to buy my stuff| Hi there, I'd like to know if you'd like to buy this thing I want to sell you. IMPORTANT: this email is private|
|two-for-the-price-of-one| I've a great offer for you! This email and attachments are private & confidential|
|Last chance to buy stuff!| Can we have a private call about whether you want to buy my stuff yet?|
In the example above I want to count row 3, but not rows 1 & 2, as the 'private' and 'confidential' mentions in 1 & 2 are in the signature.
Thanks!
I think I understand the error that you've described is occuring with your formula. Once the formula finds one of the values you are using to try to identify an email signature, such as " Important notice", and returns the location of that text, let's say position 96, it then uses 96 for all of the cells, like this: LEFT(B1:B,96). So you might not be able to do the compound arrayformula of an arrayformula that you are trying.
Using the formula like this, in B2, and dragging it down, should work though:
=ArrayFormula(TRIM(LEFT(B2,MIN(IFERROR(
FIND({" This email and any","IMPORTANT NOTICE", " Important notice","The information in this email"," The contents of this message"," Information in this email including"," This electronic mail message"," this message and any attachments"," This message is intended for the addressee only"," This email is CONFIDENTIAL"},B2),
LEN(L2))))))
Note: I'm not sure what value is in your L2.
But for the overall approach, it really depends on how well your terms to identify email signatures work, so as to exclude them from your final full text searches.

Can I use a Google Form to check the status of a student's paperwork that is recorded in Google Sheets?

I have a Google Sheets filled in with student names and the status of a paper form. I need to email parents to have them complete the paper form if it is missing. But every time I send this email the first question I get is Doesn't my kid already have this form completed and on file?
So I would like to create a Google form where parents can enter the name of their student and it will show whether or not there is completed paperwork.
I can find how to pre-populate forms but that's not what I want. I need it to show a response based on the information a parent enters.
that's not really how Google Form was intended to be used. (eg. it's unfortunately not possible). you will need to redo your approach... you could create a new spreadsheet in which you would use IMPORTRANGE formula and import column of names only and send this new spreadsheet to the parents. this way when they press CTRL+F to find their kiddo a cell gets highlighted or just not found.

Linking several contacts to a single ID in Google Sheets or R

Update I added a link to a Google sheet and the column id like to know how to create
https://docs.google.com/spreadsheets/d/1oIqPf1OffpeCeMJW6kMJztT3mAWCLBPE7f8Ohr066wo/edit?usp=sharing
I need to analyze communications between different team members and users and need a way to combine different contact methods into a single identifier. I have a sheet that lists all the different contact methods for a single person (email, slack, phone), but not a way to link that to the sheet that keeps track of communication. Here's how the problem is set up.
The first sheet has the method of contact for each row. So, if the same person was contacted once by email and then by phone, the email would be in one row and the phone number would be in the second row (both listed in the same column).
The second sheet would have the contacts identifier (a unique ID), along with their name, phone, email, and other contact info.
How would I create a column in the first sheet that lists the unique identifier associated with any type of contact to that person?
So, for instance, the ideal solution would have something like this for hypothetical two people (the third row represents another person, the first two rows are the same person).
Col1 ID
email#name 4
555-555-5555 4
SecondPerson 5
I'm familiar with both R and google sheets, so can take solutions to create this in either. Or, I can import them into an Airtable if that helps.
I tried to look up solutions for record linking, but since all of the contact types are listed in the same column, I couldn't find a solution. Thanks and let me know if I can make the question more clear.
=ARRAYFORMULA(IFERROR(VLOOKUP(B2:B, {contacts!B2:B,contacts!A2:A;
contacts!C2:C,contacts!A2:A;
contacts!D2:D,contacts!A2:A}, 2, 0) ))

Automatically extend a Sheets formula for each new Google Form response

I have created a Google Form that logs new customers. Since the business is mostly run on cellphones during the day, I wanted to make it as mobile-friendly as possible.
One of the form response items is a phone number, and to create a call option that will dial when accessed on a mobile device, I can use the formula:
=HYPERLINK("https://ctrlq.org/call/"&E3, "Call "&C3)
This works great, but I have to manually extend it each time a new response is submitted. Is it possible to tweak the formula so that every new entry will have that formula applied to it, increasing the E and C row references by one?
E.g. my next entry would update the formula to call E4 and display the name from C4.
The other option is to do that manually after every entry but I'm hoping I can avoid that.
Try,
=arrayformula(if(len(C3:C), HYPERLINK("https://ctrlq.org/call/"&E3:E, "Call "&C3:C), text(,)))

Resources