简体   繁体   中英

copy formula to many cells in excel

Hi i want to copy the formula in some continous cells in same column

the formula is

=IF(L4>27,Complexity!B10,IF(L4>24,Complexity!B9,IF(L4>20,Complexity!B8,IF(L4>17,Complexity!B7,IF(L4>14,Complexity!B6,IF(L4>10,Complexity!B5,IF(L4>7,Complexity!B4,IF(L4>4,Complexity!B3,Complexity!B2))))))))

if iam using fill handle for the cells below the formula will change to like below

=IF(L5>27,Complexity!B11,IF(L5>24,Complexity!B10,IF(L5>20,Complexity!B9,IF(L5>17,Complexity!B8,IF(L5>14,Complexity!B7,IF(L5>10,Complexity!B6,IF(L5>7,Complexity!B5,IF(L5>4,Complexity!B4,Complexity!B3))))))))

=IF(L6>27,Complexity!B12,IF(L6>24,Complexity!B11,IF(L6>20,Complexity!B10,IF(L6>17,Complexity!B9,IF(L6>14,Complexity!B8,IF(L6>10,Complexity!B7,IF(L6>7,Complexity!B6,IF(L6>4,Complexity!B5,Complexity!B4))))))))

etc..

but i want the Complexity!B* value as it is in parent formula

You can use $ to make the column/row fixed. So it will be B$10 ... B$9... in your example.

Just fix all you b with $ sign as in here:

=IF(L4>27,Complexity!$B$10,IF(L4>24,Complexity!$B$9,IF(L4>20,Complexity!$B$8,IF(L4>17,Complexity!$B$7,IF(L4>14,Complexity!$B$6,IF(L4>10,Complexity!$B$5,IF(L4>7,Complexity!$B$4,IF(L4>4,Complexity!$B$3,Complexity!$B$2))))))))

A $ sign before the letter fixes the column while $ sign before the number fixes the row.

Then you can drag this with no problems..

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