[英]Excel/Google Sheets: Copying data from one cell upon “ISTEXT” condition to another tab and cell
I'm working on a Google Sheets "Budget" project with data that will be populated via form entries. 我正在处理一个Google表格“预算”项目,其中的数据将通过表单条目填充。 What I'm trying to accomplish is the following: 我要完成的工作如下:
I have data entered dynamically in a tab (Debit), If the description in the line entry is "Credit", I want the adjacent cell-value to be placed in another tab/cell. 我在选项卡(借方)中动态输入了数据,如果行条目中的描述为“贷方”,我希望将相邻的单元格值放置在另一个选项卡/单元格中。
I have tried many combination of the following all with either errors or not the expected outcome.This may be a case for VBA, of which I have NO experience with. 我已经尝试了以下所有方法的许多组合,无论是错误还是没有预期的结果.VBA可能就是这种情况,我没有经验。
=IF(Debit!B6="Credit",”'Monthly Budget'!C60”,”Fail”)
=IF(ISNUMBER(SEARCH(B6="Credit",C6 'Monthly Budget'!C60))
=IF(B6="Credit",'Monthly Budget'!C60,"")
Please see my screenshot for a visual representation of what I'm trying to accomplish.Thank you in advance. 请查看我的屏幕截图,以直观的方式了解我要完成的工作。预先感谢您。 Graphic Breakdown 图形细分
Your syntax is all wrong. 您的语法全错了。 Please learn the correct syntax. 请学习正确的语法。
'Monthly Budget'!C60= “每月预算”!C60 =
=IF(ISNUMBER(SEARCH ("Credit",Debit!B6)),Debit!C6)
DO NOT use “”
. 请勿使用“”
。 Always use "
一律使用"
If you want results in a sheet, You do not use need to reference that sheet ( In this case, You don't need to reference monthly budget sheet). 如果要在工作表中显示结果,则无需使用该工作表(在这种情况下,您无需参考每月预算表)。 But if you want results from
a sheet, Then you reference that sheet. 但是,如果您希望from
表中获得结果,则可以引用该工作表。 Here you need to reference B6 and C6 with a sheet name ( Debit!B6
and Debit!C6
) 在这里,您需要使用工作表名称( Debit!B6
和Debit!C6
)引用B6和C6 Debit!C6
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.