bfreescott

Board Regular
Joined
Aug 6, 2015
Messages
115
anyone have an experience with offset returning a wrong data type error when increasing the height above 1?

=OFFSET(A1,0,0,1,1) works just fine.
=OFFSET(A1,0,0,2,1) produces wrong data type.

Starting with a different reference doesn't seem to make a difference.
 

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.
anyone have an experience with offset returning a wrong data type error when increasing the height above 1?
=OFFSET(A1,0,0,1,1) works just fine.


This instruction returns 2 values, cells A1 and A2. You can only put one value in the cell, so the error.
=OFFSET(A1,0,0,2,1)
produces wrong data type.

Starting with a different reference doesn't seem to make a difference.

An example to use height:

<table border="1" cellspacing="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:76.04px;" /><col style="width:76.04px;" /><col style="width:76.04px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >B</td><td >C</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td style="text-align:right; ">5</td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td style="text-align:right; ">8</td><td > </td><td style="text-align:right; ">13</td></tr></table><br /><table style="font-family:Arial; font-size:10pt; border-style: groove ;border-color:#00ff00;background-color:#fffcf9; color:#000000; "><tr><td ><b></b></td></tr><tr><td ><table border = "1" cellspacing="0" cellpadding="2" style="font-family:Arial; font-size:9pt;"><tr style="background-color:#cacaca; font-size:10pt;"><td >Cell</td><td >Formula</td></tr><tr><td >C2</td><td >=SUM(OFFSET(A1,0,0,2,1))</td></tr></table></td></tr></table>

With the height you get 2 cells A1 and A2.
 
Upvote 0
HI
let say F5=OFFSET(A1,0,0,1,1) this means offset to one cell only witch is ok (F5=B2)
But F5=
OFFSET(A1,0,0,2,1) try to allocate more than one cell(or rather range of cells) value to one cell "can't be"
See what
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,497
Messages
6,113,998
Members
448,539
Latest member
alex78

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