Offset

bfreescott

Board Regular
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.
 

DanteAmor

Well-known Member
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.
 

mohadin

Active Member
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:

Some videos you may like

This Week's Hot Topics

Top