简体   繁体   English

Excel / Google表格:在“ ISTEXT”条件下将数据从一个单元格复制到另一选项卡和单元格

[英]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)
  • SEARCH syntax SEARCH语法

  • DO NOT use “” . 请勿使用“” Always use " 一律使用"

  • IF Syntax IF语法

  • 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!B6Debit!C6 )引用B6和C6 Debit!C6

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Excel - 将内容从一个单元格复制到另一个单元格(有条件) - Excel - Copying content from a cell to another ( with condition ) 从一个Excel到另一个Excel逐个单元复制值 - Copying value cell by cell from one excel to another excel 根据另一个单元格的值将数据从一个单元格复制到另一个单元格 - Copying data from one cell to another based on the value of another cell 将单元格数据从一个工作表复制到另一个工作表 - Copying cell data from one worksheet to another 使用vba将单元格从一个工作簿复制到excel中的另一个工作簿 - Copying the cell from One workbook to another workbook in excel using vba 根据单元格值将行从一个 Excel 工作表复制到另一个 - Copying rows from one Excel sheet to another based on cell value Excel VBA - 将单元格内容从一张纸复制到另一张纸 - Excel VBA - copying cell contents from one sheet to another Google表格:根据另一个单元格中的布尔条件,连续增加单元格的数量 - Google sheets: cumulative addition of cells in a row, based upon a boolean condition in another cell 如何通过使用Excel公式自动将单元格数据的最大值从一个选项卡复制到另一选项卡 - How to copy max value of a cell data from one tab to another tab automatically by using Excel formula Excel VBA使用单元格引用从另一个工作簿复制数据 - Excel VBA Copying data from another workbook using cell reference
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM