Kelvin Stott
Active Member
- Joined
- Oct 26, 2010
- Messages
- 338
I have a range, say B4:B13, in which each cell may contain a value, some text, or may be left blank, for example:
[TABLE="width: 50"]
<tbody>[TR]
[TD]0[/TD]
[/TR]
[TR]
[TD]2[/TD]
[/TR]
[TR]
[TD]""[/TD]
[/TR]
[TR]
[TD]5[/TD]
[/TR]
[TR]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]6[/TD]
[/TR]
[TR]
[TD]9[/TD]
[/TR]
[TR]
[TD]""[/TD]
[/TR]
[TR]
[TD]12[/TD]
[/TR]
[TR]
[TD]No[/TD]
[/TR]
</tbody>[/TABLE]
I need a formula to check if the numerical values in this range are in ascending order, but ignoring any text and blank cells, so the example above should give a TRUE result as it satisfies this criteria, while the range below should give a FALSE result as it doesn't (note the 9 and 6 are switched in reverse order):
[TABLE="width: 50"]
<tbody>[TR]
[TD]0[/TD]
[/TR]
[TR]
[TD]2[/TD]
[/TR]
[TR]
[TD]""[/TD]
[/TR]
[TR]
[TD]5[/TD]
[/TR]
[TR]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]9[/TD]
[/TR]
[TR]
[TD]6[/TD]
[/TR]
[TR]
[TD]""[/TD]
[/TR]
[TR]
[TD]12[/TD]
[/TR]
[TR]
[TD]No[/TD]
[/TR]
</tbody>[/TABLE]
Any ideas, please?
Thanks for any help!
Kelvin
[TABLE="width: 50"]
<tbody>[TR]
[TD]0[/TD]
[/TR]
[TR]
[TD]2[/TD]
[/TR]
[TR]
[TD]""[/TD]
[/TR]
[TR]
[TD]5[/TD]
[/TR]
[TR]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]6[/TD]
[/TR]
[TR]
[TD]9[/TD]
[/TR]
[TR]
[TD]""[/TD]
[/TR]
[TR]
[TD]12[/TD]
[/TR]
[TR]
[TD]No[/TD]
[/TR]
</tbody>[/TABLE]
I need a formula to check if the numerical values in this range are in ascending order, but ignoring any text and blank cells, so the example above should give a TRUE result as it satisfies this criteria, while the range below should give a FALSE result as it doesn't (note the 9 and 6 are switched in reverse order):
[TABLE="width: 50"]
<tbody>[TR]
[TD]0[/TD]
[/TR]
[TR]
[TD]2[/TD]
[/TR]
[TR]
[TD]""[/TD]
[/TR]
[TR]
[TD]5[/TD]
[/TR]
[TR]
[TD]Yes[/TD]
[/TR]
[TR]
[TD]9[/TD]
[/TR]
[TR]
[TD]6[/TD]
[/TR]
[TR]
[TD]""[/TD]
[/TR]
[TR]
[TD]12[/TD]
[/TR]
[TR]
[TD]No[/TD]
[/TR]
</tbody>[/TABLE]
Any ideas, please?
Thanks for any help!
Kelvin
Last edited: