Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default relative vs complet reference

the folowing function
function sumrange(r as range,c)
dim c as variant
for each c in r
if c0 then
sumrange = c/worksheetfunction.sum(r)
sumrange= format(sumrange,"##,##.00")
next c
end function
is an attempt to calulate for each cell in a range ,the
ratio between the cell & the total value of the range.
my question- how can i program the function to create
absolute reference to the range i choose,without using the
f4 button.
thanks



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default relative vs complet reference

I don't see your logic here because the code you have written is not
workable. If you just want to know the proportional value of the whole
it does not matter if the range contains zeros or not. It would be
different if you wanted an average to exclude zero values.

There would seem to be no need to make a custom function because your
need would be covered by copying down the column something like :-

=A1/SUM($A$1:$A$10)



Regards
BrianB
================================================== ==========




"moshe" wrote in message ...
the folowing function
function sumrange(r as range,c)
dim c as variant
for each c in r
if c0 then
sumrange = c/worksheetfunction.sum(r)
sumrange= format(sumrange,"##,##.00")
next c
end function
is an attempt to calulate for each cell in a range ,the
ratio between the cell & the total value of the range.
my question- how can i program the function to create
absolute reference to the range i choose,without using the
f4 button.
thanks

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
Relative Reference help Barnej75 Excel Discussion (Misc queries) 4 July 3rd 07 02:21 AM
Using an offset formula for the reference in a relative reference Cuda Excel Worksheet Functions 6 November 15th 06 05:12 PM
Auto complet is checked jlhlrh Excel Worksheet Functions 1 June 2nd 06 03:37 AM
Relative Reference Hari Excel Discussion (Misc queries) 4 October 26th 05 02:00 AM
Relative reference Lakebum Excel Worksheet Functions 2 December 28th 04 05:57 PM


All times are GMT +1. The time now is 12:57 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"