Replace offset with Index

bkish

New Member
Joined
Jul 28, 2008
Messages
20
I currently am using offset to reference another workbook. I have a cell that has a defined name so I reference that cell and then do my offset off of that. The formula looks like this:

=IF(OFFSET('Source.xls'!Bulk_Counterparty,1,0)="","",(OFFSET(Source.xls'!Bulk_Counterparty,1,0)))

Is there a way to use Index/and or Match to do something similiar so I can use it with a closed workbook? I currently have to have the workbook open in order to do so.
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Can't think of a straightforward way, other than: why not just have another named range for the cell you want to reference??
 
Upvote 0
Is the named range used for anything else?

If not, instead of naming the individual cell in Source.xls as Bulk_Counterparty, could you make that name apply to the cell it already does and the cell immediately below? then you could use:
=IF(INDEX(Source.xls!Bulk_Counterparty,2,1)="","",INDEX(Source.xls!Bulk_Counterparty,2,1))

If you do need Bulk_Counterparty to only apply to a single cell, then maybe Yard's suggestion?

Edit: Maybe Yard's suggestion is simpler than my first suggestion anyway?
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,895
Messages
6,175,257
Members
452,625
Latest member
saadat28

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top