Formula for Reverse Average

melvinwaaa

New Member
Joined
Mar 16, 2025
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi, I tried the search bar for my question but all posts give more questions.
So basically is there a formula for when I need to have 4 rows of random numbers between 75 and 99 that results in a certain average number?
Thanks a lot!

Example:
Average80
Score 1
Score 2
Score 3
Score 4
 
Hello, not sure how it will perform if it would be applied to generate a larger sample but here is a recursive LAMBDA to be tested (to be inserted within Name Manager and named REVERSE_AVERAGE):

Excel Formula:
=LAMBDA(n,a,l,u, LET( r, RANDARRAY(n,,l,u), s, r/SUM(r)*n*a, t, AND((s>=l)*(s<=u)), IF(t,s,REVERSE_AVERAGE(n,a,l,u))))

where based on your example n = 4, a = 80, l = 75, and u = 99.
 
Upvote 0

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