Hello,
I want to divide a number to different cells, in every cell max value must be 100.
For example:
A1 value is :220
B1: 100
B2: 100
B3:20
How can I do that ?
Hello,
I want to divide a number to different cells, in every cell max value must be 100.
For example:
A1 value is :220
B1: 100
B2: 100
B3:20
How can I do that ?
Paste this into cell B1:
and this into cell B2:![]()
Please Login or Register to view this content.
And drag down to fill.![]()
Please Login or Register to view this content.
Will something like that work?
Spread the love, add to the Rep
"None of us are as smart as all of us."
B1: =IF(LEN(A1)=3,100,0) doesnt work, formula has error
Regards
Special-K
Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.
Maybe that should be
in B1
=IF(LEN(A1)=3,100,A1)
Good catch Special. That should work if the value is <100, but the formula will not work if the value is also >=1000. Still haven't found a concise workaround for that.
B1=if(row(a1)<=ceiling(a$1/100,1),min(a$1-(row(a1)-1)*100,100),"")
try this and copy towards down
Samba
Say thanks to those who have helped you by clicking Add Reputation star.
Rather than doing this as a text string, I would probably do this as an algebra type problem.
Technically, there are an infinite number of ways to divide up a number into parts that add up to the whole. The approach you seem to want will count how many 100's there are in the number, then add on the remainder after that many 100's. Algebraically: y=n*100+x. (For exactness, we will say that n is an integer and n and x are both positive.
n can be found from the INT function n=INT(y/100)
x can then be found from the original function x=y-n*100
At this point, is it sufficient to know what n is, or do you need to make n copies of 100 into n cells?
Originally Posted by shg
=IF((ROW(A1)-1)*100<A$1,MIN(100,A$1-(ROW(A1)-1)*100),"")
can try this too
B1: =MIN(100,A1)
B2: =MIN(100,$A$1-SUM(B$1:B1))
From B3 to Bx pull formula B2 down
Willem
English is not my native language sorry for errors
Please correct me if I'm completely wrong
This is what TS ask formax value must be 100.
So I dont see the problem.
OP needs to define range of numbers
B1: =min(10^(len(a1)-1);a1)
b2: =min(10^(len($a$1)-1);$a$1-sum(b$1:b1))
Put in B1 and copy down:
=IF(ROW()<=$A$1/100,100,IF($A$1-(ROW()-1)*100>0,$A$1-(ROW()-1)*100,""))
I tried your advices but formulas has error they didnt work.
let me be more specific, I want to make a capacity plan but I couldnt work it out. I decided to ask to gurus so I am here
what I am tryin to do:
capacityplan.xlsx
*ignore 5000* typo
- how can i auto skip weekends?
- how split main amount to daily max. 900 capacity?
- and is it possible to fill a color automatically like i did manually in file?
I don't see the logic in it.
For me the formula in post #16 does what you wanted. What differences do you experience?
Take a look at this
With conditional format you can get the colors
VsVtV.jpg
Does your Excel use „;” or „,” as argument separator?
As long as the number isn't a negative number...
Data Range
A B 1 Value Increments 2 1132 100 3 100 4 100 5 100 6 100 7 100 8 100 9 100 10 100 11 100 12 100 13 32 14 15 16 17 18 19 20
This formula entered in B2:
=MIN(A2,100)
This formula entered in B3:
=IF(A$2<=SUM(B$2:B2),"",MIN(100,A$2-SUM(B$2:B2)))
Copy down until you get blanks
Biff
Microsoft MVP Excel
Keep It Simple Stupid
Let's Go Pens. We Want The Cup.
Sorry, it was the wrong file
thanks a lot to all of you for your help, especially popipipo![]()
@ zottiri
You can mark you thread solved.
How?
New quick method:
Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.
Or you can use this way:
How to mark a thread Solved
Go to the first post
Click edit
Click Go Advanced
Just below the word Title you will see a dropdown with the word No prefix.
Change to Solved
Click Save
Note:
You can also thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given.
By doing so you can add to the reputation(s) of those who helped and shared their time in helping you.
I think people forget the word "THANK YOU!!!!" Do you still know it???
There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "
Regards,
Vladimir
I did!
Nice. Surely next time member's are very much willing to help.
Just never forget to hit their star's to thank them all.![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks