I am trying to sort rows by the number of falts & rooms:
1-1 (flat1 room 1)
11-1 (flat 11 room1)
11-8
12-5
13-1
2
5-5
When sorting these rows in an ascending order, it always give wrong order even if I add 0 before every single digit
I tried to make a helper column by adding =arrayformula(text(B1:B,"00"))
Also tried to add 0 in front of every number by =arrayformula(0&B5:B)
. But all didn't work
=iferror(ArrayFormula(IFs(REGEXMATCH(B4:B, "-"), SUBSTITUTE(B4:B,"-",""), B4:B<>0,B4:B*10,B4:B=0,0)))
but when I query these data from other sheet , it results in most numbers of zeros!!. see test sheet12
part, the5
part or the12-5
part. Also please share a greater set of data WITH the expected results.