simple stock control (Excel 2003 & 2007)

steveh
SilverLounger
Posts: 1952
Joined: 26 Jan 2010, 12:46
Location: Nr. Heathrow Airport

simple stock control (Excel 2003 & 2007)

Post by steveh »

Morning all

Stupid question of the day, say I have 3 columns, A, B and C

Column A Stock in
Column B stock out
Column C running total

Column A will only have updates 2 or 3 times a month, Column B may have daily stock out and I need Column C to show the current balance. If I enter =A2-B2, C2 will show the right result but if I drag C2 down abd then enter a figure in B3 it shows the wrong answer. I have attached a very simple example TIA
You do not have the required permissions to view the files attached to this post.
Steve
http://www.freightpro-uk.com" onclick="window.open(this.href);return false;
“Tell me and I forget, teach me and I may remember, involve me and I learn.”
― Benjamin Franklin

User avatar
rory
5StarLounger
Posts: 818
Joined: 24 Jan 2010, 15:56

Re: simple stock control (Excel 2003 & 2007)

Post by rory »

Wouldn't C3 need to be:
=C2+A3-B3
and then copy that down?
Regards,
Rory

steveh
SilverLounger
Posts: 1952
Joined: 26 Jan 2010, 12:46
Location: Nr. Heathrow Airport

Re: simple stock control (Excel 2003 & 2007)

Post by steveh »

rory wrote:Wouldn't C3 need to be:
=C2+A3-B3
and then copy that down?
Thanks Rory

I just could not get it this morning, can I add anything so that when I drag it down column c is blank until another quantity is put in the djacent b column?
Steve
http://www.freightpro-uk.com" onclick="window.open(this.href);return false;
“Tell me and I forget, teach me and I may remember, involve me and I learn.”
― Benjamin Franklin

User avatar
HansV
Administrator
Posts: 78620
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: simple stock control (Excel 2003 & 2007)

Post by HansV »

If you'll fill in columns A and B from top to bottom, you could enter

=IF(AND(A3="",B3=""),"",C2+A3-B3)

in C3 and fill down. This will fail, however, if you leave a row blank in columns A and B, then enter something in a row below:
x127.png
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans

steveh
SilverLounger
Posts: 1952
Joined: 26 Jan 2010, 12:46
Location: Nr. Heathrow Airport

Re: simple stock control (Excel 2003 & 2007)

Post by steveh »

HansV wrote:If you'll fill in columns A and B from top to bottom, you could enter

=IF(AND(A3="",B3=""),"",C2+A3-B3)

in C3 and fill down. This will fail, however, if you leave a row blank in columns A and B, then enter something in a row below:
Cheers Hans

That worked like a charm
Steve
http://www.freightpro-uk.com" onclick="window.open(this.href);return false;
“Tell me and I forget, teach me and I may remember, involve me and I learn.”
― Benjamin Franklin