I need help with a formula

jgrant78

New Member
Joined
Mar 18, 2011
Messages
10
This is what I am tring to do. I want to take a number..say 1000 and subtract 200 from it and if the answer is >200 put 200 in that cell, But i want the remainder of 800 to move into the cell infront of that one and repeat the process until 0 is reached. I know if,and statements are only good for the cell they are in so I will need a macro to do this?

please help
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Doesn't need a macro.

Assuming 1000 entered in A1

In B1 =IF(A1>200,200,A1)

In C1 =A1-B1

Select B1 & C1 then use autofill to copy both formula 10 columns to the right
 
Upvote 0
Could it be this? Formulas in A2 and B2 copied down.

Excel Workbook
AB
1950
2750200
3550200
4350200
5200150
600
700
jgrant78
 
Upvote 0
Im sorry but I didn't give enough information about what I am tring to do. I have a 52 week calender and I have projects that I want excel to put the number of hours I have available in each week until the hrs reach zero

ex. I have a project that is going to take 5500 hrs to complete. I have 980 hours per week to apply to this project. Say I need to have this done by week 30. So In week 30 I put 5500 hours and excel splits it up until it reaches zero.

So I want something that will do this no matter were I put it into the 52 week calender. Maybe I can still do this with an IF statement?
 
Upvote 0
Perhaps then you could show us a small section of your calendar with some dummy Data & the results you would want? It's abit hard to suggest anything when you have no idea of layout and specific requirements. ;)
 
Upvote 0

Forum statistics

Threads
1,224,540
Messages
6,179,417
Members
452,912
Latest member
alicemil

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top