基于另一个单元格中公式更改的行 [英] Row in formula change based on value in another cell

查看:113
本文介绍了基于另一个单元格中公式更改的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在excel中创建一个段落。我想从另一张表中列出我想从中拉出的值。



这是我使用的代码:

  = CONCATENATE(亲爱的,链接日志!I6,,Blah Blah Blah)

我想要列我改变一样,但是我试图让它改变,这取决于我在另一个单元格(例如E8)中键入的值。所以如果我在单元格中输入7,公式将变为:

  = CONCATENATE(亲爱的,链接日志 !I7,,Blah Blah Blah)

这是可能吗?



我不是要生成邮件,所以邮件合并对我来说并不是很有帮助。



感谢您的帮助!

解决方案

您应该能够使用 INDIRECT 工作表函数来实现。例如如果单元格A1包含值7,则您的公式将为

  = CONCATENATE(亲爱的,INDIRECT( !I& A1),Blah Blah Blah)


I'm trying to create a paragraph in excel. I have values listed in another sheet that I want to pull from.

Here is the code I'm using:

=CONCATENATE("Dear ",'Linkage Log'!I6,", "Blah Blah Blah")

I want the column I to change the same, but I'm trying to have it so that the 6 changes depending on a value I type in another cell (e.g. E8). So if I type 7 in the cell, the formula will change to:

=CONCATENATE("Dear ",'Linkage Log'!I7,", "Blah Blah Blah")

Is this possible?

I'm not trying to generate mail, so a mail merge isn't really helpful to me.

Thanks for your help!

解决方案

You should be able to use the INDIRECT worksheet function to achieve that. So e.g. if cell A1 contains the value 7, your formula would be

=CONCATENATE("Dear ",INDIRECT("'Linkage Log'!I"&A1), "Blah Blah Blah")

这篇关于基于另一个单元格中公式更改的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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