如何选择列中的最后一个值 [英] How to select the last value in a column

查看:100
本文介绍了如何选择列中的最后一个值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述











< td height ="17"align ="right"style ="height:12.75pt;背景色:透明; border:#d4d0c8">
59




















































































































































































A列
B列 C列 D列

565 59

105 59

105 59

105 59

91 59

105 59

94 59

105 94

105 94

77 94

98 94

70 94

70 94

70 94

70 94

70 94

70 94

70 94

63 94

63 94

63 94

70 94

105 94

3 59

105 3

105 3

105 3

70 3

77 3

 

Column A Column B Column C Column D
59
565 59
105 59
105 59
105 59
91 59
105 59
94 59
105 94
105 94
77 94
98 94
70 94
70 94
70 94
70 94
70 94
70 94
70 94
63 94
63 94
63 94
70 94
105 94
3 59
105 3
105 3
105 3
70 3
77 3

 

大家好,

我正在尝试使用最后一个值函数来选择上一列中的最后一个值并将其输入到同一行在结尾列中。如上所述,列B行的列值D等于A的最后一个值,列D的列C等于B的
最后一个值。 出现问题 因为我正在尝试将第一个上一个非空白单元格放在列中,而不是列中的最后一个非空白(通常是底部)。 不确定这是否可行?

I'm trying to use the last value function to select the last value in the previous column and enter it in the same row in the end column.  As per above, column D value for column B row equals A's last value, column D for column C equals B's last value.  The problem arises as I am trying to take the first previous non blank cell going up the column not the last non blank in the column (usually the bottom).  Not sure if this is even possible?

I我们已尝试使用用户选择的范围,但发现很难将以前的值与要在D栏中输入的行匹配。

I've tried using user selected ranges but found it difficult to match the previous values with the rows to input in column D.

任何帮助此人都非常感谢!

Any help with this woul be much appreciated!

问候,

Brett 

Brett 

推荐答案

嗨Brett。 你的措辞在这里有点令人困惑。 我假设你在谈论Excel,对吧? 这个COM是否与.NET应用程序或其他内容互操作?

Hi Brett.  Your wording is a bit confusing here.  I assume you are talking about Excel, right?  Is this COM interop to a .NET app or something else?

听起来您希望在A之间的每个列的最底部单元格中找到该值和C,然后将相应行中的值放入D列。 因此,使用您的示例数据,将在其各自的行中向D列写入
的三个值: 来自 小区A:1;来自Cell B的3:25; &安培;来自C单元格的77:33。 这是对的吗? 

It sounds like you are looking to locate the value in the bottom-most cell of each of the columns between A and C, then place that value in the corresponding row into the D column.  So using your sample data there would be three values written to the D column in their respective rows:  59 from cell A:1; 3 from Cell B:25; & 77 from cell C:33.  Is this right? 

此外,您的问题究竟是什么 - 您是否在询问如何最好地找到列中的最后一个值或其他内容? 您是在寻找代码示例还是最佳逻辑路径?

Also, what exactly is your question -- are you asking how best to find the last value in a column or something else?  Are you looking for code examples or just the best route of logic?

 

 


这篇关于如何选择列中的最后一个值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆