简体   繁体   English

Excel,用于检查可用性的公式。 检查并复制值以覆盖每个位置

[英]Excel, Formula to check availability. Check and copy values to cover each position

I have the following table:我有下表: 在此处输入图片说明

The formula I am looking for should do this: Starting from Prod.我正在寻找的公式应该这样做:从 Prod 开始。 2 in the second table (I4): It should check if the cell A4 is blank, then look for a value in B4 if B4 has a value copy it to I4.第二个表(I4)中的2:它应该检查单元格A4是否为空,然后在B4中查找值如果B4有值则将其复制到I4。 If A4 is not blank, no need to look for value and no need to copy it, just leave I4 blank.如果A4不为空,不用找值,不用复制,I4留空即可。

In J4 it should check if cells A4:B4 are blank before looking for value C4.在 J4 中,它应该在查找值 C4 之前检查单元格 A4:B4 是否为空白。 ... The last one M4 should check cells A4:E4 before checking values in F4 to copy it (if there is) into M4. ... 最后一个 M4 应该在检查 F4 中的值以将其(如果有)复制到 M4 之前检查单元格 A4:E4。

The table should represent maximal availibilty.该表应代表最大可用性。 The objective is to check if there is already an value in the column before, if yes no need to act, if blank, yes look up and copy value from next column.目的是检查之前列中是否已经有值,如果是则无需操作,如果为空,则从下一列中查找并复制值。 This goes on until last column M4.这一直持续到最后一列 M4。 The values within in the cells are not of importance.单元格中的值并不重要。 It should simply check if like this: if there is nothing in cells A4:E4 then look up F4 and if in F4 there is a value then copy it to M4 if F4 is also blank, then M4 keeps blank.它应该简单地检查是否这样:如果单元格 A4:E4 中没有任何内容,则查找 F4,如果在 F4 中有一个值,则将其复制到 M4,如果 F4 也是空白,则 M4 保持空白。 Like this for every column.每一列都是这样。 L4 would be like this--> check if A4:D4 have a value if every cell is blank then look up E4 and if E4 has value then copy it to L4 if not, leave L4 blank..... L4 会是这样--> 检查 A4:D4 是否有值,如果每个单元格都是空白,然后查找 E4,如果 E4 有值,则将其复制到 L4,如果没有,则将 L4 留空.....

I hope this gets some rep..我希望这得到一些代表..

Column h : Prod 1第 h 列:产品 1

=IF(A4="";"";A4)

Column i : Prod 2第 i 列:产品 2

=IF(H4="";IF(B4="";"";B4);"")

Column j : Prod 3第 j 列:产品 3

=IF(AND(H4="";I4="");IF(C4="";"";C4);"")

Column k : Prod 4第 k 列:产品 4

=IF(AND(H4="";I4="";J4="");IF(D4="";"";D4);"")

Column l : Prod 4第 l 列:产品 4

=IF(AND(H4="";I4="";J4="";K4="");IF(E4="";"";E4);"")

Column m : Prod 6第 m 列:产品 6

=IF(AND(H4="";I4="";J4="";K4="";L4="");IF(F4="";"";F4);"")

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

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