# formula that include variables to graph

##### Board Regular
Hi all

I'm trying to come up with a suitable formula for the first cell for a 60 month period graph, according to input here:

[/IMG]

Number of contracts =J16*J11/(F21*N11)

Don't take any notice of the box labelled "Compound", this will apply from the 2 month period onwards, think I can work this out myself.

I got to: =SUM(B16*J11/(F21*N11))*(B6*F6*N11*B11*F11)-( need to subtract "MONTHLY WITHDRAWAL" if "MONTH TO START DRAWING" is greater than the row number the formula will live )

Basically want to plot the value after a months worth of trading according to the variables above.

Thanks for any help in advance

Mark

### Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
=SUM(B16*J11/(F21*N11))*(B6*F6*N11*B11*F11)-if(row()>MonthToStartDrawing,Monthly Withdrawal,0)

Row() will return the value of the row in which the formula resides. So, unless you're perfectly matched for rows/months, you'll need to do some minor maths against the value returned by Row() to deliver the desired number..

HTH,

=SUM(B16*J11/(F21*N11))*(B6*F6*N11*B11*F11)-if(row()>MonthToStartDrawing,Monthly Withdrawal,0)

Row() will return the value of the row in which the formula resides. So, unless you're perfectly matched for rows/months, you'll need to do some minor maths against the value returned by Row() to deliver the desired number..

HTH,

Replies
6
Views
875
Replies
2
Views
810
Replies
1
Views
434
Replies
3
Views
3K
Replies
3
Views
408

### Forum statistics

1,221,052
Messages
6,157,634
Members
451,426
Latest member
VinnyDoesntKnowExcelCode

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back