Dynamic name over multiple separated columns

andydtaylor

Active Member
Joined
Feb 15, 2007
Messages
355
Office Version
  1. 2010
Hi,

I know I can do this as a name:

=Sheet2!$A:$A,Sheet2!$D:$D,Sheet2!$G:$G,Sheet2!$J:$J

But is something like the following possible?

=OFFSET(INDIRECT(Calcs_Product_IDs!$A:$2,Calcs_Product_IDs!$D:$2,Calcs_Product_IDs!$G:$2,Calcs_Product_IDs!$J:$2),0,0,(COUNTA(INDIRECT("Product_IDs!$A:$A"))-1))

Thanka,

Andrew
 

Some videos you may like

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
More like:

=OFFSET(Sheet2!$A$2,0,0,COUNTA(Sheet2!$A:$A)-1,1),OFFSET(Sheet2!$D$2,0,0,COUNTA(Sheet2!$A:$A)-1,1),OFFSET(Sheet2!$G$2,0,0,COUNTA(Sheet2!$A:$A)-1,1),OFFSET(Sheet2!$J$2,0,0,COUNTA(Sheet2!$A:$A)-1,1)
 

Watch MrExcel Video

Forum statistics

Threads
1,128,108
Messages
5,628,756
Members
416,336
Latest member
Eferiveros

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
Top