I have a list of email subject lines with job roles on the left side, need to filter out roles like Assistant Manager, Manager, Civil Engineer, Project Manager to get the result.
Certain cells don't have the job role mentioned so to be left blank
The rows on the sheet need to remain intact so data can be analysed.
i tried using REGEXMATCH but it will not work for row5
is there a way to have a single formula, which includes all keywords for the whole list.
REGEXMATCH(B3, "assistant|manager")
I'm doing this on Google sheet and have shared the screenshot and the GoogleSheet file Link for reference.
I have made a copy of your sample data on this Support Sheet, that will exist in perpetuity.
On a tab called MK.Lookups, I built a table to use for your lookup words and returns. Then on the tab called MK.Idea, I placed this formula in cell B3 and dragged it down.
=IFERROR(INDEX(SPLIT(TEXTJOIN("|",TRUE,IF(REGEXMATCH(UPPER(B3),SUBSTITUTE(UPPER(MK.Lookups!C$2:C$20),", ","|")),MK.Lookups!B$2:B$20,)),"|"),1))
I also placed this formula in cell C1, which is an arrayformula that will populate for every row and doesn't need to be copied down the column.
={"Result";ARRAYFORMULA(IFERROR(INDEX(SPLIT(TRANSPOSE(TRIM(QUERY(IF(REGEXMATCH(TRANSPOSE(UPPER(A2:A)),SUBSTITUTE(UPPER(MK.Lookups!C$2:C$20),", ","|")),MK.Lookups!B$2:B$20&CHAR(10),),,9^9))),CHAR(10)),,1)))}
Related
I have a very large Google Sheet spreadsheet that I need help with.
I have a long list of Network Switches that are very often repeated that I am trying to automatically copy the associated SKU into a separate adjacent cell.
My goal was, once the SKU is added the first time, whenever the same switch is added again, it will autopopulate with the same SKU.
For instance, C2461:C2463 are repeated, and once K2461 is populated, would like K2462 & K2463 to follow suit.
Any help would be greatly appreciated!
You can try this formula on Column L (col L will serve as a helper column):
=iferror(arrayformula(VLOOKUP(C2:C,C2:K,9,False)),"")
For now I can't seem to fit the formula without the use of a helper column (so I created a separate sheet for now that will serve as a database for the VLOOKUP formula) but this should get you started.
Sample using a helper spreadsheet (Database):
=iferror(arrayformula(VLOOKUP(Database!A2:A,Database!A2:B,2,False)),"")
Output:
I'd like to IMPORTRANGE("http://page","Sheet!A11:F")
Where the page is a link located in a cell on the current sheet, and the range is also in a cell on the current sheet.
For example: IMPORTRANGE("'C8'","'A1'!All:F") Something like that.
My overall goal is to be able to copy the current workbook, add a sheet, put a reference number in A1, then have the sheet automatically pull data (using an A1 vlookup from a master list) from the correct sheet in another workbook without having to manually relink eveyrthing. Just want to put the unique ticker in A1.
The application is there is a 'Master Deal List' workbook. Each row has a different deal with a unique 3 digit 'ticker' in Column A and the deal's sheet in another workbook link in column F. This second workbook (Deals) with distribution data named with the same 3 digit ticker. Finally each investor in each deal has a 3rd workbook which needs to pull distribution amounts from the right sheet in the Deals workbook.
Got it, answer is here:
https://infoinspired.com/google-docs/spreadsheet/dynamic-sheet-names-in-importrange/
Answer:
IMPORTRANGE("http://page", A1&"!A11:ZZ")
I have a spreadsheet with cells coloured in two different colours. I know I can send all the cell data from one google spreadsheet to another using IMPORTRANGE function. However, I only want to send the cell data if it satisfies a specified cell colour.
For example, if spreadsheet A has 10x10 data with various colours, then spreadsheet B should contain all the data from cells in spreadsheet A that are either red or green (and also transfer the cell colours). All other cells with different colours from spreadsheet A should be transferred to spreadsheet B as blank colourless cells. The resulting spreadsheet should still contain 10x10 cell data, but with only red, green and blank cells.
I know it should be possible to write a function for this, but I have never written any custom functions before and have no Javascript experience. Any kind of help would be appreciated. Perhaps also the QUERY function could be of use?
Thanks in advance!
You should check about Google Apps Script. It gives you a set of tools that will allow you to create a script for doing what you want.
Custom Functions will help you to create a function that lets you get the values from your sheet and then set the conditions you are requiring.
The Class SpreadsheetApp has the tools for handling all data in your sheets. Check for example the method getBackgrounds(), which gets the color in a range of cells.
This another post, it is a little similar in some aspects to what you want to do.
It's best practice to create an additional column which stores the information regarding as to which condition (color) is applied 5o the particular row. Once you have done that, you can easily transport a table from one Spreadsheet to another using the QUERY formula within the IMPORTRANGE.
Image column a is the name of a city.
Imagine column b holds the information regarding the condition (color). This is an helper column.
Now we have col1 = New York City, col2= green
Then you could enter this into the new sheet.
QUERY( IMPORTRANGE(URL, range), "SELECT col1 WHERE col2="green" OR col2="yellow" OR col2="red")
Here is a great tutorial series I like to use.
https://youtu.be/_N5zhAipVn0
I am recording a macro to be used for .csv files in Google Sheets. Each contact has all the information in his row. Some of the contacts don't have an email.
I want to add to the macro a function that automatically cuts the rows that have no value in the "Email" column and paste them in the second sheet.
Right now I only managed to cut rows based on their numbers, but of course this only works with a specific dataset.
spreadsheet.getRange('42:57').activate();
spreadsheet.setCurrentCell(spreadsheet.getRange('K42'));
spreadsheet.setActiveSheet(spreadsheet.getSheetByName('Without Email'), true);
spreadsheet.getRange('A2').activate();
spreadsheet.getRange('\'With Email\'!42:57').moveTo(spreadsheet.getActiveRange());
};
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();