Rank.EQ formula with IF conditions

pherman

New Member
Joined
Jan 11, 2018
Messages
7
Office Version
  1. 365
Platform
  1. Windows
Hello! I've been pretty stumped on this formula, and hoping you might be able to give some guidance or knowledge on this one! I'd like to write a formula that compares a dealership's comparison to the total dealer average when it comes to their response rate and total sales response in percentiles (red<85%, yellow 85% - 105%, and green over 105%).

How do I know if the formula I wrote is pulling in that specific dealer's ranking? This data set has 4,000+ rows of dealer data, so the data may not always be static in that the dealer order may vary month to month.

=RANK.EQ($D3,$D:$D,1)/COUNT('12 Mo View '!$D:$D)

Column AColumn BColumn CColumn DColumn E
RegionDealerBACResponse
Rate
Total Sales Per
Response
10Hometown Motors
123456​
39.54%​
$363.89​
10Test Dealer A
311245​
9.07%​
$397.49​
10Test Dealer B
321689​
15.49%​
$203.98​

Also, if I wanted to compare the dealer's ranking compared to dealers in region "10" only, how do I edit the ranking formula to include this specific criteria?
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Welcome to the Forum!

Sorry, I am not clear what you're trying to do, or why you are using RANK.EQ(). I suspect this is why you've had no responses.

Based on your description, I am guessing you want:

ABCDEF
1RegionDealerResponse RateOverallRegion
21A39%124%128%
31B20%64%66%
41C31%99%102%
52D30%96%87%
62E33%105%96%
71F32%102%105%
82G40%128%117%
93H24%77%84%
103H33%105%116%
11
12Averages
13130.50%
14234.33%
15328.50%
16ALL31.33%
Sheet2
Cell Formulas
RangeFormula
E2:E10E2=D2/AVERAGE(D$2:D$10)
F2:F10F2=D2/AVERAGE(IF(A$2:A$10=A2,D$2:D$10))
D13:D15D13=AVERAGE(IF(A$2:A$10=C13,D$2:D$10))
D16D16=AVERAGE(D2:D10)

e.g. in row 2, the dealer response rate of 39% is 124% of the overall average 31.33%, or 128% of the region 1 average 30.50%.

You could use these formulae to conditionally format red/yellow/green.
 
Upvote 0
Thank you so much for your reply. This is exactly what I was looking for! When I type in the regional formula using the AVERAGEIF equation, for some reason, I'm still receiving the same answers for the overall percentages. I typed the formula exactly as you wrote it above, ensuring that I didn't lock the formula in places where I shouldn't have. Any thoughts on why these formulas aren't producing different results? Thanks so much again for your assistance with this!
 
Upvote 0
I wasn't sure you'd have the AVERAGEIF function. It's a good idea to edit your profile to show your Office Version and Platform (e.g. I am showing 365/Windows) so that we can customise the best solutions.

Here's the same layout using AVERAGEIF:

ABCDEF
1RegionDealerResponse RateOverallRegion
21A39%124%128%
31B20%64%66%
41C31%99%102%
52D30%96%87%
62E33%105%96%
71F32%102%105%
82G40%128%117%
93H24%77%84%
103H33%105%116%
11
12Averages
13130.50%
14234.33%
15328.50%
16ALL31.33%
Sheet2
Cell Formulas
RangeFormula
E2:E10E2=D2/AVERAGE(D$2:D$10)
F2:F10F2=D2/AVERAGEIF(A$2:A$10,A2,D$2:D$10)
D13:D15D13=AVERAGEIF(A$2:A$10,C13,D$2:D$10)
D16D16=AVERAGE(D2:D10)

If you hover over the square to the top left of A1, you have the option to copy this into a workbook, i.e. no need to retype.

If you have another layout where you can't get the formula to work, perhaps you can post? Ideally you'll use the XL2BB add-in which you can download here: XL2BB - Excel Range to BBCode
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,812
Members
449,048
Latest member
greyangel23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top