简体   繁体   English

如果来自另一个Excel工作表的A1,则在Excel工作表的单元格B1中自动插入文本值

[英]Insert a text value automatically in cell B1 of an excel sheet if A1from another excel sheet

Good Day, I have 02 excel sheets, one has all the database entry (single column) and in 2nd i've created a DD list and made a link to the database sheet from first excel file. 美好的一天,我有02个Excel工作表,一个拥有所有数据库条目(单列),第二个工作中,我创建了一个DD列表,并从第一个Excel文件建立了到数据库工作表的链接。 The second excel file' sheet has 2 columns, one contains DD list (working nice) and 2nd column is part number in reference to first column (for eg first column Duct Temp sensor and 2nd column has its relevant part#) now for this part # column also i have created DD list. 第二个excel文件的工作表有两列,一个包含DD列表(工作正常),第二列是相对于第一列的零件号(例如,第一列风管温度传感器和第二列有其相关零件号)。 #列我也创建了DD列表。 but what i want is to automatically generate part# if i select duct temp sensor from DD list. 但是,如果我从DD列表中选择风管温度传感器,我想要的是自动生成零件号。 I have about 90 entries and dont want to select part# each time. 我大约有90个条目,并且不想每次都选择部件号。 I want that once i select appropriate TAG (description) thru DD list in first column the 2nd column automatically compares the text and insert part# in the cell. 我希望一旦我在第一列中通过DD列表选择了适当的TAG(描述),第二列便会自动比较文本并在单元格中插入部件号。 Regards 问候

  1. What is "DD" ? 什么是“ DD”? i use excel for 20 years and never heard this expression 我使用excel已有20年了,从未听说过这种表达方式

  2. it's nearly impossible to read your post; 阅读您的帖子几乎是不可能的;

    • Please add double-new line (press ENTER 2 times) every time you finish to write an idea. 每次完成编写想法时,请添加双换行(按ENTER 2次)。
    • set items or steps in bullets or numbers 在项目符号或数字中设置项目或步骤
  3. to answer the question in the title: 回答标题中的问题:

excel formula in one cell doesn't have ways to set value in another cell. 一个单元格中的excel公式无法在另一单元格中设置值。 that's not how excel works. 这不是excel的工作方式。 Otherwise you have to use macros* 否则,您必须使用宏*

if you want to have a cell changed in B1 by the value in A1, you should write the appropriate formula in B1. 如果要在B1中将单元格更改为A1中的值,则应在B1中编写适当的公式。

the way to refer a formula in another worksheet is sheetName!A1 在另一个工作表中引用公式的方法是sheetName!A1

or for ranges: sheetName!A1:C3 或用于范围:sheetName!A1:C3


  • actually there's an ugly way, but it doesn't solve your problem, and it's way too ugly to be useful 实际上有一个丑陋的方法,但是它不能解决您的问题,而且它过于丑陋而无用

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

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