I have a google sheet where it will record payment done in paypal. So basically the users will enter address in all way, so to reduce the errors I have all the possible address the user might enter (This is because this is a payment system for residents in my residential area so I have all the user's address in database). So can anyone help me to find a formula it will find the actual address in "USERNAMES" worksheet and only take the house number and street from the actual data. I have attached some images to explain myself better. I want the formula to be in worksheet "Paypal 2". Please guys I need this help.
https://docs.google.com/spreadsheets/d/1bM8l6JefFsPrlJnTWf56wOhnuSjdIwg3hMbY1tN1Zp8/edit#gid=0 - Link to my google sheets
The address entered by users
The sheet to look up for the actual address
Sheet to split the house number and street
Try this:
Delete your formulas from 'Payment Configuration'!B3:C3. (This will temporarily remove all results from B3:C.
Place the following formula into cell B3:
=ARRAYFORMULA(IF(LEN(PaypalData1!C3:C),PROPER(REGEXEXTRACT(PaypalData1!L3:L, "(\d+)[,\s]+([^,]+\d+)")),))
REGEXEXTRACT allows for extracting more than one grouping, as I've done with this formula; so this should produce a uniform result for B3:C.
The RE2 expression reads "Find the first number(s) followed by any number of commas or spaces and extract the number portion as group one; then find any string after that which does not contain a comma and ends in any number of digits and extract that as group two."
Related
I have google form that can be filled by a person any number of times. I want to assign a serial number to each response coming from same email address, with the first response by that person (as per timestamp) marked as 1.
The "Response Number" Column should look like this. How can I do this using array formula so that it does not have be dragged down and applied.
In row 2 (under response number) try
=ARRAYFORMULA(IF(LEN(B2:B), COUNTIFS(B2:B, B2:B, ROW(B2:B), "<="&ROW(B2:B)),))
and see if that works?
In Google Spreadsheets. I have a large sheet containing lots of bookings, a booking has several columns for name, voucher number, email address etc. Each date I have a class on covers several columns and rows. I want to build a single vertical list of every email address in the sheet. The email addresses are in different columns and different rows. I was thinking FILTER or LOOKUP but I can't quite find the answer that works.
Dec 17th 2-5
Name Voucher Email People
Richa yes richa#xx.ca 2
Jessica yes jess#sss.com 3
Beth cash ebeth#hh.com 2
Export your sheet as a CSV file (File > Download as ..)
Then use the REGEX tool of your choice (Notepad++) or some of the online tools available (first hit: http://emailregex.com/email-extractor-tool/).
You could use flatten() to get all the data in a single column and use regexextract(Cell or range,"[a-zA-Z]+#[a-zA-Z]+\.[a-zA-Z]+")
Question is simple. How to get Name (File name in Google Drive) of a spreadsheet using spreadsheet identifier. If you want to know why I need it, you may please continue reading further.
I have created two type of spreadsheets to manage my financial books with my friends, family and business.
Type 1: A book that contains all transactions with a specific person and tells Amount owed or amount lended. I have about 15 of such sheets. Check this screenshot:
Type 2: A sheet named as investments. It fetches data from all other sheets using Sheet Identifier and displays total amount invested or borrowed. Check this screenshot:
In Type 2 sheet, I have programmed and made everything automated. You just need to paste Identifier of any new Spreadsheet in G Column and you're done. Only one thing is Killing me. I am unable to fetch name of the spreadsheet using Identifier. I fetched all records of the sheet using IMPORTRANGE Method, just the file name is not getting fetched. I tried plenty of functions.
Yellow Columns denotes Automatic Columns. I just want to make Column B automatic in case of Type 2 Spreadsheet. It should contain Spreadsheet File Name fetched through Sheet Identifier, same as I fetched all rows of multiple sheets & made calculations within Type 2 sheet. Thanks for considering to help me out.
If I understood your question correctly, you want the name of a Sheets file from the Sheets ID? How about:
var spreadsheetId = 'YOUR_SPREADSHEET_ID';
var sheetName = SpreadsheetApp.openById(spreadsheetId).getName();
I need cell B3 to reference B1 while blank.
Once you put something in B1 it'll keep that value forever, even once B1 get's changed to something else.
This is my situation:
Basically I have a sheet that is fed by a Google form and each submission needs three key reference numbers each kept in columns a,b,c
A = Unit Number/Individuals name (There may be duplicates down the sheet as this is per submission)
B = Work Order (Imputed by me after actual work on unit has been done)
C = Cry Number/Reference number (Automatically generated per submission; no duplicates)
I then have a frozen row at the top which contains a search bar that you can search for the cry number (A1)(Which has a Data Validation set to column C so that you can only search valid cry numbers) and then a cell to add a W/O to that Cry Number (B1)
In column B3:1000, I have this formula copied down:
B3=if(isblank($C3),"",if($A$1=$C3, SUBSTITUTE($B$1,"",$B$1),""))
...which makes it so that if you select say "CN-168" (A valid cry number) and in 'B1' type "W1134" that work order number will be assigned.
Now I need that work order to stay there regardless of when 'A1' changes so that you can do the process over again on another submission.
Is it possible to do with formulas? If not, then a Google Script?
Here is a template of what I'm dealing with but not to the same scale as my Data Base
Its not possible with formulas but easily done with apps script. look at the onEdit trigger and the documentation for SpreadsheetApp to setValues to the appropiate ranges.
If you want to be 100% complete you also need a time trigger (say every 10 minutes) to check that a row wasnt missed. It can be missed during apps script errors/outages or when the sheet is changed from outside the sheets webpage/app (For example using the http spreadsheet api)
Let me start off saying that I know absolutely nothing about how scripting works. I found assistance on making the spreadsheet formula work via Google Groups.
I have 2 Google Sheets:
First one is a contact list [name and address removed for privacy]. Generally it would consist of name, address, city, zip code.
Contact List:
https://docs.google.com/spreadsheets/d/19uDa5aKp2KlS-6Lfe0jTehTWDcLgBHeisKnsJzd4cP0/edit?usp=sharing
The 2nd list is a list of zip codes within a specific mile radius of a city.
ZIPS:
https://docs.google.com/spreadsheets/d/1S7n9NBE_CRSgx5vjCY5CgICchsc8NelsN7FXM6CkooY/edit?usp=sharing
Using the sheet ZIPS I put this syntax into B1:
=query(importrange("19uDa5aKp2KlS-6Lfe0jTehTWDcLgBHeisKnsJzd4cP0","Contact List!A:G"),"select * where Col7 matches ' " &join("|",A1:A16) & " ' ")
[A1:A16 would be changing everytime, maybe a wildcard could be used for column A]
What that does is pull all the contacts from the Contact List sheet and import them to the ZIPS sheet. Thats the back end way to do it.
My question is can this be done through a Google form or some other front end form? I will always have the same Contact List but my ZIPS search would change every time.
If I could have a front end form where I could input the zip codes that I want matched from the Contact List and exported, that would be perfect.
Does that make sense?? Thank you for your help.
I followed your links and had a quick look.
I am not completely sure I follow what you are after.
What I did was add a Form to your
https://docs.google.com/spreadsheets/d/19uDa5aKp2KlS-6Lfe0jTehTWDcLgBHeisKnsJzd4cP0/edit?usp=sharing
You can see this by;
form>edit form
form>go to live form
When the form submits it adds information to the spreadsheet 'Form Response 1'
You can rename this, a quick piece of advice is make changes to the form not the spreadsheet if you want to change things that the form pushes to the sheet.
I then added a sheet to your
https://docs.google.com/spreadsheets/d/1S7n9NBE_CRSgx5vjCY5CgICchsc8NelsN7FXM6CkooY/edit?usp=sharing
I tweaked your formula a little to reflect the different range.
As a last help, you mentioned
[A1:A16 would be changing everytime, maybe a wildcard could be used
for column A]
You would have to be careful with this because if you select the column A:A, your query will add a delimiter '|' for every row in the column so you will get value1|value2|...|value16|||||||||||||||||||||||||||||||||||||||
teatimer is right about writing code, I hope what I have given helps. It should be quite easy to do but you may need to tweek things carefully to get it to work as you like.