+ Reply to Thread
Results 1 to 8 of 8

DV Update List Product on Sells if Stock is 0

  1. #1
    Registered User
    Join Date
    06-25-2022
    Location
    Madagascar
    MS-Off Ver
    2013
    Posts
    15

    DV Update List Product on Sells if Stock is 0

    Hi,

    I have a file with 2 sheets (Stock & Sells).
    On Stock sheet, i have a table with all my products and the remaining stock.
    On Sells sheet, i have a table with a column "Product" in which i want to make a data validation list based on Products available on Stocks.
    If Product on Stocks are available, i want it to appears on DV list, but if Product is sold and product on Stock is equal to 0, i want that the product doe not appears anymore on futur DV list on Sell sheet.

    Please find attached my excel file.

    Thank you for your help.

    Regards,
    Vij401
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,952

    Re: DV Update List Product on Sells if Stock is 0

    In cell G2 of the 'stocks' sheet, enter:
    Please Login or Register  to view this content.
    and copy down to the last used row of the PRODUCT column.

    Create the dynamic named range "AVAILABLES" referring:
    Please Login or Register  to view this content.

    then dv dropdown for products on SELLS: =AVAILABLES
    Attached Files Attached Files
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    06-25-2022
    Location
    Madagascar
    MS-Off Ver
    2013
    Posts
    15

    Re: DV Update List Product on Sells if Stock is 0

    Hi,

    Thank you for this solution but i don't want this kind of solution.

    Also i have thousands of lines, so i think this will be maybe complicated to manage.

    What I want is to add a formula directly on Sells Product column, without creating a new table.

    Like the formula you used (=SIERREUR(INDEX(StocksTab[Product];PETITE.VALEUR(SI(StocksTab[Final Stock]>0;LIGNE(StocksTab[Sells])-1);LIGNE(A1)));"")); but directly by putting this on DV.

    Do you think there is a solution for that ?

    Thank you

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,820

    Re: DV Update List Product on Sells if Stock is 0

    If you require the DV list in SELLS, you will need VBA to do this..

    Why is adding a single dynamic range complicated to manage ?
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  5. #5
    Registered User
    Join Date
    06-25-2022
    Location
    Madagascar
    MS-Off Ver
    2013
    Posts
    15

    Re: DV Update List Product on Sells if Stock is 0

    Hi,

    Ok!
    Sorry, it's not "complicated" but not esthetic.
    Instead of adding a new range, is that a possibility to integrate a new column to the Stock Table with dynamic cells like "Available/Not Available" ?
    And use that new column to make our DV on Sells ?

    Thank you

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,820

    Re: DV Update List Product on Sells if Stock is 0

    Aesthetic !!!!

    You have 16K columns and you are concerned about the addition of a single column ?! and then you say
    is that a possibility to integrate a new column to the Stock Table
    ... so where is the difference?


  7. #7
    Registered User
    Join Date
    06-25-2022
    Location
    Madagascar
    MS-Off Ver
    2013
    Posts
    15

    Re: DV Update List Product on Sells if Stock is 0

    Hi,

    Sorry for the word mistake, english is not my first language.

    The difference here is to create a separate unique column table, what i don't want to do.
    What i want is to use the current Stock table, if necessary i'm ok to add a new column on it, but i don't want to create a table with one column only.
    But don't worry if you don't have any other solutions except vba.

    Anyone else have the solution i need ?

    Thank you for your support.

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,820

    Re: DV Update List Product on Sells if Stock is 0

    if necessary i'm ok to add a new column on it, but i don't want to create a table with one column only.
    To my mind, completely illogical !!!. A column is a column so does it matter if it is a named range or just a column???

    If you research your requirement, I will be very suprised if find an alternative solution to what you have already been offered

    Think about the logic of creating a DV list .......

+ 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. Replies: 3
    Last Post: 03-07-2022, 06:03 PM
  2. How to auto update product stock when a sale happens
    By psahani in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-19-2018, 06:45 AM
  3. Want to update stock sheet as and when i enter product code in invoice sheet
    By anilpatni1234 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-22-2017, 01:18 AM
  4. Stock List Update Tool, I would love someone to help (do it for) me.
    By ServerCom in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-03-2015, 12:40 AM
  5. [SOLVED] Copy price to more than one product - Stock List
    By Ben1985 in forum Excel General
    Replies: 2
    Last Post: 08-11-2014, 12:42 PM
  6. Would like to update stock list from daily sales list
    By DIPPYDOR in forum Excel General
    Replies: 6
    Last Post: 05-29-2014, 10:53 AM
  7. Update Prices on price list and ID and add New Items - Multiple Product Lines
    By KNS Brakes in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-26-2011, 09:50 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