简体   繁体   English

需要Excel 2007 Formula的帮助-多对多更新

[英]Need help with Excel 2007 Formula - Many to many update

I'm experienced with database development, but not so much with Excel. 我有数据库开发方面的经验,但对Excel则没有太多经验。 I'm looking for help writing an Excel formula that would help my client's spreadsheet behave like a database. 我正在寻找写Excel公式的帮助,该公式将帮助客户的电子表格像数据库一样工作。 This is what I'm looking to do, but I can't figure out how to write it in Excel 2007: 这是我想要做的,但是我不知道如何在Excel 2007中编写它:

"If Q4 (on sheet 2) contains A2 (on sheet 1), append A1 (on sheet 1) with Q5 (on sheet 2)" “如果Q4(在工作表2上)包含A2(在工作表1上),则在A1(在工作表1上)附加Q5(在工作表2上)”

Some factors: 一些因素:

1) This formula may find multiple instances of A2, so it should not stop after finding the first match 1)此公式可能会找到A2的多个实例,因此在找到第一个匹配项后不应停止

2) The values, as they are created in A1, should be separated with comma and space 2)在A1中创建的值应用逗号和空格分隔

3) This is a many to many relationship between Q4 and A2 3)这是Q4和A2之间的多对多关系

Thanks for any help with this. 感谢您对此的任何帮助。 I've tried vlookups, match, if statements, but they all fall short in one way or another. 我已经尝试了vlookups,match,if语句,但是它们都以一种或另一种方式无法实现。

Well, use SQL to query your spreadsheet. 好吧,使用SQL查询您的电子表格。

In excel, go Data > Import External Data > New Database Query. 在excel中,转到“数据”>“导入外部数据”>“新数据库查询”。 Choose Excel Files, and you can query it with an SQL statement. 选择“ Excel文件”,然后可以使用SQL语句查询它。

OR 要么

Create a link table in access, and use ms access to do your queries. 在Access中创建一个链接表,并使用ms access进行查询。

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

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