Offset discontinuous range

mrzywx

New Member
Joined
Dec 1, 2010
Messages
3
Hello, here's the thing. I want to select a range of values but this ranges are not continuous. I tried

=OFFSET(I21;;;;2)&OFFSET(I21;;5;;3)

I would need this to select I21,I22,I26,I27,I28

I'm trying to define a Name Range with this, but as I test it, it won't be highlighted as a range. I don't know if its working. Can somebody help me?

Thanks!!!
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Try...

=N(OFFSET(Sheet1!$I$21,{0;1;5;6;7},0))

Alternatively...

1) Select/highlight I21.

2) Press down on the CONTROL key.

3) While the CONTROL key is pressed down, click on I22, then click on I26, etc.

4) Click in the 'Name Box', located to the left of the formula bar.

5) Enter the desired name and press ENTER.
 
Upvote 0
Thank you Domenic, but still it wont highlight the range I need. I tried tehN(OFFSET... but it just converted the range to numbers. I'm still looking for the solution.

Greetings

Try...

=N(OFFSET(Sheet1!$I$21,{0;1;5;6;7},0))

Alternatively...

1) Select/highlight I21.

2) Press down on the CONTROL key.

3) While the CONTROL key is pressed down, click on I22, then click on I26, etc.

4) Click in the 'Name Box', located to the left of the formula bar.

5) Enter the desired name and press ENTER.
 
Upvote 0
Thanks Domenic but still this is not what I need. You see I need to select two values say (I26:i27) and then (I30:I35). Can this be done on a single formula?

Greetings!
 
Upvote 0
... but it just converted the range to numbers.

If the range contains text values, you'll need to change the 'N' to 'T'...

=T(OFFSET(Sheet1!$I$21,{0;1;5;6;7},0))

Thanks Domenic but still this is not what I need. You see I need to select two values say (I26:i27) and then (I30:I35). Can this be done on a single formula?

Can you describe what it is you're trying to do? Some sample data, along with the expected results would help as well.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,240
Messages
6,170,951
Members
452,368
Latest member
jayp2104

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