简体   繁体   中英

Excel - Populate multiple cells based on another cell value

I have the below table on the excel

     A           B         C         D
Total Errors   Error_1   Error_2   Error_3
     3
     2
     1

need a formula to populate cells from B:D as shown below.
The output to be :

     A           B         C         D
Total Errors   Error_1   Error_2   Error_3
     3           1         1         1
     2           1         1
     1           1

Thanks.

In B2 enter:

=IF($A2>COLUMN()-2,1,"")

then copy this cell both across and down.

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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