I have 5 spreadsheets each with 48 columns. Based on the values entered in 'column B' I would like to copy those particular rows but not all the columns to a separate 'destination' sheet. Also, checking across the rest of the spreadsheets. Please see below to the corresponding mini-sheet versions for your reference. There are three different sheets, namely Sheet1, Sheet2 and Sheet 3 each with 20 columns. The values are entered in column B of every sheet. Some values in some of the columns (such as columns J, K and M) rely on the values from other columns. I have highlighted the normal columns (in yellow), the columns with formula (in green) and rows (in red). The ones highlighted in red are the ones to be copied to their corresponding columns (marked as bold) that are found in the destination sheet . I am not sure how to handle the cells with formula while copying them to the destination sheet. Any help would be kindly appreciated.

**contents of Sheet1:**

sample_sheet.xlsx | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | |||

9 | data1 | data2 | data3 | data4 | data5 | data6 | data7 | data8 | data9 | data10 | data11 | data12 | data13 | data14 | data15 | data16 | data17 | data18 | data19 | data20 | ||

10 | ||||||||||||||||||||||

11 | gjdlkgd | 1 | dgdgd | 3434 | sdfdsf | 5454 | fsdf | 46456 | 54456 | 7998 | 100912 | 65464 | 8888 | 4564 | fgfd | dfgdf | 5 | fdg | 3434 | fg | ||

12 | dfglkdfg | dgdfg | 435 | sfds | 454 | dsfds | 654 | 4654 | 34889 | 5308 | 546 | 889 | 544 | dfg | dfgdf | 45 | fdg | 34345 | dfg | |||

13 | dfglkdfg | 2 | dfgkldf | 434 | fds | 454 | sdfsd | 54 | 546 | 9107 | 600 | 54 | 888 | 5654 | dfg | dfgdf | 45 | fdg | 3453 | dfg | ||

14 | dfglkfd | dfgdd | 343 | sdfdsf | 454 | sdfds | 455 | 546 | 4017 | 1001 | 54 | 797 | 564 | dfg | dfgdf | 45 | dfg | 3453 | dfg | |||

15 | fdlgnkdkfl | dfgdf | 343 | sdfdsf | 456 | fsdfsdf | 54 | 456 | 40197 | 510 | 456 | 799 | 5654 | dfg | dfgdf | 3 | fdg | 34543 | dfg | |||

16 | dfklgndkf | dfgdfg | 53 | sdfsd | 45664 | sdf | 45 | 456 | 3909 | 501 | 456 | 45717 | 456 | dfg | dfg | 2 | fgdf | 3453 | dfg | |||

Sheet1 |

Cell Formulas | ||
---|---|---|

Range | Formula | |

J11:J16 | J11 | =N11+S11 |

K11:K16 | K11 | =H11+I11 |

M11:M16 | M11 | =D11+F11 |

**contents of Sheet2:**

sample_sheet.xlsx | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | |||

8 | data1 | data2 | data3 | data4 | data5 | data6 | data7 | data8 | data9 | data10 | data11 | data12 | data13 | data14 | data15 | data16 | data17 | data18 | data19 | data20 | ||

9 | ||||||||||||||||||||||

10 | gjdlkgd | dgdgd | 3434 | sdfdsf | 5454 | fsdf | 46456 | 54456 | 7998 | 100912 | 65464 | 8888 | 4564 | fgfd | dfgdf | 5 | fdg | 3434 | fg | |||

11 | dfglkdfg | 3 | dgdfg | 435 | sfds | 454 | dsfds | 654 | 4654 | 34889 | 5308 | 546 | 889 | 544 | dfg | dfgdf | 45 | fdg | 34345 | dfg | ||

12 | dfglkdfg | dfgkldf | 434 | fds | 454 | sdfsd | 54 | 546 | 9107 | 600 | 54 | 888 | 5654 | dfg | dfgdf | 45 | fdg | 3453 | dfg | |||

13 | dfglkfd | dfgdd | 343 | sdfdsf | 454 | sdfds | 455 | 546 | 4017 | 1001 | 54 | 797 | 564 | dfg | dfgdf | 45 | dfg | 3453 | dfg | |||

14 | fdlgnkdkfl | dfgdf | 343 | sdfdsf | 456 | fsdfsdf | 54 | 456 | 40197 | 510 | 456 | 799 | 5654 | dfg | dfgdf | 3 | fdg | 34543 | dfg | |||

15 | dfklgndkf | 5 | dfgdfg | 53 | sdfsd | 45664 | sdf | 45 | 456 | 3909 | 501 | 456 | 45717 | 456 | dfg | dfg | 2 | fgdf | 3453 | dfg | ||

Sheet2 |

Cell Formulas | ||
---|---|---|

Range | Formula | |

J10:J15 | J10 | =N10+S10 |

K10:K15 | K10 | =H10+I10 |

M10:M15 | M10 | =D10+F10 |

**contents of Sheet3:**

sample_sheet.xlsx | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|

A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | |||

9 | data1 | data2 | data3 | data4 | data5 | data6 | data7 | data8 | data9 | data10 | data11 | data12 | data13 | data14 | data15 | data16 | data17 | data18 | data19 | data20 | ||

10 | ||||||||||||||||||||||

11 | gjdlkgd | 2 | dgdgd | 3434 | sdfdsf | 5454 | fsdf | 46456 | 54456 | 7998 | 100912 | 65464 | 8888 | 4564 | fgfd | dfgdf | 5 | fdg | 3434 | fg | ||

12 | dfglkdfg | dgdfg | 435 | sfds | 454 | dsfds | 654 | 4654 | 34889 | 5308 | 546 | 889 | 544 | dfg | dfgdf | 45 | fdg | 34345 | dfg | |||

13 | dfglkdfg | dfgkldf | 434 | fds | 454 | sdfsd | 54 | 546 | 9107 | 600 | 54 | 888 | 5654 | dfg | dfgdf | 45 | fdg | 3453 | dfg | |||

14 | dfglkfd | dfgdd | 343 | sdfdsf | 454 | sdfds | 455 | 546 | 4017 | 1001 | 54 | 797 | 564 | dfg | dfgdf | 45 | dfg | 3453 | dfg | |||

15 | fdlgnkdkfl | 4 | dfgdf | 343 | sdfdsf | 456 | fsdfsdf | 54 | 456 | 40197 | 510 | 456 | 799 | 5654 | dfg | dfgdf | 3 | fdg | 34543 | dfg | ||

16 | dfklgndkf | dfgdfg | 53 | sdfsd | 45664 | sdf | 45 | 456 | 3909 | 501 | 456 | 45717 | 456 | dfg | dfg | 2 | fgdf | 3453 | dfg | |||

Sheet3 |

Cell Formulas | ||
---|---|---|

Range | Formula | |

J11:J16 | J11 | =N11+S11 |

K11:K16 | K11 | =H11+I11 |

M11:M16 | M11 | =D11+F11 |

**contents of destination:**

sample_sheet.xlsx | ||||||||
---|---|---|---|---|---|---|---|---|

A | B | C | D | E | F | |||

5 | data1 | data2 | data4 | data10 | data11 | data13 | ||

destination |

Thanks,

plasma30