+ Reply to Thread
Results 1 to 13 of 13

Auto-adjusting Stock when Selling an Item and auto-fill values related to that item

  1. #1
    Registered User
    Join Date
    03-15-2014
    Location
    portugal
    MS-Off Ver
    Excel 2003
    Posts
    61

    Auto-adjusting Stock when Selling an Item and auto-fill values related to that item

    Hi Guys,

    First time writing a post here, first of all let me say sorry in advance for my rudimental English.

    I run a very small business, online retail shop.

    All my database is done on excel and i'm trying to improve it to make it more reliable and easy to use.

    What i'm looking for it's a solution to the following problems:

    Every time i sell an item i copy/past from inventory Sheet the data related to that item: EAN,ITEM,Selling Price,Shipping Costs and Profit.

    The solution i'm looking here would be for example define and link all this cells(EAN,ITEM,Selling Price,Shipping Costs and Profit) to the EAN code, so every time i want to add a new order to my database i would just need to paste the EAN(A12122 in the example) in the first cell(A4) and the cells F3 to I3 would be automatically filled with the linked data to the EAN Code(A12122).

    I tried with the "define name" tools, selecting the data ITEM,Selling Price,Shipping Costs and Profit and naming it A12122, then tried to paste in other cell =A12122 but didn't succeed.

    Thank you guys in advance for help, i'll upload a very simple example.
    Attached Files Attached Files

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,739

    Re: Auto-adjusting Stock when Selling an Item and auto-fill values related to that item

    you can use a vlookup in cell F3
    =VLOOKUP($A3,'Inventory '!$A$5:$G$18,2,FALSE)

    Change the number 2 to a 3 for G3
    Change the number 2 to a 4 for H3
    Change the number 2 to a 5 for I3

    see attached
    Attached Files Attached Files
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    03-15-2014
    Location
    portugal
    MS-Off Ver
    Excel 2003
    Posts
    61

    Re: Auto-adjusting Stock when Selling an Item and auto-fill values related to that item

    Thank you etaf for help.

    What i want to do it's somehow link the inventory!B10:G10 to the item code A12122 so every time i want to insert a new sell i would just write A12122 and have Sales!F3:I3(or some other location) automatically loaded with inventory!B10:G10 data. Now i'm using CMD+F and manually copy/pasting inventory!B10:G10 to Sales!F3:I3.

    Is it Possible?

    Thank you once again.

  4. #4
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,739

    Re: Auto-adjusting Stock when Selling an Item and auto-fill values related to that item

    thats what I thought I had put , using vlookup
    just copy the formula down and it will lookup any part thats in the table

    See modified example with different part numbers
    just add part numbers upto row10 - as far as the formula goes - you can still copy down further if required
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-15-2014
    Location
    portugal
    MS-Off Ver
    Excel 2003
    Posts
    61

    Re: Auto-adjusting Stock when Selling an Item and auto-fill values related to that item

    Thanks's man!!! Work's like a charm! :D You are a pro!

    Just one more thing to be perfect:

    I would like it to every time i sell A12122 item, automatically would remove 1 stock from Inventory!G10 and so on for other items.

    So would show on the example 34 items in stock.


    Thank you for this great help.

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,739

    Re: Auto-adjusting Stock when Selling an Item and auto-fill values related to that item

    if my assistance has helped, and only if you wish to , there is a reputation icon * on the left hand side - you can add to my reputation here

    assuming each entry has a quantity of 1 - you could use count, but there are quite a few different ways of doing this depending on how you are going to use the spreadsheet in real life

    heres one example
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-15-2014
    Location
    portugal
    MS-Off Ver
    Excel 2003
    Posts
    61

    Re: Auto-adjusting Stock when Selling an Item and auto-fill values related to that item

    templateSales 2014.xlsxTemplateInventory2014.xlsxtemplateSales 2014.xlsxTemplateInventory2014.xlsx



    Hi again.

    Sure i'll contribute for your reputation, you deserve it



    All your tips work very good, now i'm having just 2 issues:

    I will upload here the 2 workbooks i'm working with, one for orders and inventory and other for sales.

    So the problem now it's that i can't link the stock sold on the workbook Templatesales Cell J5 to all months in the workbook TemplateInventory row I (where i'll write the sold item code.

    Now i have it linked to =COUNTIF([TemplateInventory2014.xlsx]January!$I$4:$I$235;A5) and it works but i can't link it to all the sheets on that workbook, i get an error. I tried like this:


    =COUNTIF([templatesales2014.xlsx]January!$I$4:$I$235:[templatesales2014.xlsx]February!$I$4:$I$235:[templatesales2014.xlsx]March!$I$4:$I$235:[templatesales2014.xlsx]April!$I$4:$I$235:[templatesales2014.xlsx]May!$I$4:$I$235:[templatesales2014.xlsx]June!$I$4:$I$235:[templatesales2014.xlsx]Jully!$I$4:$I$235:[templatesales2014.xlsx]August!$I$4:$I$235:[templatesales2014.xlsx]September!$I$4:$I$235:[templatesales2014.xlsx]October!$I$4:$I$235:[templatesales2014.xlsx]November!$I$4:$I$235:[templatesales2014.xlsx]December!$I$4:$I$235;A5)

    Or like this:

    =COUNTIF([TemplateInventory2014.xlsx]January:December!;A5)


    I guess this is a simple one for you!



    Other thing it's how i'm adding new stock and orders to the inventory workbook.

    Simple example:

    I order today item A12344, 10 pieces at 1€ each.

    Next week i have just 5 in stock so i order again item A12344, 10 pieces but now because it's not available with the same supplier and the other one it's more expensive/cheap or because the supplier decreased(or increased) the item price, i'll buy it for 2€ each.

    In my Workbook column G, the price shown will be before the second order 1€ but when i add the second one it displays 0,75€ G5.

    So this brings me a problem, the profit calculated will never be accurate because i'm not calculating the actual single item price but an average price of all my orders.

    Would not be a problem if the prices would be the same on all orders but this is not realistic in a long term.


    Thank's for help.

  8. #8
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,739

    Re: Auto-adjusting Stock when Selling an Item and auto-fill values related to that item

    this is starting to get a little complicated now , as its more of a stock/sales system you are putting together

    rather than this
    =COUNTIF([templatesales2014.xlsx]January!$I$4:$I$235:[templatesales2014.xlsx]February!$I$4:$I$235:[templatesales2014.xlsx]March!$I$4:$I$235:[templatesales2014.xlsx]April!$I$4:$I$235:[templatesales2014.xlsx]May!$I$4:$I$235:[templatesales2014.xlsx]June!$I$4:$I$235:[templatesales2014.xlsx]Jully!$I$4:$I$235:[templatesales2014.xlsx]August!$I$4:$I$235:[templatesales2014.xlsx]September!$I$4:$I$235:[templatesales2014.xlsx]October!$I$4:$I$235:[templatesales2014.xlsx]November!$I$4:$I$235:[templatesales2014.xlsx]December!$I$4:$I$235;A5)

    USE
    =COUNTIF([TemplateInventory2014.xlsx]January!$I$4:$I$235,A5) + COUNTIF([TemplateInventory2014.xlsx]February!$I$4:$I$235,A5) + etc for each month

    to account for the price changes , you would need to insert dates and then use the dates as part of the lookup , so that the correct price is returned

    as i say getting quite complicated and more into an inventory and sales system

    how big is this likely to get
    how many parts ?

  9. #9
    Registered User
    Join Date
    03-15-2014
    Location
    portugal
    MS-Off Ver
    Excel 2003
    Posts
    61

    Re: Auto-adjusting Stock when Selling an Item and auto-fill values related to that item

    That formula doesn't work Gives me a pop up message saying the formula contains an error.


    Right now i have 400 parts nr's in stock.

  10. #10
    Registered User
    Join Date
    03-15-2014
    Location
    portugal
    MS-Off Ver
    Excel 2003
    Posts
    61

    Re: Auto-adjusting Stock when Selling an Item and auto-fill values related to that item

    I got it to work doing the changes manually.

    Now i have just the prices issue.

  11. #11
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,739

    Re: Auto-adjusting Stock when Selling an Item and auto-fill values related to that item

    I got it to work doing the changes manually.
    not sure what you mean?, but glad you have fixed

    prices , yes you will need to format the data so you have a list of part numbers delivery dates, quantity and price
    then you lookup the part and the price

    you can then use a array formula

    =INDEX(PriceRange,MATCH(cell with Date in ,IF(PartnumberRange=cell with part number in , range with the dates in ),1))
    use control + shift + enter to get an array formula {}

    that may mean you need to split out the costs and the stock items onto separate sheets , as you are mixing a few things together

    if you have the list maybe like

    date - PartNumber - Cost - quantity

    then you can use that table to get your total stock level , using a pivot table or formula, and also the price using the formula based on the date above

    then build up another table for overall sales and profits

    heres an example with 3 tables in one sheet

    the stock inventory parts delivered and date
    then the quantity in stock
    then the price for different dates
    Attached Files Attached Files
    Last edited by etaf; 03-17-2014 at 08:06 AM.

  12. #12
    Registered User
    Join Date
    03-15-2014
    Location
    portugal
    MS-Off Ver
    Excel 2003
    Posts
    61

    Re: Auto-adjusting Stock when Selling an Item and auto-fill values related to that item

    Hi.

    This is getting too complicated now for someone who has just basic skills on excel.

    I don't have the knowledge to put your tips to work.

    And i'm figuring out that this is not gonna work like i have it and not only on the item prices. Example:

    I started to colect my sales data to this workbooks since November. January comes discount season and i lower item A57681 50%. When i change the selling price the workbook will update all the cells referring to the selling price cell, (November and December sheet) and not just from the day i change the price on.

  13. #13
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.83 (24031120))
    Posts
    8,739

    Re: Auto-adjusting Stock when Selling an Item and auto-fill values related to that item

    hence needing to have the date criteria , yes it may seem complex, it will need knowing a reasonable amount about the data layout , and what is best ,as well as some of the formulas you could use

    the site does offer paid for solutions , see here
    http://www.excelforum.com/commercial-services/
    where someone could build a full application, for you.

    i could continue here to advise, but there does come a point where the whole application is being built , rather than answering a few questions - but happy to continue if you want to

    if you want to look at the simple sample I posted and see what is going on , and then apply to your sheet(s)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Find most selling item
    By Odeen in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-30-2013, 08:38 AM
  2. [SOLVED] Auto-fill numbers, but start from 1 whenever you reach a new item
    By kestefon in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-01-2013, 11:23 AM
  3. Select an item from drop down list and auto fill in next working date
    By pjlau in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-23-2012, 12:49 AM
  4. [SOLVED] Auto fill line when item is chosen from drop down list.
    By ericabutkovich in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-09-2012, 05:47 PM
  5. [SOLVED] Auto assigning sale item invoice number against stock list
    By Dave855 in forum Excel General
    Replies: 0
    Last Post: 10-25-2010, 09:41 AM

Tags for this Thread

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