Reference a cell location inside a formula

pmw_jr

New Member
Joined
Mar 16, 2020
Messages
2
Office Version
  1. 2019
Platform
  1. Windows
I have a large table of daily stock price returns that looks something like this:


DateReturn
1/2/2020.05
1/3/2020.02
1/4/2020.04
......
3/13/2020-.09

I'd like to calculate the daily return but instead of directly referencing the cell row/columns, I'd like to type elsewhere in my spreadsheet the cells I'd like to use for my calculation, then reference those in my formula. For example, the return calculation on 1/4/2020 would normally be =(.04/.02)-1. What I want to do is type in "B3" and "B4" in - for example - cells C1 and C2. I'd like my daily return calculation to read =(C2/C1)-1. By doing this, I can easily choose two dates using cells C1 and C2 instead of scrolling up and down the table.

Thx in advance for your help.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
You want the INDIRECT function
Book1
ABC
1DateReturnB3
21/2/20200.05B4
31/3/20200.02-0.5
41/4/20200.04
5......
63/13/2020-0.09
Sheet1
Cell Formulas
RangeFormula
C3C3=(INDIRECT(C1)/INDIRECT(C2))-1
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,746
Members
448,989
Latest member
mariah3

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top