Hi there, I've had a problem where I have a row of percentages and I need to find the second occurrence of a percentage that is under 40%. E.g. if I have two rows like this
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]Jan[/TD]
[TD="align: center"]Feb[/TD]
[TD="align: center"]March[/TD]
[TD="align: center"]April[/TD]
[TD="align: center"]May[/TD]
[/TR]
[TR]
[TD="align: center"]56%[/TD]
[TD="align: center"]44%[/TD]
[TD="align: center"]39%[/TD]
[TD="align: center"]25%[/TD]
[TD="align: center"]99%[/TD]
[/TR]
</tbody>[/TABLE]
Then I would like it to return April. I have found lots of ways for finding a second occurrence for rows but not for columns.
Bonus question: I was also wondering if anyone smarter than me could work out a good way to find out if there was an instance of three months in a row where the percentage was 40% above the instance of the percentage you have found previously that is found below 40%.
e.g. with the example above if you find the 2nd instance of a percentage that is below 40% which would be April (23%) then it would search down the row for an instance where there were three percentages in a row that were at least 63% or above.
Thanks so much!
Joe
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]Jan[/TD]
[TD="align: center"]Feb[/TD]
[TD="align: center"]March[/TD]
[TD="align: center"]April[/TD]
[TD="align: center"]May[/TD]
[/TR]
[TR]
[TD="align: center"]56%[/TD]
[TD="align: center"]44%[/TD]
[TD="align: center"]39%[/TD]
[TD="align: center"]25%[/TD]
[TD="align: center"]99%[/TD]
[/TR]
</tbody>[/TABLE]
Then I would like it to return April. I have found lots of ways for finding a second occurrence for rows but not for columns.
Bonus question: I was also wondering if anyone smarter than me could work out a good way to find out if there was an instance of three months in a row where the percentage was 40% above the instance of the percentage you have found previously that is found below 40%.
e.g. with the example above if you find the 2nd instance of a percentage that is below 40% which would be April (23%) then it would search down the row for an instance where there were three percentages in a row that were at least 63% or above.
Thanks so much!
Joe