I want to calculate weighted median so i need to find number of rows that meets cumulative percentage criteria (<=50.0%). I have two columns, with sorted values and corresponding weights. My calculation of weighted median of values will be in the same row values where first cell of weights reach cumulative percentage criteria (<=50.0%). I can do this manually in another column, but I would like to make it automatic in one cell because it is a part of large datebase, with lot of filters and different arrays.
Thanks in advance
Thanks in advance