#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,722
Default IF statement help

I believe the new January value will always equal the old January value, so
that should be a simple
=A2
For the other months starting in Feb:
=IF(AND(B2<0,ABS(B2)SUM($A$2:A2)),-SUM($A$2:A2),IF(B2$A$2,$A$2,B2))
And then copy across.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"KevinM" wrote:

I am trying to return the following with an IF statement but I can not
get it to work. I don't know if the IF statement is the correct
formual to use so any help would be appricated.

I am trying to say the statring month is the default value (ie $400).
If a month has a negative amout greater than the sum of the previous
months it only returns a value of the negative of the sum (ie $400+
$400= $800, -$2400 for Mar, so really it is -$800). If it is greater
than the first month it only counts the default value and not the
higher value (ie $600 is really $400). If it doesn't meet any of
those critera than it is just the value for that month.


Jan Feb Mar Jan Feb Mar Total
$400 $400 -$2400 $400 $400 -$800 $0
$400 $400 -$200 $400 $400 -$200 $600
$400 $400 $600 $400 $400 $400 $1200

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Embedding an OR statement in an IF statement efficiently Chatnoir11 Excel Discussion (Misc queries) 4 February 2nd 09 08:12 PM
Sum if statement with a left statement Eric D Excel Discussion (Misc queries) 4 July 23rd 08 05:31 PM
Can an If statement answer an If statement? M.A.Tyler Excel Discussion (Misc queries) 2 June 24th 07 04:14 AM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM
If statement and Isblank statement Rodney C. Excel Worksheet Functions 0 January 18th 05 08:39 PM


All times are GMT +1. The time now is 12:40 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"