[英]Compare first and last value of row in Excel
I've put together a table to track the success of some SEO efforts. 我整理了一张表格来跟踪一些SEO工作的成功。 For each row I'd like to compare the starting value with the most recent value.
对于每一行,我想将起始值与最新值进行比较。 We update this table each week, so it'd be great if it could dynamically reference the last non-blank space.
我们每周都会更新此表,因此,如果它可以动态引用最后一个非空白空间,那就太好了。
I tried this with Vlookup and Hlookup, but they both seem to only want to work vertically down the column. 我用Vlookup和Hlookup进行了尝试,但是它们似乎都只想垂直向下工作。
This is what I've got now, but again, it's looking up values in the column instead of the row. 这就是我现在所拥有的,但是再次,它是在列而不是行中查找值。
=VLOOKUP(C3+99,C5:C99,1)-C5
I'm new to this, so I'm feeling pretty lost. 我对此并不陌生,所以我感到很失落。
Try VBA. 尝试使用VBA。 It is good to learn, especially if you are doing any technical work (SEO results can be tricky to interpret).
学习非常好,特别是如果您正在做任何技术性工作(SEO结果很难解释)。
Here is an idea of the logic you could use for your first relatively simple VBA program: 这是您可以用于第一个相对简单的VBA程序的逻辑概念:
Try this: 尝试这个:
=C5-OFFSET(C5,0,COUNTA(C5:AAA5)-1)
= C5-OFFSET(C5,0,COUNTA(C5:AAA5)-1)
CountA counts the number of non-empty spaces and offset retrieves a value from a specified number of cells away. CountA计算非空空格的数量,偏移量从指定数量的单元格中获取一个值。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.