how to find the appropriate math function for series with random numbers in Excel

Ouz nour

i have a headache with this problem in Excel

i have to create a simulation of orders that come randomly every 5mn, the time to treat every order is 3.9mn

if the orders are uniforme i don't have any problems to create a simulation but every time i have 0 orders in an interval of time my simulation fails.

time to treat an order=3.9mn

random orders every 5mn:

order flow: 2    2   2   2   2   2  2   2   2   2   2   2
time (mn) : 5   10  15  20  25  30  35  40  45  50  55  60
orders done: 1   2   3   5   6   7  8   10  11  12  14  15

to calculate if the order is done for example for the first and second order

 = INT(5/3.9)=1 (in 5mn i have just one order done)
 = INT(10/3.9)=2 (in 10mn i have 2 orders done) 

up here no problem, but once my random orders change i can't find a function to create the series of orders done.

order flow:  1    0   6   2   0   1    3   0   1   2    4   0   1
time (mn) :  5    10  15  20  25  30  35  40  45   50  55  60  65
orders done: 1    1   2   3   4   6    7   8   9   12  13  14  16 

i remark that every time i don't have any order to treat, the serie of uniform one 1 2 3 5... starts from the beginning only adding what was already prepared, but i don't how to translate this in function.

i hope that my problem is clear, thanks

EttoreP

I think to have understood your problem, but for what you said the second sequence you write is wrong. From time 45 min and 50 min there is an increment of 3 orders in 5 minutes, that's impossible since you can process maximum 5/3,9 = 1,282 orders per 5 minutes.
I don't know if there is a formula for calculate what you need but take a look at my table.

table example

And consider this formula for the first column (the function SE() is IF() in my language):

for B3 -> =SE(B4=0;0;SE(B4=1;1;5/3,9))
for B4 -> =B1
for B5 -> =B4-B3
for B7 -> =INT(B3)  --  for C7 -> INT(C3)  --  and so on for D7, F7, ...

for column C, D and the others use this formula in C and expand it to the others columns:

for C3 -> =SE(C1=0;SE(B5=0;B3;SE(B5<(5/3,9);B3+B5;B3+(5/3,9)));SE((C1+B5)<(5/3,9);B3+C1+B5;B3+5/3,9))
for C4 -> =B4+C1
for C5 -> =C4-C3

You have to consider the numbers in every column as the state of the odrers/queue at the end of the 5 min time slot. You can see the total orders recieved, the queue of the orders that are not yet done, the orders done and the orders finished (in fact in 5 min if you recieved 2 orders you have finished one but you have processed more than one...).

This works assuming that the orders arrive at the beginning of the 5 minute time slotss…if the orders arrive at the third minute of the five considered as "time slot" you can't calculate how many orders you can process unless you specify when this orders arrive during the 5 minutes slot.

About the formulas...well it's just evaluating the different cases that can verify:

  • if there are no orders and no queued orders there is no work to do, so the orders processed will be the ones already processed
  • if there are no orders and the queued orders are less than 5/3,9 (the maximum orders that can be processed in 5 min) the total orders processed will be the ones already done plus the queued
  • if there are no orders and the queued ones are more than 5/3,9 the total orders processed will be the ones already done plus 5/3,9 (all the work that can be done)
  • if there are orders and the sum of the orders arrived plus the queued ones in the previous time slot is less than 5/3,9 the total orders processed will be the ones already done plus the sum of the ones arrived and the ones queued
  • if there are orders and the sum of the orders arrived plus the queued ones is grater than 5/3,9 will do the max work (5/3,9) and the total orders will be the ones already done plus 5/3,9

Hope this is the solution of your problem ;)

Ettore

Edit:

Just realized that are not needed all those tests, this is enough for C3 end extended to D3, E3, ...

=SE((C1+B5)<(5/3,9);B3+C1+B5;B3+5/3,9)

;)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to get unique numbers from Math.random in javascript?

From Dev

How to get unique numbers from Math.random in javascript?

From Dev

PHP math with random numbers with random mathematical symbols

From Dev

How does this hash function work? Are these numbers random?

From Dev

How does Math.random() generate random numbers beyond it's "native" range?

From Dev

How to generate random numbers the give fixed results using Math.random

From Dev

How to display a specific range of random numbers in java using Math.random

From Dev

Generate series of numbers in Excel

From Dev

how to create a java function that makes random math problems.

From Dev

Excel: Date format is throwing up random numbers when using a function

From Dev

Hierarchical Excel Math Function

From Dev

Math random numbers between 50 and 80

From Dev

Floating point math in c getting random numbers

From Dev

Switch() does not work with Math.random() numbers

From Dev

Generate a series of random numbers based on input from a column. VBA Excel

From Dev

Why Math.random() type is number and Math.random is function?

From Dev

How to fill an array with random numbers from 0 to 99 using the class Math?

From Dev

How to find the nearest two numbers of a custom function

From Dev

Generate a random math Equation using Random numbers and operators in Javascript

From Dev

LINQ to find series of consecutive numbers

From Dev

Find current step in a series of numbers

From Dev

Fill Excel cells with random numbers

From Dev

Fill Excel cells with random numbers

From Dev

Generate a random range of numbers in excel

From Dev

Java Math.random() How random is it?

From Dev

Math random to find Names in an Array while not duplicating

From Dev

find "li" after Math.random() in jQuery

From Dev

How to Generate Alphanumeric Random numbers using function in SQL Server 2008

From Dev

How to sample from a user-defined function that generates random numbers

Related Related

  1. 1

    How to get unique numbers from Math.random in javascript?

  2. 2

    How to get unique numbers from Math.random in javascript?

  3. 3

    PHP math with random numbers with random mathematical symbols

  4. 4

    How does this hash function work? Are these numbers random?

  5. 5

    How does Math.random() generate random numbers beyond it's "native" range?

  6. 6

    How to generate random numbers the give fixed results using Math.random

  7. 7

    How to display a specific range of random numbers in java using Math.random

  8. 8

    Generate series of numbers in Excel

  9. 9

    how to create a java function that makes random math problems.

  10. 10

    Excel: Date format is throwing up random numbers when using a function

  11. 11

    Hierarchical Excel Math Function

  12. 12

    Math random numbers between 50 and 80

  13. 13

    Floating point math in c getting random numbers

  14. 14

    Switch() does not work with Math.random() numbers

  15. 15

    Generate a series of random numbers based on input from a column. VBA Excel

  16. 16

    Why Math.random() type is number and Math.random is function?

  17. 17

    How to fill an array with random numbers from 0 to 99 using the class Math?

  18. 18

    How to find the nearest two numbers of a custom function

  19. 19

    Generate a random math Equation using Random numbers and operators in Javascript

  20. 20

    LINQ to find series of consecutive numbers

  21. 21

    Find current step in a series of numbers

  22. 22

    Fill Excel cells with random numbers

  23. 23

    Fill Excel cells with random numbers

  24. 24

    Generate a random range of numbers in excel

  25. 25

    Java Math.random() How random is it?

  26. 26

    Math random to find Names in an Array while not duplicating

  27. 27

    find "li" after Math.random() in jQuery

  28. 28

    How to Generate Alphanumeric Random numbers using function in SQL Server 2008

  29. 29

    How to sample from a user-defined function that generates random numbers

HotTag

Archive