简体   繁体   English

Google 表格 - 创建新值并限制删除

[英]Google Sheets- Creating a New Value and Restricting Deletion

I'm not sure if this is possible, but let me give you a scenario and what I'm trying to do.我不确定这是否可能,但让我给你一个场景以及我正在尝试做的事情。 I have two Google Sheets.我有两个 Google 表格。 One has vendor product codes from multiple vendors that have to be mapped to my site's product coding system.一个具有来自多个供应商的供应商产品代码,这些代码必须映射到我站点的产品编码系统。 On this sheet there can be multiple vendor codes that map on to one of my site's product codes, like below:在这张表上,可以有多个供应商代码 map 位于我网站的一个产品代码上,如下所示:

Vendor Name供应商名称 Vendor Code供应商代码 Site Code站点代码
Armadillo犰狳 5CDE378 5CDE378 SITE123站点123
Barracuda梭鱼 ABCDE17893N7 ABCDE17893N7 SITE456站点456
Barracuda梭鱼 ZXHBW18123P0 ZXHBW18123P0 SITE123站点123

So in this case, there are products that have unique vendor codes (5CDE378) and (ZXHBW18123P0) but correspond to the same product and thus get assigned the same site code.因此,在这种情况下,有些产品具有唯一的供应商代码 (5CDE378) 和 (ZXHBW18123P0),但对应于同一产品,因此分配了相同的站点代码。

The second sheet I have pulls the unique site codes from the first sheet and has additional columns to add more information - sometimes through formulas, and sometimes hard-pasted from elsewhere.第二张表我从第一张表中提取了唯一的站点代码,并有额外的列来添加更多信息——有时通过公式,有时从其他地方硬粘贴。 It's crucial to note that this mix exists, because it means that we can't use the sort function on this particular sheet.重要的是要注意这种混合存在,因为这意味着我们不能在这个特定的工作表上使用排序 function。

Say I realize that the Barracuda code of ABCDE17893N7 is actually also the same product as the other two, and need to recode it to be SITE123 rather than SITE456.假设我意识到 ABCDE17893N7 的梭子鱼代码实际上也是与其他两个相同的产品,需要将其重新编码为 SITE123 而不是 SITE456。 In this case, I lose the unique code of SITE456 from sheet 1, and thus it's deleted from sheet 2, meaning all of the info in sheet 2 moves up a row (imagining we have thousands of rows of info and not just these 3).在这种情况下,我从表 1 中丢失了 SITE456 的唯一代码,因此它从表 2 中删除,这意味着表 2 中的所有信息都向上移动了一行(假设我们有数千行信息,而不仅仅是这 3 行) . I don't want this to happen.我不希望这种情况发生。

Is there any way of stipulating that when sheet 2 grabs the site code from sheet 1 it's 'frozen' so to speak, and doesn't delete when the corresponding value in sheet 1 is eliminated?有没有办法规定当工作表 2 从工作表 1 中获取站点代码时,可以说它是“冻结”的,并且当工作表 1 中的相应值被消除时不会删除? So basically I'm looking for a way to 1) fetch a unique code, 2) continue getting all new unique codes, and 3) ensure that once a code has been fetched, it cannot be deleted from the second sheet even if there's a change in sheet 1.所以基本上我正在寻找一种方法来 1) 获取唯一代码,2) 继续获取所有新的唯一代码,以及 3) 确保一旦获取代码,即使有一个代码,它也不能从第二张表中删除表 1 中的更改。

Thanks for your help - and let me know if I can clarify anything.感谢您的帮助-如果我能澄清任何事情,请告诉我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM