Referencing a string of charcters in a cell as a cell reference.

cguy3000

New Member
Joined
May 30, 2019
Messages
15
Alright, so I have looked everywhere online and cant even find a specific way to do what I need or even if there is a way to do it.

So right now I am trying to create a list of dates that always displays the last 8 entries of dates in a data pool. So when I add a new date with values it will automatically update and shift everything down one to not display the 9th entry in excel and now display the new date entry as entry 1. My issue is I have a formula to display the beginning cell reference of the 8 cells ecept I dont know how to have excel read it as a cell reference instead of couple of equations.

For example I have a formula that spits out the value B345, which is the first cell in these 8 data points I want to display, which is made by the equation =B"&R345. The cell R345 references an equation to give me a number which then I add on the B to give me a cell reference B345. I want to then have excel read the B345 value as a reference to a cell instead of the result of the equation =B"&R345. I want it to reference a cell number for what I am trying to do. Any thoughts on how to do that??
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Have you looked at the INDIRECT function?

Also have you considered the formula =INDEX(B:B,R345,1) to refer to the R345th row of column B?
 
Upvote 0
So when i use that it returns a value of zero for me. Here, I dont think I explained it well enough for you to understand;

I have a list of dates. say
4/5/2019
4/12/2019
4/19/2019
4/26/2019
5/3/2019
5/10/2019
And every week I add on an additional date. I have cell that tells me which cell is the last filled cell;

=COUNTA(A98:A343)

So that equation tells me which cell row contains my last inputed date so this value will change each time I add a new date.

What I am trying to do is create cells that reference say the fourth cell from the last inputed date, the third cell from the last inputed date, the 2nd cell from the last inputed date all seperately. This way I can create a cycle that everytime I add a new date these values will automatically update themselves and go 4,3,or 2 dates back to the new values.

<colgroup><col></colgroup><tbody>
</tbody>
 
Upvote 0
If your dates are in column A and =COUNTA(A98:A343) is the number of dates in the list (presumably everything above A98 is not a date of interest), then

=INDEX(A:A, 97+COUNTA(A98:A343), 1) should return the last date.
 
Upvote 0
That seems like it would work as I am looking at it, but it only returns a value of 43621 with decimal points.

Any other thoughts?
 
Upvote 0

Forum statistics

Threads
1,216,109
Messages
6,128,880
Members
449,477
Latest member
panjongshing

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