+ Reply to Thread
Results 1 to 8 of 8

Stock list calculation problem

  1. #1
    Forum Contributor
    Join Date
    11-03-2009
    Location
    Gloucestershire
    MS-Off Ver
    Office 2010 Excel/Word/Access
    Posts
    113

    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 10:30 AM. Reason: SOLVED

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    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.

    -This is my Greek whisper to Europe.

    --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.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Contributor
    Join Date
    11-03-2009
    Location
    Gloucestershire
    MS-Off Ver
    Office 2010 Excel/Word/Access
    Posts
    113

    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
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    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

  5. #5
    Forum Contributor
    Join Date
    11-03-2009
    Location
    Gloucestershire
    MS-Off Ver
    Office 2010 Excel/Word/Access
    Posts
    113

    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
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Stock list calculation problem

    OK, i think we get it..

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

  7. #7
    Forum Contributor
    Join Date
    11-03-2009
    Location
    Gloucestershire
    MS-Off Ver
    Office 2010 Excel/Word/Access
    Posts
    113

    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
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Stock list calculation problem

    You are Welcome Andy!

    Pls mark your Thread as SOLVED

+ 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.6.0 RC 1