Excel: Obtain the row of the smaller value -


i have following columns:
- original values, b - absolute values, c - sorted absolute values

(i obtain ordered values (c) using small formula given range - see link bellow)

i need know each ordered absolute value, if original value or not negative: enter image description here

so in picture red columns filled-in manually...
there way automatize via formula ?

here link sandbox in excel online: http://1drv.ms/1vu2mz4
if first link not work, same thing , formulas on google sheets

a partial answer, might enough if column e in screenshot want , column d helper column intended make column e easy compute.

the problem abs() loses information. instead of using that, use function doesn't lose information doesn't change sort order , makes possible recover absolute value after sorting. 1 way leave positive numbers alone send negative numbers absolute value + 0.5. example,

enter image description here

in b2 enter

=if(a2 >= 0,a2, 0.5+abs(a2))  

in c2 enter

=small($b$2:$b$6,-1+row()) 

in d2 enter

=int(c2) 

to recover absolute values. finally, in e2 enter

=if(c2=d2,false,true) 

(copying of formulas down).


Comments

Popular posts from this blog

Hatching array of circles in AutoCAD using c# -

ios - UITEXTFIELD InputView Uipicker not working in swift -

Python Pig Latin Translator -