ChetManley
New Member
- Joined
- Dec 9, 2019
- Messages
- 33
- Office Version
- 2010
- Platform
- Windows
Hello everyone,
I was wondering if it would be possible to select a random number from an existing list based on criteria and having the return "random number" be within a range defined by the median (15% above and below the median).
End result would be having a final table where 5 random Amounts are selected for each Customer - unlike the above example, the data I have customers with hundreds/thousands of Amounts recorded, i.e. one customer can have 000's of these.
Meaning one of the criteria would have to be Customer No.
Use Customer No. as reference (1st Criteria) to select 5 random amounts (for that specific Customer No.), where these 5 random amounts are 15%<= MEDIAN =>15% amount for that specific Customer No.
I think I have the logic in a solid place - just can't seem to translate it into Excel formula.
Anyone able to help?
Much appreciated,
Chet
I was wondering if it would be possible to select a random number from an existing list based on criteria and having the return "random number" be within a range defined by the median (15% above and below the median).
Customer No. | Amount |
123 | $50 |
123 | $300 |
234 | $70 |
456 | $22 |
End result would be having a final table where 5 random Amounts are selected for each Customer - unlike the above example, the data I have customers with hundreds/thousands of Amounts recorded, i.e. one customer can have 000's of these.
Meaning one of the criteria would have to be Customer No.
Customer No. | Random Amount |
123 | ### |
234 | ## |
456 | ### |
Use Customer No. as reference (1st Criteria) to select 5 random amounts (for that specific Customer No.), where these 5 random amounts are 15%<= MEDIAN =>15% amount for that specific Customer No.
I think I have the logic in a solid place - just can't seem to translate it into Excel formula.
Anyone able to help?
Much appreciated,
Chet