Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
kjs
 
Posts: n/a
Default SUM returns #VALUE! error

In B6 the formula
=SUM(ADDRESS(B2,COLUMN(B6))&":"&ADDRESS(B3,COLUMN( B6)))
returns a #VALUE! error. The formula
=SUM(INDIRECT(B5))
returns the correct answer, when B5 contains
=ADDRESS(B2,COLUMN(B6))&":"&ADDRESS(B3,COLUMN(B6))
and returns the correct absolute address $B$9:$B$25, a range with some
numbers.
B2&B3 values may vary and the sum fomula is to be filled across row 6.

Am I missing something obvious?

Kevin



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default SUM returns #VALUE! error

Hi

You need to wrap it in an indirect function itself for Sum to return the
answer.

=SUM(INDIRECT((ADDRESS(B2,COLUMN(B6))&":"&ADDRESS( B3,COLUMN(B6)))))

But you would have fewer calls it you did it directly (well indirectly
really<bg) with

=SUM(INDIRECT("B"&B2&":B"&B3)) note the colon before the second B

--
Regards

Roger Govier


"kjs" wrote in message
...
In B6 the formula
=SUM(ADDRESS(B2,COLUMN(B6))&":"&ADDRESS(B3,COLUMN( B6)))
returns a #VALUE! error. The formula
=SUM(INDIRECT(B5))
returns the correct answer, when B5 contains
=ADDRESS(B2,COLUMN(B6))&":"&ADDRESS(B3,COLUMN(B6))
and returns the correct absolute address $B$9:$B$25, a range with some
numbers.
B2&B3 values may vary and the sum fomula is to be filled across row 6.

Am I missing something obvious?

Kevin





  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
kjs
 
Posts: n/a
Default SUM returns #VALUE! error

Hi

You need to wrap it in an indirect function itself for Sum to return the
answer.

=SUM(INDIRECT((ADDRESS(B2,COLUMN(B6))&":"&ADDRESS( B3,COLUMN(B6)))))

But you would have fewer calls it you did it directly (well indirectly
really<bg) with

=SUM(INDIRECT("B"&B2&":B"&B3)) note the colon before the second B

--
Regards

Roger Govier


Thanks for the fix Roger. I'll be using the top one as I need to fill across
columns.

Kevin


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
Interesting Solver problem (Solver encounters an error) MrShorty Excel Discussion (Misc queries) 3 December 22nd 05 10:52 PM
VLOOKUP using a cell calculated with NOW returns Error Chris Berding Excel Worksheet Functions 2 August 21st 05 03:22 AM
error opening excel 2000 files jch Excel Discussion (Misc queries) 0 March 22nd 05 04:25 PM
ERROR Pinto1uk Excel Discussion (Misc queries) 1 February 8th 05 03:15 AM
Excel error - Startup (and Acrobat PDFMaker) gxdata Setting up and Configuration of Excel 0 February 4th 05 03:44 AM


All times are GMT +1. The time now is 02:05 PM.

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

About Us

"It's about Microsoft Excel"