ellabella6
New Member
- Joined
- Mar 5, 2024
- Messages
- 1
- Office Version
- 365
- Platform
- Windows
Hello,
I am trying to create a dynamic formula to analyse a dataset that moves down each week and more data is added. For example I have shown in the screenshots what it will look like the first week and then how it will look once you have input 5 weeks of data. The formula that I am struggling to write it what will go in cells J:N. I need the formula to follow the correct date and complete a small function if equal to or great than and then roll the last number up if the date is less than so that there are no blank cells. For example to roll the data up I was using the formula =IF(I2<"05-Sep-2023",J3,"") this works as I want it to in rolling the data up for any dates that are after 5th September, ie 6th,7thsep etc.
What I struggling with is then adding the formula if the date in Column I is equal to or greater than 05-sep-2023 it must do a dynamic small function where I want it to find the 2nd smallest number from 5th sep going back 10 days/cells * 0.36 + find 3rd smallest from 5th Sep going back 10 days/cells*0.64 then *-1 to get a positive number. The basic small formula I was working with is =IFERROR((SMALL(B2:B11,2)*0.36+SMALL(B2:B11,3)*0.64)*-1,"") this ultimately works however is very easy for the formula to go wrong with all the copying and pasting done each week. I just cannot seems to get it to work to complete an offset to find the correct date, go back 10 days and then complete that small formula.
Any help to formulate all of this together where if the date is less than 5th sep it copies the below cell or if the date is equal or great than the inputted date it does an offset small formula, I would greatly appreciate it.
I hope this makes sense
I am trying to create a dynamic formula to analyse a dataset that moves down each week and more data is added. For example I have shown in the screenshots what it will look like the first week and then how it will look once you have input 5 weeks of data. The formula that I am struggling to write it what will go in cells J:N. I need the formula to follow the correct date and complete a small function if equal to or great than and then roll the last number up if the date is less than so that there are no blank cells. For example to roll the data up I was using the formula =IF(I2<"05-Sep-2023",J3,"") this works as I want it to in rolling the data up for any dates that are after 5th September, ie 6th,7thsep etc.
What I struggling with is then adding the formula if the date in Column I is equal to or greater than 05-sep-2023 it must do a dynamic small function where I want it to find the 2nd smallest number from 5th sep going back 10 days/cells * 0.36 + find 3rd smallest from 5th Sep going back 10 days/cells*0.64 then *-1 to get a positive number. The basic small formula I was working with is =IFERROR((SMALL(B2:B11,2)*0.36+SMALL(B2:B11,3)*0.64)*-1,"") this ultimately works however is very easy for the formula to go wrong with all the copying and pasting done each week. I just cannot seems to get it to work to complete an offset to find the correct date, go back 10 days and then complete that small formula.
Any help to formulate all of this together where if the date is less than 5th sep it copies the below cell or if the date is equal or great than the inputted date it does an offset small formula, I would greatly appreciate it.
I hope this makes sense