我正在尝试使用范围进行vlookup转置。 这些是移动备件的库存报告。无论我们将库存缓冲区覆盖到更新状态还是对应于范围升序。 (覆盖了多少移动股票,如1,2,10,20)
任何人都会感激不尽。
DATA
DESCRIPTION MODLE STATUS
Apricot 11 DONE
Avocado 10 DONE
Banana 8 DONE
Bilberry 7 DONE
Blackberry 16 DONE
Blackcurrant 20 DONE
Blueberry 2 DONE
DESIRED RESULT
AREA 7320 5520 5510 3320 1102 1100 950 940 930 920 919 918 917 916 915 914 913 912 911 910
Blueberry DONE DONE
Blackcurrant DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE
Blackberry DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE
Bilberry DONE DONE DONE DONE DONE DONE DONE
Banana DONE DONE DONE DONE DONE DONE DONE DONE
Avocado DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE
Apricot DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE DONE
答案 0 :(得分:0)
在B13中输入以下公式,假设顶部位于A1,然后填充到右侧和底部:
=IF(COUNT($B$12:$U$12)<VLOOKUP($A13,$A$3:$C$9,2,FALSE)+COLUMN(A13),"DONE","")
我认为有更好的方法来查找范围的长度而不仅仅是将其硬编码为$B$12:$U$12
。