Hi folks,
I have data with a number of dates and percentages and I'm trying to find the date where the sum of the various percentages passes a certain threshold.
For a very simplified example, suppose my data looks like this:
My threshold is an input, but let's say it's set to 100%. I'm looking to return the month label where the sum of percentages first exceeds 100%. In this case, that'd be month 5 since the total at this point would be 125%.
In the past I've used something like the following to return the first individual value that exceeded 100%: =INDEX(A1:Z1,MATCH(TRUE,INDEX(A2:Z2>100%,0),))
However, this time around I need to return the month label where the running total of percentages in row 2 exceeds 100% and I'm having a bit of difficulty incorporating the SUM element.
I have many lines of data so it's not particularly practical to build a separate sum sheet. I'm really looking for it all to be in a single formula.
Thanks,
Dan
I have data with a number of dates and percentages and I'm trying to find the date where the sum of the various percentages passes a certain threshold.
For a very simplified example, suppose my data looks like this:
- Row 1 (from A1:Z1) are month labels from 1 to 26.
- Row 2 (from A2 to Z2) are percentages. For simplicity, suppose every value is 25%.
My threshold is an input, but let's say it's set to 100%. I'm looking to return the month label where the sum of percentages first exceeds 100%. In this case, that'd be month 5 since the total at this point would be 125%.
In the past I've used something like the following to return the first individual value that exceeded 100%: =INDEX(A1:Z1,MATCH(TRUE,INDEX(A2:Z2>100%,0),))
However, this time around I need to return the month label where the running total of percentages in row 2 exceeds 100% and I'm having a bit of difficulty incorporating the SUM element.
I have many lines of data so it's not particularly practical to build a separate sum sheet. I'm really looking for it all to be in a single formula.
Thanks,
Dan
Last edited: