简体   繁体   English

如何使单元格基于下拉选择填充其他工作表中的数据

[英]how to make a cell populate data from another sheet based on dropdown selection

I've looked and didn't get an example that works for my situation. 我已经看过,但没有找到适合我的情况的示例。

I am making a pricing calculator and need to have pricing populate in cells once I've selected the device from a dropdown. 我正在制作价格计算器,并且从下拉列表中选择设备后,需要在单元格中填充价格。

I've created the source data in Sheet2 Column A is Device Column B is MSRP and Column C is Discounted price 我在Sheet2中创建了源数据,列A是设备列B是MSRP,列C是折价

On Sheet 1 I want to select a device in cell B4 (already have that dropdown created) and have it automatically populate the MSRP in C4 and the Discounted price in D4. 在工作表1上,我想在单元格B4中选择一个设备(已经创建了该下拉列表),并让它自动填充C4中的MSRP和D4中的折扣价。

I'm not very familiar with how to use Vlookup and IFERROR and the other answers I've seen didn't explain how the formulas worked enough for me to adapt those to my situation. 我对如何使用Vlookup和IFERROR不太熟悉,而我看到的其他答案并没有说明公式如何足以使我适应我的情况。

Any help is appreciated, thank you! 任何帮助表示赞赏,谢谢!

Something like: 就像是:

=IFERROR(VLOOKUP (B4,'Sheet2'!A$1:C$200,2,FALSE)),"-") = IFERROR(VLOOKUP(B4,'Sheet2'!A $ 1:C $ 200,2,FALSE)),“-”)

In C4 in sheet 1 will return the value from column 2 on the range A:C in sheet 2 (ie column B). 在工作表1的C4中,将返回工作表2中A:C范围(即B列)中第2列的值。 Change the 2 to 3 in D4 to get the value from column C in sheet 2. The FALSE forces excel to match the values exactly rather than just picking the first likely match it finds. 将D4中的2更改为3,以从工作表2的C列中获取值。FALSE力精于精确匹配值,而不仅仅是选择它找到的第一个匹配项。 If it can't find the value IFERROR returns -. 如果找不到该值,则IFERROR返回-。 You can change C$200 to cover the full range of whatever is in your list in sheet 2. 您可以将200加元更改为覆盖工作表2列表中所有内容的全部范围。

暂无
暂无

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

相关问题 根据下拉菜单中的选择将数据复制到另一个工作表 - Copy data to another sheet based on selection from dropdown 如何根据另一张表中各列的条目填充单元格内容 - How to populate cell contents based on entries in the columns from the another sheet 在DropDown选择中将数据从一个工作表链接到另一个工作表 - Linking Data from One sheet into another on DropDown selection 根据单元格值从另一张表中提取数据 - Pull data based from another sheet based on a cell value 在Excel中,如何根据一个工作表中的行与另一工作表中的列之间的匹配来填充单元格 - In Excel, how to populate cell based on match between row in one sheet and column in another sheet 如何根据另一个工作表中的值填充不同工作表中的单元格,反之亦然 - How to populate a cell in a different sheet based on the value in another sheet and vice versa excel根据另一个单元格值从另一个工作表中提取数据 - excel pulling data from another sheet based on another cell value 我们可以使用单元格范围验证从 EPPLUS 的另一张表中填充 excel 中的下拉列表吗 - Can we use Cell Range Validation to populate a dropdown list in excel from another sheet in EPPLUS 根据下拉列表选择索引另一张纸的数据 - Indexing data from another sheet based on drop down list selection 根据另一个单元格 Excel 的下拉菜单设置单元格上的数据验证 - Set Data Validation on cell based on dropdown from another cell Excel
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM