Offset() problems

Utterly Bamboozled

New Member
Joined
Jul 7, 2010
Messages
39
Hi guys,

Been using offset to create dynamic range names for inclusion in validation.

Having an issue with the following formula:

OFFSET(cell ref,,columns,height) which I've used as a name, but then in the drop down list, it returns both the offset cell reference and the values I'm after.

I.e. for an offset cell ref of 'A' and my desired values in another column being 1,2,3 my list is returning A1, A2, A3 instead of 1,2,3.

Hope this makes sense, would be eternally grateful for some advice!

Cheers
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Hi guys,

Been using offset to create dynamic range names for inclusion in validation.

Having an issue with the following formula:

OFFSET(cell ref,,columns,height) which I've used as a name, but then in the drop down list, it returns both the offset cell reference and the values I'm after.

I.e. for an offset cell ref of 'A' and my desired values in another column being 1,2,3 my list is returning A1, A2, A3 instead of 1,2,3.

Hope this makes sense, would be eternally grateful for some advice!

Cheers

Care to specify the current range you want to make dynamic and the sheet including that range? Does the range house numbers or text or both?
 
Upvote 0
Sure, dynamic range is text as is the contents of the offset() cell ref.

Below is the formula if it helps:

OFFSET(INDIRECT("'Client Database'!"&ADDRESS(MATCH(COC!$E$13,'Client Database'!$B:$B,0),COLUMN('Client Database'!$B$9))),,COLUMNS('Client Database'!$B$9:$E$9),VLOOKUP(COC!$E$13,$H:$I,COLUMNS($H$3:$I$3),0))

Thanks for the help!
 
Upvote 0
Worked it out - it's because I had was was using 1 too many columns in the offset() function. Forgot it doesn't count the column where the formula is unlike vlookup().

Thanks for the help regardless!
 
Upvote 0
Sure, dynamic range is text as is the contents of the offset() cell ref.

Below is the formula if it helps:

OFFSET(INDIRECT("'Client Database'!"&ADDRESS(MATCH(COC!$E$13,'Client Database'!$B:$B,0),COLUMN('Client Database'!$B$9))),,COLUMNS('Client Database'!$B$9:$E$9),VLOOKUP(COC!$E$13,$H:$I,COLUMNS($H$3:$I$3),0))

Thanks for the help!

Care to specify the current range this formula is expected to refer to?
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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