Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jim May
 
Posts: n/a
Default Offset() returns reference, first not value (proof)

FWIW:

In cells B10:D10 I have 111, 222, 333
In Cell D4 I have 3
In cell D6 I have =sum(b10:Offset(b10,0, D4-1))
which displays 666 << which is correct.

But if in the formula bar (on cell D6) if I highlight
(evaluate) the portion Offset(b10,0, D4-1) and
press F9 it equates to 333
Showing =sum(b10:333) << Which of course is not
a valid formula
So "D10" is being returned, versus the Value of D10

Just thought I'd pass along this recent (todays) enlightenment to those in
the group that didn't already know..


  #2   Report Post  
R.VENKATARAMAN
 
Posts: n/a
Default Offset() returns reference, first not value (proof)

is not Offset(b10,0, D4-1) means the second cell to the right of B10 in the
same row

i.e B10 is origin. the next 0 shows same row. d4-1=2 so thes second cell to
the right.which is d10 i.e. 333

or am I confused????

when you said sum(.....) means sum of values from B10 to d10

=================

"Jim May" wrote in message
news:_qp6f.5038$AO5.3967@dukeread01...
FWIW:

In cells B10:D10 I have 111, 222, 333
In Cell D4 I have 3
In cell D6 I have =sum(b10:Offset(b10,0, D4-1))
which displays 666 << which is correct.

But if in the formula bar (on cell D6) if I highlight
(evaluate) the portion Offset(b10,0, D4-1) and
press F9 it equates to 333
Showing =sum(b10:333) << Which of course is not
a valid formula
So "D10" is being returned, versus the Value of D10

Just thought I'd pass along this recent (todays) enlightenment to those in
the group that didn't already know..




  #3   Report Post  
Jim May
 
Posts: n/a
Default Offset() returns reference, first not value (proof)

sorry to confuse
just wanted to point out that
formula displays 666 << which is correct
and underlying formula is:
=sum(B10:D10) << which is correct
not
=sum(B10:333) "the 333 part" which Evaluate() produces << and cell will not
accept entry, of course!

HTH


"R.VENKATARAMAN" wrote in message
...
is not Offset(b10,0, D4-1) means the second cell to the right of B10 in
the
same row

i.e B10 is origin. the next 0 shows same row. d4-1=2 so thes second cell
to
the right.which is d10 i.e. 333

or am I confused????

when you said sum(.....) means sum of values from B10 to d10

=================

"Jim May" wrote in message
news:_qp6f.5038$AO5.3967@dukeread01...
FWIW:

In cells B10:D10 I have 111, 222, 333
In Cell D4 I have 3
In cell D6 I have =sum(b10:Offset(b10,0, D4-1))
which displays 666 << which is correct.

But if in the formula bar (on cell D6) if I highlight
(evaluate) the portion Offset(b10,0, D4-1) and
press F9 it equates to 333
Showing =sum(b10:333) << Which of course is not
a valid formula
So "D10" is being returned, versus the Value of D10

Just thought I'd pass along this recent (todays) enlightenment to those
in
the group that didn't already know..






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Maintaining cell reference after sorting GRITS Excel Discussion (Misc queries) 2 April 30th 23 07:42 PM
Offset Function works in cell, not in named range DragonslayerApps Excel Worksheet Functions 0 July 25th 05 04:39 PM
OFFSET using ADDRESS for the reference argument TRE Excel Worksheet Functions 1 June 17th 05 01:33 PM
Cell Reference Math Ralph Howarth Excel Worksheet Functions 0 January 26th 05 06:27 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 09:46 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"