+ Reply to Thread
Results 1 to 8 of 8

Thread: Stock list calculation problem

  1. #1
    Registered User
    Join Date
    11-03-2009
    Location
    Gloucestershire
    MS-Off Ver
    Excel 2003
    Posts
    78

    Stock list calculation problem

    Hi All,

    I am trying to produce a simple stock control sheet,

    I have a carried over level of 775

    I have column ‘C’ as the stock level so ‘C5’ is currently at 625 ‘C6’ is blank and will be filled in after the monthly stock count on the first of the month.
    Column ‘J’ is for total stock and ‘J5’currently reads 625 also
    Column ‘K’ is stock used and stands at 150
    Column ‘I’ is for stock received after the first of the month and ‘I5’ is blank (nothing received)
    All good so far !!!
    Column ‘J’ is the sum of ‘C5+I5’ (consecutive numbers as you work down the column)
    Column ‘K’ is the sum of ‘J4-C5’ (as above)
    That’s where the good ends !!!

    I have a running total for quick view which I link to a front page so that we can see the current usage total as the year progresses. The total in this cell is reading 775 as a total usage instead of the correct figure of 150 as in ‘K5’. You see ‘K6’ is already calculating ‘J5-C6’ but ‘J5’ is empty because it’s not the first of the month yet, how do I stop the cells in column ‘K’ calculating if the cells in column ‘C’ are empty.

    Or as usual am I making this complicated !!!

    Thanks for reading,

    Andy.
    Last edited by lurchybold; 01-27-2012 at 09:30 AM. Reason: SOLVED

  2. #2
    Valued Forum Contributor Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    2,297

    Re: Stock list calculation problem

    Hi Andy

    Not sure that i understand well your needs.

    Would you like to upload a small sample workbook??

    Because, just a simple answer is in Column K, use this. =IF(J5="";"";J5-C6)

    Is this what are you looking for?
    Regards

    Fotis.

    I am proud that i am Greek.

    Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?

    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.


    My Avadar picture, is from Athens Acropolis.
    http://www.theacropolismuseum.gr

    http://www.visitgreece.gr/

  3. #3
    Registered User
    Join Date
    11-03-2009
    Location
    Gloucestershire
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: Stock list calculation problem

    Hi Fotis,

    thanks for the reply, tried the formula but didn't work, came up with an error

    Please see attached sample,

    Regards,

    Andy.

    I think I've attached the file?
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    2,297

    Re: Stock list calculation problem

    Hi lurchybold

    Maybe this =IF(J5=0;0;J5-C6)

    If needs, change the semicolon to gomma.

    Hope to helps you.
    Attached Files Attached Files
    Regards

    Fotis.

    I am proud that i am Greek.

    Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?

    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.


    My Avadar picture, is from Athens Acropolis.
    http://www.theacropolismuseum.gr

    http://www.visitgreece.gr/

  5. #5
    Registered User
    Join Date
    11-03-2009
    Location
    Gloucestershire
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: Stock list calculation problem

    Hi Fotis,

    that doesn't work either, the sum for cells in column 'J' need to be there, where you have '0', if you put the =SUM back in the origional problem re-occurs,

    Regards,

    Andy.

  6. #6
    Valued Forum Contributor Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    2,297

    Re: Stock list calculation problem

    OK, i think we get it..

    =IF(C5="";"";SUM(J4-C5)), in K5. Copy down.
    Attached Files Attached Files
    Regards

    Fotis.

    I am proud that i am Greek.

    Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?

    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.


    My Avadar picture, is from Athens Acropolis.
    http://www.theacropolismuseum.gr

    http://www.visitgreece.gr/

  7. #7
    Registered User
    Join Date
    11-03-2009
    Location
    Gloucestershire
    MS-Off Ver
    Excel 2003
    Posts
    78

    Re: Stock list calculation problem

    BINGO!!!

    Thanks Fotis,

    I have run a couple of tests and all seems to appear as required,

    Thank you for you time and expertise,

    Kindest Regards,

    Andy.

  8. #8
    Valued Forum Contributor Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens Greece
    MS-Off Ver
    Excel 2003
    Posts
    2,297

    Re: Stock list calculation problem

    You are Welcome Andy!

    Pls mark your Thread as SOLVED
    Regards

    Fotis.

    I am proud that i am Greek.

    Just to know every one.We Greeks, we are nοt proud of our politicians. Υou?

    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.


    My Avadar picture, is from Athens Acropolis.
    http://www.theacropolismuseum.gr

    http://www.visitgreece.gr/

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0