Computing.Net > Forums > Office Software > Excell Doubt

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Excell Doubt

Reply to Message Icon

Name: Johnson
Date: March 30, 2009 at 04:36:43 Pacific
OS: Windows XP
Subcategory: Microsoft Office
Comment:

how to spread a value to diffrerent cell. if cell A1 is above 5000, i want to allocate first 1000 in B1, next 1000 to 2000 in B2 next 2000 to 5000 in B3 like that.



Sponsored Link
Ads by Google

Response Number 1
Name: DerbyDad03
Date: March 30, 2009 at 08:21:39 Pacific
Reply:

I'm not sure your question makes sense. Do you really want "next 2000 to 5000 in B3"?

What if A1 contains 6034?

B1 would show 1000
B2 would show 1000
B3 would show what?


If what you really want is 1000 in each cell until you run out of 1000's, with the remainder in the last cell, put this in B1 and AutoFill as far down as you want:

=IF($A$1>5000,IF($A$1-((ROW()-1)*1000)>0,IF($A$1-((ROW()-1)*1000)<1000,$A$1-(ROW()-1)*1000,1000),""),"")

In my example above (6034) you'd get:

B1 1000
B2 1000
B3 1000
B4 1000
B5 1000
B6 1000
B7 34
B8 Empty
B9 Empty
etc.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Excell Doubt

Excel combobox code www.computing.net/answers/office/excel-combobox-code/6863.html

extent of autofill in EXCEL www.computing.net/answers/office/extent-of-autofill-in-excel/7562.html

Creating A Main Board in Excel www.computing.net/answers/office/creating-a-main-board-in-excel/8204.html