# Using workseet cell as a formula

#### hnetel

##### New Member
I have a spreadsheet with many rows and columns. In one cell (let's call this cell A1) I calculate a percentage, that is based on the content of most cells in the spreadsheet and one more cell (let's call this cell B1). In order to get the percentage (value of cell A1) for different values in cell B1 I could change the number in B1, record the value in A1, change B1, record A1, change B1, etc. etc.

What I would like to do instead is to generate a column with different values of cell B1, let's call these cells C1:C100 and have these feed into B1 and then in D1:D100 it would show the results of what would be in A1 ....... follow?

Is there anyway to do this without writing VBA and just plain Excel equations?
Any help would be appreciated.

#### RalphA

##### Well-known Member
Perhaps this is what you want:

In A1 you have "the average of most cells"
In F1, you have the number of "most cells"
In D1, enter =IF(C1="","",(A\$1*F\$1+C1)/(F\$1+1)), and copy down.
In C1, enter the "B1" values you talked about.
You should see the answers in column D.