![]() |
#1
|
|||
|
|||
![]()
I have a spreadsheet that is based on benching (weight lifting). The cells currently increase by 5lbs everyday. By day 4 the weight increases by 2.5lb everyday. In Day 5, I never copied the new formula from day 4 to the rest of the days ahead, so day 5 is increasing by 5lb and that's not what I want. It should be increased by 2.5lb everyday.
Is there a formula I could use that would reference the previous day and increase the weight appropriately without copying the formula everytime the weight increase is changed? I wasn't sure if FORMULATEXT was appropriate and tried searching for a solution to this and couldn't come up with something. Any help would be appreciated. Thanks. |
#2
|
||||
|
||||
![]()
in the attached,
Last edited by p45cal; 10-13-2024 at 02:22 PM. |
#3
|
|||
|
|||
![]()
When it comes to weight training, I never know how long I will be using the same weight increase. Using my excel sheet as my example, my thinking was, I would have to manually change the cell reference when the weight increase changes.
C5 - 100 D5 - =SUM(C5+E$2$) E5 - =FORMULATEXT(D5), get cell that references the weight increase (E$2$) F5 - =SUM(E5+F$2$), weights are getting heavier, so I have to increase weight slower G5 - =FORMULATEXT(F5), get cell that references the weight increase (F$2$) H5 - =FORMULATEXT(F5), get cell that references the weight increase (F$2$) I5 - =FORMULATEXT(F5), get cell that references the weight increase (F$2$) J5 - =SUM(I5+F$2$), weights are getting heavier, so I have to increase weight slower Obvious, I would need something a function to turn the text into an expression of some sort. |
#4
|
||||
|
||||
![]() Quote:
2024-10-14_184802.jpg |
#5
|
|||
|
|||
![]()
I needed up using something similar to this:
https://www.extendoffice.com/documen...al-values.html =TEXTJOIN(", ", TRUE, IF(COUNTIF(A2, "*"&$D$2:$D$7&"*"), $D$2:$D$7, "")) The above is just a copy and paste from the site and not what I put in my spreadsheet. I'm putting it here in case I need reference it again. I got the cell address, I just haven't put everything together. But I think I got what I needed. Thanks. |
#6
|
|||
|
|||
![]()
So I've been at this for the last few days.
I've attached the same spreadsheet, but made some adjustments to the formula. I'm trying to make the formula as dynamic as possible. So in cell E5, I was able to create an address array, but it's not searchable. In cell E6, I manually created the address array to see if the concept would work where a text matches one of the address arrays. It works, but I can't get a value from the searchable address when using the INDIRECT function. I think it's because the values spilled to the next cells. Can anyone help with cell E5 and get the dynamic address array to be a valid array. I'm assuming the formula is evaluating it as a text and not as an array. Then in cell E6, can we get 1 result in the same cell and then use an INDIRECT function on it, so it can evaulate text to a value? Thanks. In the end I'm trying to do a =SUM((previous workout weight)+(long formula that evaluates to a value dynamically)) Edit: Updated spreadsheet. I was able to figure out how to extract an address in E5: Code:
=MID(FORMULATEXT(D5),SEARCH(TEXTSPLIT(TEXTJOIN(",",TRUE,ADDRESS(ROW(E2:I2),COLUMN(E2:I2))),","),FORMULATEXT(D5)),4) Last edited by ImAhNoBoDy; 10-22-2024 at 11:40 PM. |
#7
|
|||
|
|||
![]()
So the way I was thinking about things was incorrect. I think I was trying for something like this:
Code:
=SUM(D5+INDIRECT(ARRAYTOTEXT(FILTER(MID(FORMULATEXT(D5),SEARCH(TEXTSPLIT(TEXTJOIN(",",TRUE,ADDRESS(ROW(E2:I2),COLUMN(E2:I2))),","),FORMULATEXT(D5)),4),NOT(ISERROR(MID(FORMULATEXT(D5),SEARCH(TEXTSPLIT(TEXTJOIN(",",TRUE,ADDRESS(ROW(E2:I2),COLUMN(E2:I2))),","),FORMULATEXT(D5)),4))))))) |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
scienceguy | Excel Programming | 2 | 10-25-2021 04:44 AM |
![]() |
paulkaye | Excel | 4 | 02-26-2017 04:18 AM |
![]() |
npn321 | Excel | 10 | 02-22-2017 11:42 PM |
![]() |
raravind82 | Excel | 2 | 10-26-2016 04:16 AM |
![]() |
wmac | Word | 1 | 05-14-2013 08:54 PM |