简体   繁体   中英

Change cell when INDIRECT formula is dragged down

I have the following formula set-up: =INDIRECT("'Passed to Salesforce (digital only)'!A46",TRUE)

However I'd like the A46 number to update when I drag the formula down.

I've tried using the &CELL but can't get it to quite work:

=INDIRECT("'Passed to Salesforce (digital only)'!A46""!"&CELL("address",TRUE))

Can anyone help me out?

Thanks,

Sam

I have no idea what you're trying to do in your second formula.

The first one won't change the reference because it is just text not an actual cell reference. If you only want to update the row, not the column you could use ROW() to get the current cell's row add an offset (eg if you start with your formula in row 1 and want A46 your offset is 45):

=INDIRECT("'Sheet1'!A"&ROW()+45,TRUE)

我弄清楚了,我不得不删除第一个单元格引用和重复的感叹号:

=INDIRECT("'Passed to Salesforce (digital only)'!"&CELL("address", A47))

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