How to count the optimal number?

areq09

New Member
Joined
Aug 23, 2020
Messages
3
Hi,

I have this file: Excel. There are brand ratings and the average rating for each brand. I want to count how many “5” ratings are needed for each brand so that the average of each of them is at least 4.

Do you have an idea how to do it (the solution can be for both Excel and Google Sheets)?
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Thank you. Although I get errors in both answers that you provided. Is it possible to solve it with Excel though? Do you think that Solver can address this kind of calculation?
 
Upvote 0
Although I get errors in both answers that you provided.
Can you provide a small set of sample data (preferably with XL2BB) where those formulas produced errors?
They seem to produce the correct results for your sample data. Or have we all misunderstood the requirement?

Excel.xlsx
ABCDEFG
1BrandRatingBrandAverage Brand RatingToadstoolmikerickson
2A1A2.61111
3B1B3.088
4C1C3.455
5A2
6B2
7C2
8A3
9B3
10C3
11A4
12B4
13C4
14A5
15B5
16C5
17A1
18B2
19C3
20A2
21B3
22C4
23A3
24B4
25C5
26
Arkusz1
Cell Formulas
RangeFormula
E2:E4E2=AVERAGEIFS($B:$B,$A:$A,$D2)
F2:F4F2=COUNTIF(A:A,D2)*(4-E2)
G2:G4G2=4*COUNTIF(A:A,D2)-SUMIF(A:A,D2,B:B)
 
Upvote 0
Thank you. Although I get errors in both answers that you provided. Is it possible to solve it with Excel though? Do you think that Solver can address this kind of calculation?
The question of now many rating of 5 will it take to increase and average to a given number isn't really an Excel question, its algebra.
 
Upvote 0

Forum statistics

Threads
1,214,423
Messages
6,119,398
Members
448,892
Latest member
amjad24

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