View Single Post
  #15   Report Post  
Sam via OfficeKB.com
 
Posts: n/a
Default Return Numerical Label for LAST value Subtracted to reach Sum Target Value

Hi Domenic,

Thank you so much for your endeavours.

For robustness...
D1:


=ROWS(Values)-MATCH(TRUE,MMULT(--(ROWS(Values)-(ROW(Values)-MIN(ROW(Value
s))+1)+1<=TRANSPOSE(ROW(Values)-MIN(ROW(Values))+1)),Values)=C1,0)+1
...confirmed with CONTROL+SHIFT+ENTER.


Cheers,
Sam


Domenic wrote:
For robustness...

D1:

=ROWS(Values)-MATCH(TRUE,MMULT(--(ROWS(Values)-(ROW(Values)-MIN(ROW(Value
s))+1)+1<=TRANSPOSE(ROW(Values)-MIN(ROW(Values))+1)),Values)=C1,0)+1

...confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!

Shorter...

[quoted text clipped - 6 lines]

Hope this helps!



--
Message posted via http://www.officekb.com