Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Inputs into equations withwout having to repeat the equation every time.

OK I think of myself as an experienced excel user but
cant figure something out which should be very basic.

Say I have a formula where the input is cell A6, the
formula in cell A1 is A6*2 and the output is written in
A8.

I now want to compare the answers as if A6=1 through to
A6=100. So I write out 1 through 100 in cells C1 down to
c100. Then in the corresponding cell next to each number
(D1-D100) I want to know the answer of that number
inserted into the function A6*2, without repeating the
function in every single D cell. (In reality the function
in question is actually a very complicated one that I
cant express in one cell, and need to go through the
complicated function everytime).

Therefore what I am trying to do is write something like,
=set(A6=C1,A8) in the cell d2, and have an answer 2. then
in d3 have an answer of 4 and so on......

to translate =set(a6=c1,a8) set a6 to equal c1, so the
input a6 would be 1 in this case, the output should be
the answer in cell a8. In this case 2.

Thanks for help, and my apologies for the long winded
question.
..


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 837
Default Inputs into equations withwout having to repeat the equation every time.

The lack of details on the real function makes it difficult to be
precise. As a dummy function, consider =A6*2+A3. Then in D1, put
=C1*2+A$3
and copy the formula down. Note the "$" associated with every row
reference other than the hypothesized input. "$" prevents the reference
from floating relative to each pasted location, so that you can enter
the equation only once.

If your function supports array processing, you can eliminate column C
in the process by selecting D1:D100 an array entering (Ctrl-Shift-Enter)
=ROW(C1:C100)*2+A$3

Jerry

Steven wrote:

OK I think of myself as an experienced excel user but
cant figure something out which should be very basic.

Say I have a formula where the input is cell A6, the
formula in cell A1 is A6*2 and the output is written in
A8.

I now want to compare the answers as if A6=1 through to
A6=100. So I write out 1 through 100 in cells C1 down to
c100. Then in the corresponding cell next to each number
(D1-D100) I want to know the answer of that number
inserted into the function A6*2, without repeating the
function in every single D cell. (In reality the function
in question is actually a very complicated one that I
cant express in one cell, and need to go through the
complicated function everytime).

Therefore what I am trying to do is write something like,
=set(A6=C1,A8) in the cell d2, and have an answer 2. then
in d3 have an answer of 4 and so on......

to translate =set(a6=c1,a8) set a6 to equal c1, so the
input a6 would be 1 in this case, the output should be
the answer in cell a8. In this case 2.

Thanks for help, and my apologies for the long winded
question.


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
How to calculate return from uneven cash inputs over time? terry Excel Worksheet Functions 3 July 11th 06 07:32 PM
I NEED TO USE A FORMULA #1-39 TO REPEAT ONCE 5 AT A TIME excel craze Excel Discussion (Misc queries) 2 February 27th 06 06:35 AM
Difficult Time equation bcbjork Excel Worksheet Functions 2 August 26th 05 12:26 PM
I have a long equation which I need to repeat 16 times! CC-Khriz Excel Worksheet Functions 1 June 28th 05 05:01 PM
how to have a module to repeat itself at a certain time interval? Radionise Excel Programming 2 April 14th 04 08:10 AM


All times are GMT +1. The time now is 03:22 PM.

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"