Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default Inserting and retaining an input variable

I am setting up a spreadsheet to calculate interest on a loan amount. The
interest rate, while somewhat stable, does change (more often than not
nowadays!). At present, the current interets rate is entered into a protected
cell at the top of the page. Then, the sheet will recognize if a transaction
process (listed in column A) is an "Interest Calculation" (rather than a
debit or a credit). If so, then, the current interest rate (obtained from the
input cell) is placed in column J and once a date has been entered (column
B), the interest on the daily balance will be calculated.

PROBLEM is, when I change the interest rate, then all the previous IRs
change to the new value. This is because, I have basically used a formula
(copied in all cells of column J) that, once it recognizes that "Interest
Calculation" is the process (in Column A), it simply retrieves the current
interest rate from the input cell i.e., =IF(A22="Interest Calculation",J$13,"
").

I need a way to "fix" the IR once it has been "loaded" into the calculation
rows of the spreadsheet.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Inserting and retaining an input variable

One way, of many, would be to have a helper column with the interest rate
for the formulas and whenever the you change a cell in the helper column the
rows below take on that interest rate.
=b22
=b23

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"ARGT" wrote in message
...
I am setting up a spreadsheet to calculate interest on a loan amount. The
interest rate, while somewhat stable, does change (more often than not
nowadays!). At present, the current interets rate is entered into a
protected
cell at the top of the page. Then, the sheet will recognize if a
transaction
process (listed in column A) is an "Interest Calculation" (rather than a
debit or a credit). If so, then, the current interest rate (obtained from
the
input cell) is placed in column J and once a date has been entered (column
B), the interest on the daily balance will be calculated.

PROBLEM is, when I change the interest rate, then all the previous IRs
change to the new value. This is because, I have basically used a formula
(copied in all cells of column J) that, once it recognizes that "Interest
Calculation" is the process (in Column A), it simply retrieves the current
interest rate from the input cell i.e., =IF(A22="Interest
Calculation",J$13,"
").

I need a way to "fix" the IR once it has been "loaded" into the
calculation
rows of the spreadsheet.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default Inserting and retaining an input variable

Hi Don
Thanks for the reply but I do not know how to implement your suggestion with
my scenario. I would like to attach an example copy of the spreadsheet to
more clearly demonstrate what I want to do but that does not seem possible in
this group.

I'll try to describe it better.

In cell B2 I have typed in the current interest rate.
Row 3 is simply headings for the columns A - G.
Each cell in column A (row 4 onwards) contains a drop down list that gives
the user the option (among others) of choosing "Interest Calculation". Once
that is done, for example in A4, the user adds the date to B4. Recognition of
the text "Interest Calculation" in A4 by the other cells across the row
triggers the interest calculation. The interest rate to be used is
automatically selected from cell B1 and is placed in G4. This is then used in
E4 to calculate the daily compounded interest which is added to the balance
in F3 to produce the new balance in F4. There is also scope for making
payments in column D. Column C is, I guess, a helper column (?) to calculate
the number of days for which the interest is to be charged.
Now, all this works well until I need to change the IR. All the IRs that
have been previously transferred into column G now change to match the new IR
typed in B1. Not surprising!

So, I need to make sure that the IRs that are transferred to cells in column
G remain as they were intended and not change when I use a new IR in B1.

You indicated "many ways" of achieving this??

many thanks

ARGT


"Don Guillett" wrote:

One way, of many, would be to have a helper column with the interest rate
for the formulas and whenever the you change a cell in the helper column the
rows below take on that interest rate.
=b22
=b23

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"ARGT" wrote in message
...
I am setting up a spreadsheet to calculate interest on a loan amount. The
interest rate, while somewhat stable, does change (more often than not
nowadays!). At present, the current interets rate is entered into a
protected
cell at the top of the page. Then, the sheet will recognize if a
transaction
process (listed in column A) is an "Interest Calculation" (rather than a
debit or a credit). If so, then, the current interest rate (obtained from
the
input cell) is placed in column J and once a date has been entered (column
B), the interest on the daily balance will be calculated.

PROBLEM is, when I change the interest rate, then all the previous IRs
change to the new value. This is because, I have basically used a formula
(copied in all cells of column J) that, once it recognizes that "Interest
Calculation" is the process (in Column A), it simply retrieves the current
interest rate from the input cell i.e., =IF(A22="Interest
Calculation",J$13,"
").

I need a way to "fix" the IR once it has been "loaded" into the
calculation
rows of the spreadsheet.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Inserting and retaining an input variable

If desired, send your workbook to my address below. Be sure to copy/paste
snippets of these emails along with a clear explanation with before/after
examples of your desires.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"ARGT" wrote in message
...
Hi Don
Thanks for the reply but I do not know how to implement your suggestion
with
my scenario. I would like to attach an example copy of the spreadsheet to
more clearly demonstrate what I want to do but that does not seem possible
in
this group.

I'll try to describe it better.

In cell B2 I have typed in the current interest rate.
Row 3 is simply headings for the columns A - G.
Each cell in column A (row 4 onwards) contains a drop down list that gives
the user the option (among others) of choosing "Interest Calculation".
Once
that is done, for example in A4, the user adds the date to B4. Recognition
of
the text "Interest Calculation" in A4 by the other cells across the row
triggers the interest calculation. The interest rate to be used is
automatically selected from cell B1 and is placed in G4. This is then used
in
E4 to calculate the daily compounded interest which is added to the
balance
in F3 to produce the new balance in F4. There is also scope for making
payments in column D. Column C is, I guess, a helper column (?) to
calculate
the number of days for which the interest is to be charged.
Now, all this works well until I need to change the IR. All the IRs that
have been previously transferred into column G now change to match the new
IR
typed in B1. Not surprising!

So, I need to make sure that the IRs that are transferred to cells in
column
G remain as they were intended and not change when I use a new IR in B1.

You indicated "many ways" of achieving this??

many thanks

ARGT


"Don Guillett" wrote:

One way, of many, would be to have a helper column with the interest rate
for the formulas and whenever the you change a cell in the helper column
the
rows below take on that interest rate.
=b22
=b23

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"ARGT" wrote in message
...
I am setting up a spreadsheet to calculate interest on a loan amount.
The
interest rate, while somewhat stable, does change (more often than not
nowadays!). At present, the current interets rate is entered into a
protected
cell at the top of the page. Then, the sheet will recognize if a
transaction
process (listed in column A) is an "Interest Calculation" (rather than
a
debit or a credit). If so, then, the current interest rate (obtained
from
the
input cell) is placed in column J and once a date has been entered
(column
B), the interest on the daily balance will be calculated.

PROBLEM is, when I change the interest rate, then all the previous IRs
change to the new value. This is because, I have basically used a
formula
(copied in all cells of column J) that, once it recognizes that
"Interest
Calculation" is the process (in Column A), it simply retrieves the
current
interest rate from the input cell i.e., =IF(A22="Interest
Calculation",J$13,"
").

I need a way to "fix" the IR once it has been "loaded" into the
calculation
rows of the spreadsheet.




  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15
Default Inserting and retaining an input variable

Thanks Don for all your expert assistance. The macros to detect change and
input formulae did exactly what I was aiming for.



"Don Guillett" wrote:

If desired, send your workbook to my address below. Be sure to copy/paste
snippets of these emails along with a clear explanation with before/after
examples of your desires.

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"ARGT" wrote in message
...
Hi Don
Thanks for the reply but I do not know how to implement your suggestion
with
my scenario. I would like to attach an example copy of the spreadsheet to
more clearly demonstrate what I want to do but that does not seem possible
in
this group.

I'll try to describe it better.

In cell B2 I have typed in the current interest rate.
Row 3 is simply headings for the columns A - G.
Each cell in column A (row 4 onwards) contains a drop down list that gives
the user the option (among others) of choosing "Interest Calculation".
Once
that is done, for example in A4, the user adds the date to B4. Recognition
of
the text "Interest Calculation" in A4 by the other cells across the row
triggers the interest calculation. The interest rate to be used is
automatically selected from cell B1 and is placed in G4. This is then used
in
E4 to calculate the daily compounded interest which is added to the
balance
in F3 to produce the new balance in F4. There is also scope for making
payments in column D. Column C is, I guess, a helper column (?) to
calculate
the number of days for which the interest is to be charged.
Now, all this works well until I need to change the IR. All the IRs that
have been previously transferred into column G now change to match the new
IR
typed in B1. Not surprising!

So, I need to make sure that the IRs that are transferred to cells in
column
G remain as they were intended and not change when I use a new IR in B1.

You indicated "many ways" of achieving this??

many thanks

ARGT


"Don Guillett" wrote:

One way, of many, would be to have a helper column with the interest rate
for the formulas and whenever the you change a cell in the helper column
the
rows below take on that interest rate.
=b22
=b23

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"ARGT" wrote in message
...
I am setting up a spreadsheet to calculate interest on a loan amount.
The
interest rate, while somewhat stable, does change (more often than not
nowadays!). At present, the current interets rate is entered into a
protected
cell at the top of the page. Then, the sheet will recognize if a
transaction
process (listed in column A) is an "Interest Calculation" (rather than
a
debit or a credit). If so, then, the current interest rate (obtained
from
the
input cell) is placed in column J and once a date has been entered
(column
B), the interest on the daily balance will be calculated.

PROBLEM is, when I change the interest rate, then all the previous IRs
change to the new value. This is because, I have basically used a
formula
(copied in all cells of column J) that, once it recognizes that
"Interest
Calculation" is the process (in Column A), it simply retrieves the
current
interest rate from the input cell i.e., =IF(A22="Interest
Calculation",J$13,"
").

I need a way to "fix" the IR once it has been "loaded" into the
calculation
rows of the spreadsheet.




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
Input Boxes 4 Inserting A Range In A Formula FARAZ QURESHI Excel Discussion (Misc queries) 5 March 2nd 08 06:30 PM
How do I use a worksheet name as an input variable to a formula? tonymotion Excel Discussion (Misc queries) 6 September 5th 07 04:37 AM
How to copy a row with transposing to a column retaining links to input cells? Dmitry Excel Worksheet Functions 2 July 19th 06 10:09 AM
With QUERY how to input a variable Guillaume Excel Discussion (Misc queries) 1 December 8th 05 02:28 PM
Formulas containing variable input ym4life Excel Discussion (Misc queries) 5 August 16th 05 01:07 PM


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