简体   繁体   English

Excel 从垂直单元格表引用到水平单元格获取值

[英]Excel get value from vertical cell sheet reference to horizontally cell

Sheet 5 Sheet 6第 5页 第 6 页

I have two sheet with different cell orientation, one is vertical and one is horizontal我有两张不同单元格方向的工作表,一张是垂直的,一张是水平的

I want to fill horizontal cell in sheet 6 based on reference value from sheet 5 which is vertical cell.我想根据来自垂直单元格的第 5 页的参考值填充第 6 页中的水平单元格。

I want create formula "IF date 1 on sheet 6 is IN then get value from date 1 IN on sheet 5"我想创建公式“如果表 6 上的日期 1 为 IN,则从表 5 上的日期 1 IN 获取值”

I already use some IF statement but when I drag it to right, the formula reference on sheet 5 also moved to right.我已经使用了一些 IF 语句,但是当我将其拖动到右侧时,表 5 上的公式引用也向右移动。 Can it changed to move down?可以改下移吗?

If I understood the issue correclty, you can use the indirect function to construct the cell pattern.如果我理解正确的问题,您可以使用indirect function 来构造单元格模式。

For example, if you write =INDIRECT("Sheet5!B"&COLUMN(A1)) on the Sheet6 cell and then drag it to the right it will move the reference down on the Sheet5.例如,如果您在 Sheet6 单元格上写入=INDIRECT("Sheet5!B"&COLUMN(A1)) ,然后将其向右拖动,它将在 Sheet5 上向下移动引用。

You can combine your existing conditions with that function to achieve the result.您可以将现有条件与该 function 结合起来以实现结果。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM