I need a formula to label entries by where they sit in some groups. I am working between the raw data and a pivot table which summarises the raw data. The pivot is summed by Supplier and sorted in descending order. against each entry in the pivot table, i wish to create a formula that will identify the band in which a particular supplier sits. Using a nested If statement, I have managed to get the first two spend bands in. The last is not so cooperative.
So, the bands are spend between $100k and $200k, spend greater than $200K up to the next group which is our Top 100 suppliers. The result of the formula will be a label against each of the pivot table entries of either Top100, 200, or 100. We are not looking below the $100k mark in this exercise.
the formula at present is:
IF(C10<$H$1,"",IF(AND(C10>$H$1,C10<$H$2),"100",IF(AND(C10>$H$2,C10<$H$3),"200",IF(C10>$H$3,"Top100",""))))
where:
Column c is the Total spend per supplier
H1 =100000
H2 = 200000
H3 = the cutoff $$value for our top100 (I used a hard coded number to see if my formula would work).
if C10 (first company's expenditure) is less than $100k, not interested
if C10 is between $100k and $200k, label is "100"
if C10 is between $200k and the lowest Top100 value, label is "200"
lastly, if C10 is greater than the Top100 cutoff, label is "Top100"
i can't seem to get Rank to work in the pivot itself. I get "1" returned against each row.
very confused at this point and would appreciate some help.
So, the bands are spend between $100k and $200k, spend greater than $200K up to the next group which is our Top 100 suppliers. The result of the formula will be a label against each of the pivot table entries of either Top100, 200, or 100. We are not looking below the $100k mark in this exercise.
the formula at present is:
IF(C10<$H$1,"",IF(AND(C10>$H$1,C10<$H$2),"100",IF(AND(C10>$H$2,C10<$H$3),"200",IF(C10>$H$3,"Top100",""))))
where:
Column c is the Total spend per supplier
H1 =100000
H2 = 200000
H3 = the cutoff $$value for our top100 (I used a hard coded number to see if my formula would work).
if C10 (first company's expenditure) is less than $100k, not interested
if C10 is between $100k and $200k, label is "100"
if C10 is between $200k and the lowest Top100 value, label is "200"
lastly, if C10 is greater than the Top100 cutoff, label is "Top100"
i can't seem to get Rank to work in the pivot itself. I get "1" returned against each row.
very confused at this point and would appreciate some help.