Named Range for second to last column

mst3k4L

Board Regular
Joined
Nov 3, 2011
Messages
55
000.0000.00000000.000E+000
#DIV/0!
5150178.65556.916893.0832318.61665178.65497.075E-050.25177262.05548854
10300246.725159.0954140.904614.09046246.72511.104E-040.29587446.96819991
15450312.591252.4142197.585813.17239312.5915-1.424E-040.33303543.90795545
20600369.339349.3855250.614512.53073369.33931.982E-050.36200441.76908398
25750420.745448.0819301.918112.07672420.74472.650E-050.38637640.25574265
30900468.078548.3628351.637211.72124468.07812.735E-050.4075339.07079844
351050512.237649.9781400.021911.4292512.23672.574E-050.4263238.09732516
401200553.820752.7506447.249411.18123553.82042.306E-050.44328737.27077935
451350593.260856.5409493.459110.96576593.261.995E-050.458836.55252515
501500630.876961.2374538.762610.77525630.8767-7.176E-040.47312235.91750947
551650666.9171066.7495583.250510.60455666.9175-6.036E-040.48644935.34851267
601800701.5771173.0026626.997410.44996701.5773-4.817E-040.49892934.83318862

<tbody>
</tbody>

I got multiple tables of data of varying widths, but the second to last column is always the desired value. How do I create a named range of the second to last column? I'm sure it involves some cleaver use of "offset(", but I couldn't figure it out. Thanks in advance.
 

Some videos you may like

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Robert Mika

MrExcel MVP
Joined
Jun 29, 2009
Messages
7,256
Excel Workbook
ABCDEFGHIJKLM
100000000.00E+000890
25150178.65556.916893.0832318.61665178.65497.08E-050.25177262.05549
310300246.725159.0954140.904614.09046246.72511.10E-040.29587446.96824.823498
415450312.591252.4142197.585813.17239312.5915-1.42E-040.33303543.90796
520600369.339349.3855250.614512.53073369.33931.98E-050.36200441.76908
625750420.745448.0819301.918112.07672420.74472.65E-050.38637640.25574
730900468.078548.3628351.637211.72124468.07812.74E-050.4075339.0708
8351050512.237649.9781400.021911.4292512.23672.57E-050.4263238.09733
9401200553.82752.7506447.249411.18123553.82042.31E-050.44328737.27078
10451350593.26856.5409493.459110.96576593.262.00E-050.458836.55253
11501500630.876961.2374538.762610.77525630.8767-7.18E-040.47312235.91751
12551650666.9171066.75583.250510.60455666.9175-6.04E-040.48644935.34851
13601800701.5771173.003626.997410.44996701.5773-4.82E-040.49892934.83319
Sheet1


=OFFSET(Sheet1!$A$1,0,COUNTA(Sheet1!$A$1:$P$1)-2,20,1)
 

mst3k4L

Board Regular
Joined
Nov 3, 2011
Messages
55
Thanks! I was able to use that to get something slightly more generic

Code:
=OFFSET(sheet1!$A$23,0,COUNTA(sheet1!$A$23:$IV$23)-2,COUNTA(sheet1!$A$23:$A$65536),1)
 

Watch MrExcel Video

Forum statistics

Threads
1,123,304
Messages
5,600,862
Members
414,409
Latest member
FloordAlex

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