linked sharing of google sheet tabs - google-sheets

I have a Google Sheet of 6 tabs. The intent is to create a role cost calculator and compare predicted to actual use.
One tab contains my master user list. It is the software used tab, just fyi.
Another tab is a slave tab which is the hardware used. That slave tab gets the user list from the software tab with the formula ={SoftwareByUser!A4:D160}
For each user, their hardware columns, E and beyond, are manually populated with integers that get multiplied by column costs to get a per user cost.
When an employee leaves our company I'd like to delete their row on the software tab. Imagine going from 51 total employees to 50 by removing row 26. Row 27-51 correctly become 26-50 on the software tab.
The trouble is the corresponding hardware row is not in removed, still having 51 rows in columns E and beyond, even though the number of rows in columns A-D have been reduced by the formula to the correct number of rows, 50. Hardware rows 26-51 no longer match their user.
I'm asking for a solution to do what I describe please. Is my thinking faulty and a different approach necessary?

What you should have to do is define an ID for each user (can be at least a first name / last name / date of birth concatenation). Then on the slave tabs manually type each one (do not link the two tabs for ID), then you can recall the master to slave tab using VLOOKUP with multiple column numbers at once. If one line is erased in master, or if the master is sorted, this will not affect the slave tab unless giving you an alert that the line has been erased.

Related

Double (Nested) XLOOKUP with reverse search mode issue

I've created a profit/loss google sheet that allows me to price up a list of items for each project I'm working on (I've simplified it for the purpose of my issue I'm trying to solve). It works by referencing a master pricing sheet so that I can manage the current pricing from one location.
In the MasterCopy tab I'm importing the master pricing sheet for all my items. If you look at the first row, the first set of pricing for EUR, USD, AUD are my costs and the second set of those curriencies are my sell price.
https://docs.google.com/spreadsheets/d/1SE-FtDsJOblrlEpkxSwn3_L3MZ1VD6DNzTDlGTj0vCc/edit?usp=sharing
In the "Profit Loss" sheet I'm using a nested XLOOKUP formula. For columns F, G, and H the formula uses "1" for the search mode and for columns K, L, and M it is the same, but uses "-1" search mode so that it searches across the MasterCopy sheet headers in reverse.
XLOOKUP(F$2,MasterCopy!$1:$1,xlookup($A3,MasterCopy!$A:$A,MasterCopy!$1:$1000),,,1)
XLOOKUP(K$2,MasterCopy!$1:$1,xlookup($A3,MasterCopy!$A:$A,MasterCopy!$1:$1000),,,-1)
However, the issue I run into is that for some reason one of the column sets (EUR, USD, or AUD cost and sell) it will show the same pricing for the cost and sell columns for the corresponding currency. For example, cell L3 shows 1,025 USD, but the corresponding USD cost column also shows 1,025 USD, when it should actually be a value of 925 (which is correctly showing in the MasterCopy tab).
Any help would be really welcomed. I'm hoping it's a simple logic error, but just can't seem to get all the sets of pricing to show the correct values.
Edit 1
I reloaded the sheet and suddenly it's the AUD columns showing the same values. See image below
AUD columns showing same values
maybe just use the header 'AUD Sell' in Cell AR1 (MasterCopy)
AND
use this formula in Cell M3 (Profit Loss)
=XLOOKUP(M$2&" "&J$1,MasterCopy!$1:$1,xlookup($A3,MasterCopy!$A:$A,MasterCopy!$1:$1000),)
totally eliminating the search_mode which is causing this amiss.

Google Sheets - Have working Tabs retain the entered information

I have a sheet that multiple people are working on, but only on certain rows in the sheet that they mark with their name. There is a master sheet where they are marking which ones they're working on, then a tab for each named person. The tab with their name gets populated using a "=QUERY(Master!A3:AX,"select * Where L='NAME'")". The goal of the tab is so they can work on their own stuff without having to scroll through the thousands of rows to find their next entry. Getting the info from the master to the tab is working fine, but when they are working on their tab, they add information to a few new columns at the end of the query. This is where my problem lies, when they go and tag another entry on the master as theirs, the columns they added information to already do not move with the entrys, they just get pushed up or down depending on the new entry placement.
Is there something I can do that will still pull in the data from the master sheet to the corresponding tab, but then keep what the staff is actually entering/working on, to remain in line with the entry that got pulled in? The whole process is sort of useless if their work is not retained as they are working through it.
For example, the query pulls in column A-L, then they are adding information to column M and N for the management to read and make decisions off of their input. I need the information they enter into column M and N to remain with the row the query originally pulled in. The master is sorted by a unique number in column A that needs to remain in that order, so they may add new entries randomly as they assign rows to themselves.

Is it possible to limit the permissions for a google sheet launched from the template gallery?

I would like to know if it is possible to limit user access to certain tabs in a google sheet launched from the template gallery?
In our company, we have a sales department that uses an calculator builded on google sheet. In order to ensure that sellers always use the current version of the calculator (this is important because the parameters of the products change over time), I have placed its in google sheets template gallery and update it on a regular basis.
The problem is that one of the tabs in the sheet should not be available to sellers because it contains information about the prices of semi-finished products and materials, therefore there is a risk of their interference in these data and offering customers at lower prices (the product is very specific and prices are important even in scale 0.01 USD).
As you know, opening a new sheet from the template gallery makes the opener the owner of the file and thus he gets a full permissions to it. Therefore, setting sheet protection in the source file doesn't fix the problem.
Is there any solution how to handle with it? Thanks in advance.
You use 2 sheets
Rename your "Test - Calculator" to Calculator file (https://docs.google.com/spreadsheets/d/1HMYPA0W0gPS1A4hIo8_hWNcdhE7jQdyAKpv37Wk3m1I/edit?usp=sharing)
Permissions: Private (no sharing)
and rename "file 2" to Client input file (https://docs.google.com/spreadsheets/d/13vqFa2duep9Spc5AOEIvBUwdLr45VQOGy9EVwECiVEI/edit?usp=sharing)
Permissions: Public on the web (Any1 with the link can edit)
You first connect these files together because you will use IMPORTRANGE
For file Calculator file
You must have 2 tabs (the more tabs do whatever you want, keep, delete makes no difference)
Tab 1: solution for client
In 1st tab you have this formula only, in cell A1
=INDEX('aw7e%^y24#d9 strange tab name client can not guess'!A1:D22)
REMEMBER: ONLY from tab solution for client the client will see
Tab 2: aw7e%^y24#d9 strange tab name client can not guess
This tab only for calculations
cell C5: =IMPORTRANGE("13vqFa2duep9Spc5AOEIvBUwdLr45VQOGy9EVwECiVEI";"clientDATA!C3")
cell C6: =IMPORTRANGE("13vqFa2duep9Spc5AOEIvBUwdLr45VQOGy9EVwECiVEI";"clientDATA!C4")
cell C8: =IF(C5*C6=0;"";C5*C6)
cell C10: =IFS(C8="";"";C8<F3;E4;C8<G3;F4;C8<H3;G4;C8<=H3;H4;C8<=I3;I4;C8>I3;I4)
(I changed your formulas in cells C8 and C10 for better)
For file Client input file
You must have 1st tab clientDATA (the more tabs do whatever you want, keep, delete makes no difference)
Client puts input in cells C3 and C4
In cell C7 you put this formula:
=IMPORTRANGE("1HMYPA0W0gPS1A4hIo8_hWNcdhE7jQdyAKpv37Wk3m1I";"solution for client!C10")
You also protect the tab except cells C3 and C4 with Can edit (with warnings)
You finished.
Now when client put numbers in cells C3 and C4 they see results in C7
AGAIN REMEMBER: ONLY from tab solution for client the client will see

How do I auto-populate info on a master sheet when adding a new tab in google sheets?

I am making a master project tracker in google sheets that has multiple project plans. Each project plan has its own tab and I have a master view tab that currently vlookups information from each project plan (owner, status, start date, end date etc.) and displays it on the master view tab.
What I am trying to do is duplicate a project plan tab in the sheet, rename the tab, and have the new project plan name and same vlookup information populate on the master view tab. I figure I need to be querying the sheet as opposed to vlookup, but I'm unsure of how to do that.
try:
=QUERY({'Project Plan 1'!A2:G; 'Project Plan 2'!A2:G},
"select Col1,Col3,Col4,Col5,Col6,Col7
where Col3 matches '[A-Z ]+'", 0)
{'Project Plan 1'!A2:G; 'Project Plan 2'!A2:G} - array of sheets/tabs
separated by semicolon ; ...all ranges needs to have same amount of columns
'[A-Z ]+' - regex expression to focus on caps characters of range
from A to Z and empty space space in any order and any amount
UPDATE BELOW:
There is no good way to make this happen automatically. This is one of the most commonly asked questions in Google Sheets help forums.
Google Sheets are designed to collect data ALL in ONE tab and disaggregate it into reports on other tabs using Filters, Query's and other sophisticated formulas for SUMMARIZING data based on year or month or "project".
MS Excel is designed completely the opposite way. To collect data on MANY tabs and aggregate that data in one "master" tab. This is because in Excel, it would otherwise be difficult to sum things up by year, or month, or "project" if they weren't in separate tabs.
Is there any reason you couldn't set up to collect data for ALL your projects on the same tab like this:

Automated Number Distribution in Spreadsheets

Beginner here!
Here's a spreadsheet trying to show what I mean.
Suppose I have data for metrics in comparison to my competitors.
The metrics are sorted highest to lowest and I want to turn the names of the other companies into "Company 1, Company 2, etc." along with the order of the metrics. Myself ("Me") remains unchanged.
With every data set the competitors could be different companies, and I could be ranked in a different position. The number of competitors could range from 1-20.
Is there a way to automate the green fields in the spreadsheet so that I can just paste the data and the competitor numbering stays constant no matter where I appear in the list?
Thank you!
Lighter Torches, I've added a sheet named "Erik" to your spreadsheet.
I've placed an array formula into two cells: G5 and J5. They are the same except for the relative cell references. Since it is an array formula, the single formula in G5 "runs" the entire data set generated in G5:H; likewise, the formula in J5 "runs" the entire data set generated in J5:K. Array formulas do not require dragging/copying to other cells.
Here is the G5 formula:
=ArrayFormula(QUERY(SPLIT({"Me"&"^"&IFERROR(VLOOKUP("Me",A5:B,2,FALSE),"NA");"Company "&ROW(INDIRECT("A1:A"&COUNTA(FILTER(A5:A,A5:A<>"",A5:A<>"Me"))))&"^"&SORT(FILTER(B5:B,A5:A<>"",A5:A<>"Me"),FILTER(B5:B,A5:A<>"",A5:A<>"Me"),FALSE)},"^"),"Select * Order By Col2 Desc"))
In your sample data, the companies are already ordered by rank, best to worst. But in the real world, it seems that may not always be the case. With that in mind, you'll notice that I moved your top performer to the bottom in the second data set. I've written the formulas to account for this (i.e., they will order the companies in the correct order whether they were originally in the correct order or not).
Also, if "Me" for some reason doesn't appear in a raw-data list at all, it still shows up, unranked, at the top of the generated list. Again, I tried to account for real-world what-ifs in the formula.
Finally, I added a sheet-wide custom Conditional Formatting rule that applies bold to any occurrence of the word "Me," since it seemed you were doing that manually. As such, you can type the sole word "Me" in any cell in the sheet, and it will automatically be formatted bold. You can see this rule by selecting Format > Conditional Formatting from the menu, then clicking on the rule you see in the window that appears.

Resources