Forum Discussion

ashunjoy_1911's avatar
ashunjoy_1911
Copper Contributor
Sep 03, 2020

Excel- Split a number

Dear Sir, I am facing problem in excel for splitting a number into different random parts Like I want to split 45 into 7 random parts "1st part between 0-12"   " 2nd part between 0-12"   " 3rd ...
  • Ramiz_Assaf's avatar
    Sep 03, 2020

    ashunjoy_1911 

     

    Dear Dr. Sharma

    Please find a file that has a VBA script.

     

    input your number in cell A1 (for example 45)

     

    the function will use randbetween... until the sum will be 45

     

    if you want 55, just change the value in cell A1

     

    best regards

     

Resources