Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 40
Default Modify calculated result?

Excel 2002, Windows 2000 SP4

I have a simple formula that takes a number in column A divided by a
constant cell in Column B to return a number in Column C and round to one
decimal point (ROUND(A3/$B$2,1)).

Then, I sum the results (Column 3) to come up with a number (=SUM(C3:C6)).
So far so good.

Problem: I need the Sum of Column 3 to ALWAYS equal 40. This may entail
changing one or more entries in Column C (or maybe an interim column if
necessary) by a tenth-place decimal +/- to come up with 40.

Any suggestions for how to do this? I'd prefer a formula, but will do VBA
if necessary. Thank you for your help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 691
Default Modify calculated result?

Hi Allison,

1 2.666666667 =A2 * 40 / SUM(A$2:A$5)
2 5.333333333 =A3 * 40 / SUM(A$2:A$5)
4 10.66666667 =A4 * 40 / SUM(A$2:A$5)
8 21.33333333 =A5 * 40 / SUM(A$2:A$5)
----- -----
15 40 =SUM(B2:B5)

---
HTH,
David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Allison" wrote in message ...
Excel 2002, Windows 2000 SP4

I have a simple formula that takes a number in column A divided by a
constant cell in Column B to return a number in Column C and round to one
decimal point (ROUND(A3/$B$2,1)).

Then, I sum the results (Column 3) to come up with a number (=SUM(C3:C6)).
So far so good.

Problem: I need the Sum of Column 3 to ALWAYS equal 40. This may entail
changing one or more entries in Column C (or maybe an interim column if
necessary) by a tenth-place decimal +/- to come up with 40.

Any suggestions for how to do this? I'd prefer a formula, but will do VBA
if necessary. Thank you for your help.



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
turning text into a calculated result: Wayne C Excel Discussion (Misc queries) 3 April 14th 10 05:08 PM
Modify a calculated field formula depending upon selection of pagefield Tewari Excel Discussion (Misc queries) 0 April 10th 07 01:35 PM
PivotTable:Using a calculated field result in another calculated f Alice Excel Worksheet Functions 0 June 8th 06 05:21 PM
Shifting Calculated Result - Re-Issued sony654 Excel Worksheet Functions 6 January 15th 06 10:08 AM
Shifting Calculated Result sony654 Excel Worksheet Functions 0 January 1st 06 02:36 AM


All times are GMT +1. The time now is 06:34 AM.

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"