VLookup在Excel中匹配插入(VLookup match insert in Excel)
我是这个网站的新手; 如果我犯了任何错误,请接受我的道歉。
我需要一些关于Excel中的搜索和替换方法的帮助。
我的目标是从列中选择一系列随机值(例如,列D),并查看唯一列中是否存在该值的相应匹配(例如,列A)。 如果此值在列A中,我想将该值插入与相应值列A相同的行中,但插入另一列(例如,列E)。
我已经厌倦了各种不同的功能,如
IF
,VLOOKUP
和MATCH
但到目前为止还没有运气。有人可以告诉我如何做到这一点,或者甚至可以做到这一点?
谢谢!
I am new to this website; if I make any mistakes, please accept my apologies.
I am in need of some help regarding a search and replace method in Excel.
My goal is to select a range of random values from a column (e.g. column D) and see if there is a corresponding match for that value in the unique column (e.g. column A). If this value is in column A, I would like to insert that value in the same row as the corresponding value column A but into another column (e.g. column E).
I have tired various different functions such as
IF
,VLOOKUP
, andMATCH
but have had no luck so far.Can someone please show me how can this be done or if its even possible to do?
Thank you!
原文:https://stackoverflow.com/questions/18365821
最满意答案
Markus England的这篇论文详细分析了Apriori的复杂性:
http://www2.ims.nus.edu.sg/preprints/2005-29.pdf
您可以按如下方式引用它:
M. Hegland,“Apriori算法 - 教程”,成像科学和信息处理中的数学和计算,第一卷。 11,pp.209-262,World Scientific Publishing Co.,2007
This paper by Markus England provides a detailed analysis of the complexity of Apriori:
http://www2.ims.nus.edu.sg/preprints/2005-29.pdf
You can cite it as follows:
M. Hegland, “The Apriori Algorithm – A Tutorial”, Mathematics and Computation in Imaging Science and Information Processing, vol. 11, pp. 209-262, World Scientific Publishing Co., 2007
相关问答
更多-
O ( n 2 )被定义为函数集R ( n ),使得对于某些常数c ,对于所有足够大的n , R ( n ) ≤cn2 。 该不等式等价于R ( n ) / n2≤c。 因此,你的老师建议你绘制R ( n ) / n 2来看看,对于足够大的n ,你得到(大致)一个常数c 。 请注意,此图不是正式证明。 这只是一个有用的可视化。 O(n2) is defined as the set of functions R(n) such that, for some constant c, R(n) ≤ cn2 fo ...
-
没有办法做到这一点。 你永远不会知道你必须为任何给定的算法测试什么样的n 。 例如,在小的t值(输入)处, sin和linear看起来几乎相同。 指数可以在各种输入范围内看多项式。 对于其他函数,常数时间可以使线性函数看起来是次线性的。 找出大复杂性的方法是自己分析算法。 There's just no way to do this. You'll never know generally what set of n you have to test for any given algorithm. For ...
-
对于每个i ,第二个循环通过2的幂运行j ,直到它超过n :1,2,4,8,...,2 h ,其中h = int(log 2 n)。 因此,最内部循环的主体运行2 0 + 2 1 + ... + 2 h = 2 h + 1 -1次。 并且2h + 1 -1 = 2 int(log 2 n)+1 -1,即O(n)。 现在,外循环执行n次。 这给出了整个事物O(n * n)的复杂性。 For each i, the second loop runs j through the powers of 2 until ...
-
图算法的运行时间(Running Time of Graph Algorithms)[2024-01-03]
它为vi的每个边缘事件运行一次。 当每个边缘入射到2个顶点时,最后,每个边缘被访问两次,每个顶点被访问一次。 所以O(n + 2m)= O(n + m)使用邻接表。 使用邻接矩阵,找出哪些边缘入射到vi,您将需要O(n)运算。 所以算法是O(n²)。 It runs once for every edge incident to vi. As each edge is incident to 2 vertices, in the end, each edge is visited twice, and ea ... -
Apriori算法运行时间(Apriori Algorithm Running Time)[2023-09-15]
Markus England的这篇论文详细分析了Apriori的复杂性: http://www2.ims.nus.edu.sg/preprints/2005-29.pdf 您可以按如下方式引用它: M. Hegland,“Apriori算法 - 教程”,成像科学和信息处理中的数学和计算,第一卷。 11,pp.209-262,World Scientific Publishing Co.,2007 This paper by Markus England provides a detailed analysi ... -
显然,你的想法是正确的! 当算法用于大小(n)时,在最坏的情况下,如果大小增加,速度将与n ^ 3成反比。 你的假设是正确的。你把n = 900,000的值放n = 90后得分,得到结果。这个因素将是减速因素! 这里, slowing factor = (900,000)^3 / (90)^3 = 10^12 ! 因此,慢因子= 10 ^ 12.你的程序将减慢10 ^ 12!这样一个剧烈的变化!换句话说,你的效率会下降10 ^( - 12)倍! 编辑基于建议的评论 : - 但是,如何根据最坏情况的时间复杂度 ...
-
一般来说这是不可能的。 SAT是NP完全问题,SMT至少与SAT一样难。 It's not possible in general. SAT is an NP-complete problem, and SMT is at least as hard as SAT.
-
Apriori算法(Apriori Algorithm)[2023-12-14]
那么,我会假设你已经阅读了维基百科条目,但你说“一个基本的例子会让我更容易理解”。 维基百科就是这样,所以我会假设你没有阅读它,并建议你这样做。 阅读维基百科文章。 Well, I would assume you've read the wikipedia entry but you said "a basic example would make it a lot easier for me to understand". Wikipedia has just that so I'll assume y ... -
一般来说这很困难。 在单变量情况下通过实验测量运行时间的常用方法是,插入一个计数器,当您的数据结构执行基本(假定的O(1) )操作时递增,然后获取许多不同输入大小的数据,并绘制它在对log-log图上。 也就是说, log T vs. log N 如果运行时间是n^k的形式,你应该看到一条斜率k的直线,或接近这个的东西。 如果运行时间类似于T(n) = n^{k log n}或其他东西,那么你应该看到一个抛物线。 如果T在n呈指数增长,你仍然应该看到指数增长。 您只能希望在执行此操作时获得有关最高阶项的信息 ...
-
根据给出的信息,排序/不排序对最坏的情况没有影响。 在这两种情况下,最糟糕的情况是,最新一行中的最新元素是要查找的那一行。 在这种情况下,运行时将为O(n ^ 2),其中n具有您使用nxn指出的含义。 它是nxn因为你必须迭代n行,然后在每一行进行n比较。 如果您使用二进制搜索,则排序的示例将具有O(n log n)的最差情况运行时,并且最坏的情况是,搜索的元素位于最后一行的中间。 With the information given, sorting/not sorting has no effect t ...