News:

Tekforums.net - The improved home of Tekforums! :D

Main Menu

Excel Formula Query

Started by M3ta7h3ad, September 28, 2007, 12:06:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

M3ta7h3ad

My head is going around in circles on this simple task.

I am making a google spreadsheet (uses same functions as excel :)) to track my spending and try and budget.

Problem is as follows.

Current Balance: -£3.50
Overdraft Allowance: £2000
Remaining funds: I can work it out as thats 2000 - 3.50. Except I want excel to put the - before the 3.50 as its a negative balance, so excel is seeing it as 2000 - - 3.50 resulting in 2000 + 3.50

Meaning its giving remaining funds of 2003.50

How do I get around that?

Edit:

Dont worry... sorted it.

IF(MonthStartBalance<0,SUM((Overdraft+MonthStartBalance)+MonthExpend),SUM((Overdraft+MonthStartBal)-MonthExpend))

:)

BigSoy

The easy way to do it is if youre going to represent incomings and outgoing as + and - numbers, just =sum() the whole lot...
"Within your 'purview'? Where do you think you are, some f**king regency costume drama? This is a government department, not some f**king Jane f**king Austen novel!"

knighty

you should be adding youre current balance not taking it away ;)


so £2000  +  -£3.50 = £1996.50


:)

M3ta7h3ad

yeah but my overdraft is listed as -£2000 :) lol so adding works :D

knighty

ahhhh, but that should be a +2000 !  :o

M3ta7h3ad

lol yeaaah but it just works :D