Return Values Offset from Rightmost Cells

paulfitz320

Board Regular
Joined
Jan 6, 2007
Messages
126
Office Version
  1. 365
Platform
  1. Windows
Hi,
I have a formula in COL P that returns the value in the Rightmost cell in the row between COL A:M
Need formulas in COL N that returns the value offset 2 to the left, and COL O that returns the value offset 1 to the left, of the rightmost value.
Thanks

Book2
ABCDEFGHIJKLMNOP
1col1col2col3col4col5col6col7col8col9col10col11wanted1wanted2col11
212.0911.7211.2611.7712.991m 13.95s24.76100.74 %1m 13.95s24.76100.74 %
312.0111.8011.2911.7013.201m 14.41s24.91100.76 %1m 14.41s24.91100.76 %
412.2311.8511.1311.6913.431m 14.50s25.12100.04 %1m 14.50s25.12100.04 %
512.1111.7111.4411.9313.391m 14.54s25.3299.31 %1m 14.54s25.3299.31 %
612.0611.7011.2311.8013.681m 14.62s25.4898.75 %1m 14.62s25.4898.75 %
712.2911.7611.4211.9213.841m 14.93s25.7698.12 %1m 14.93s25.7698.12 %
811.8111.6511.3612.0713.181m 15.15s25.25100.37 %1m 15.15s25.25100.37 %
912.2111.6411.4312.2213.931m 15.38s26.1597.23 %1m 15.38s26.1597.23 %
1012.3511.8711.4812.2114.081m 16.08s26.2997.60 %1m 16.08s26.2997.60 %
1113.0713.7913.1412.4211.7912.0712.7813.022m 09.71s37.87102.06 %2m 09.71s37.87102.06 %
1212.9014.1812.9212.3911.7012.0112.7912.942m 09.73s37.73102.44 %2m 09.73s37.73102.44 %
1313.0213.5513.3712.2311.7212.1312.8713.402m 09.89s38.41100.76 %2m 09.89s38.41100.76 %
1413.3814.2313.0112.3111.7611.8212.7313.002m 10.31s37.55103.41 %2m 10.31s37.55103.41 %
1513.1413.8812.9912.3011.7412.0312.7013.222m 10.40s37.95102.38 %2m 10.40s37.95102.38 %
1613.3814.0112.8212.2511.8011.7912.6213.232m 10.55s37.64103.36 %2m 10.55s37.64103.36 %
1712.9913.7213.2612.3711.9211.9513.3813.342m 10.58s38.66100.63 %2m 10.58s38.66100.63 %
1813.2614.1013.1512.1611.5711.8412.8013.302m 10.74s37.94102.69 %2m 10.74s37.94102.69 %
1913.1313.9713.0412.1711.8512.2712.8813.652m 10.87s38.80100.51 %2m 10.87s38.80100.51 %
2012.9113.6913.4612.2311.8312.1513.3514.162m 11.18s39.6698.55 %2m 11.18s39.6698.55 %
2113.2514.2413.0712.2511.5312.1212.7513.802m 11.26s38.67101.15 %2m 11.26s38.67101.15 %
2213.0114.2312.8212.4211.8512.3314.0516.452m 15.03s42.8493.92 %2m 15.03s42.8493.92 %
2313.1813.9813.0712.3611.9712.8014.9614.532m 15.28s42.3095.30 %2m 15.28s42.3095.30 %
Sheet1
Cell Formulas
RangeFormula
P1:P23P1=LOOKUP(2,1/(A1:M1<>""),A1:M1)
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Are there ever any blank cells within the actual data (i.e. between valid values)?

If not, then clear columns N:P and enter this in N2 and copy down:

Excel Formula:
=CHOOSECOLS(A2:M2,SEQUENCE(,3,COUNTA(A2:M2)-2))
 
Upvote 0
Solution
another possibility:
Book1
ABCDEFGHIJKLMNOP
1col1col2col3col4col5col6col7col8col9col10col11wanted1wanted2col11
212.0911.7211.2611.7712.991m 13.95s24.76100.74%1m 13.95s24.761.0074
312.0111.811.2911.713.21m 14.41s24.91100.76%1m 14.41s24.911.0076
412.2311.8511.1311.6913.431m 14.50s25.12100.04%1m 14.50s25.121.0004
512.1111.7111.4411.9313.391m 14.54s25.3299.31%1m 14.54s25.320.9931
612.0611.711.2311.813.681m 14.62s25.4898.75%1m 14.62s25.480.9875
712.2911.7611.4211.9213.841m 14.93s25.7698.12%1m 14.93s25.760.9812
811.8111.6511.3612.0713.181m 15.15s25.25100.37%1m 15.15s25.251.0037
912.2111.6411.4312.2213.931m 15.38s26.1597.23%1m 15.38s26.150.9723
1012.3511.8711.4812.2114.081m 16.08s26.2997.60%1m 16.08s26.290.976
1113.0713.7913.1412.4211.7912.0712.7813.022m 09.71s37.87102.06%2m 09.71s37.871.0206
1212.914.1812.9212.3911.712.0112.7912.942m 09.73s37.73102.44%2m 09.73s37.731.0244
1313.0213.5513.3712.2311.7212.1312.8713.42m 09.89s38.41100.76%2m 09.89s38.411.0076
1413.3814.2313.0112.3111.7611.8212.73132m 10.31s37.55103.41%2m 10.31s37.551.0341
1513.1413.8812.9912.311.7412.0312.713.222m 10.40s37.95102.38%2m 10.40s37.951.0238
1613.3814.0112.8212.2511.811.7912.6213.232m 10.55s37.64103.36%2m 10.55s37.641.0336
1712.9913.7213.2612.3711.9211.9513.3813.342m 10.58s38.66100.63%2m 10.58s38.661.0063
1813.2614.113.1512.1611.5711.8412.813.32m 10.74s37.94102.69%2m 10.74s37.941.0269
1913.1313.9713.0412.1711.8512.2712.8813.652m 10.87s38.8100.51%2m 10.87s38.81.0051
2012.9113.6913.4612.2311.8312.1513.3514.162m 11.18s39.6698.55%2m 11.18s39.660.9855
2113.2514.2413.0712.2511.5312.1212.7513.82m 11.26s38.67101.15%2m 11.26s38.671.0115
2213.0114.2312.8212.4211.8512.3314.0516.452m 15.03s42.8493.92%2m 15.03s42.840.9392
2313.1813.9813.0712.3611.9712.814.9614.532m 15.28s42.395.30%2m 15.28s42.30.953
Sheet1
Cell Formulas
RangeFormula
P1:P23P1=LOOKUP(2,1/(A1:M1<>""),A1:M1)
N2:N23N2=INDEX($A2:$K2,MAX(($A2:$K2<>"")*(COLUMN($A2:$K2)))-2)
O2:O23O2=INDEX($A2:$K2,MAX(($A2:$K2<>"")*(COLUMN($A2:$K2)))-1)
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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