作者:
mini178 (mini178)
2023-07-20 17:31:03軟體:excel
版本:office_365
想要請問這裡寫法要怎麼修改
Cells(2, 1).Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(R2C4, ratio!RC12:RC15, 2, FALSE)"
去看A2會發現是
=VLOOKUP($D$2, ratio!$L2:$O2, 2, FALSE)
因為有下拉的需求
請問要怎麼改寫才會變成
=VLOOKUP(D2, ratio!L:O, 2, FALSE)
感謝大神
作者: oldbottle (oldbottle) 2023-07-20 17:40:00
Cells(2, 1).SelectActiveCell.Formula = "=VLOOKUP(D2, ratio!L:O, 2, FALSE)"