Date formula based on column

srizki

Well-known Member
Joined
Jan 14, 2003
Messages
1,846
Office Version
  1. 365
Platform
  1. Windows
I am trying to write a formula that works like this.
In column A, I have months, starting from February ending in August
In column B, I will put an amount. If I put 600, it should fill automatically in March 500, April 400, May 300, June 200, July 100, August 0, it should be 100 less than prior month. If I put $500 in February, it will be 0 in July, therefore August should not show, so the presence of month depends on if last month’s amount is >0, otherwise “”.
Lets say A6 has February, A7 will have =IF(B6>0,EOMONTH(A6,1)””), this formula is not working, either the formula is wrong or I have to install Analyis toolPak.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:eek:ffice:eek:ffice" /><o:p> </o:p>
Thanks
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
I thought so, because formula seems fine to me, as LxQ says to add comma, I did that as well, now I need to install add-in
Thanks
 
Upvote 0
You might get away without the add-in.

=IF(B6>0, DATE(YEAR(A6), MONTH(A6)+1,1), "")
 
Upvote 0
The formula works fine, except when there is nothing in column B that is, it is blank but has formula =IF(B8>100,B8-100,"")
the formula in A10 gives #VALUE error, how can I adjust this formula to avoid the error.

Thanks
 
Upvote 0

Forum statistics

Threads
1,216,116
Messages
6,128,933
Members
449,480
Latest member
yesitisasport

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