Forum Discussion
Excel- Split a number
- Sep 03, 2020
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
Sir, I got stuck in my original file.
Can you give a generous solution for the attached file?
Press F9 to generate solutions
accepted solutions will become green
keep pressing F9 until all the column becomes green
hope this solution work, I dunno what to do with fractions (round up or down)
- Qusai_JanadaDec 23, 2022Copper Contributor
Hey Ramiz, can you help me out?
I tried your formula, but it does not work here.
https://docs.google.com/spreadsheets/d/1kYxrx9zcjY2Ap1o4nAw5sYs5d7BAhXVD/edit?usp=sharing&ouid=100527059548267574176&rtpof=true&sd=true
- ashunjoy_1911Sep 04, 2020Copper Contributor
Thank you Assaf
Actually the excel shows me error in the formula as I am using Office 2016
In 2016 "IFS" function is not working. "IFS" function is introduced after 2016.
Error- =_xlfn.IFS($B$1=0,0,$I16<>$A16,RANDBETWEEN(B$3,B$4),TRUE,B16)
Can you provide nested IF, Please
- Ramiz_AssafSep 04, 2020Iron Contributor
- ashunjoy_1911Sep 04, 2020Copper Contributor
I am really grateful that you have taken up this task.
You really become an escape boat for me.
Regards
Dr. Ashish