+ Reply to Thread
Results 1 to 10 of 10

Restrict Entry to cell if it is out of Stock

Hybrid View

vipinpalkar Restrict Entry to cell if it... 08-03-2015, 01:28 AM
bmouse Re: Restrict Entry to cell if... 08-03-2015, 03:07 AM
Glenn Kennedy Re: Restrict Entry to cell if... 08-03-2015, 03:10 AM
vipinpalkar Re: Restrict Entry to cell if... 08-03-2015, 05:13 AM
morasrikanth Re: Restrict Entry to cell if... 08-03-2015, 03:23 AM
vipinpalkar Re: Restrict Entry to cell if... 08-03-2015, 05:19 AM
morasrikanth Re: Restrict Entry to cell if... 08-03-2015, 06:00 AM
vipinpalkar Re: Restrict Entry to cell if... 08-03-2015, 06:05 AM
morasrikanth Re: Restrict Entry to cell if... 08-05-2015, 05:32 AM
Glenn Kennedy Re: Restrict Entry to cell if... 08-03-2015, 05:17 AM
  1. #1
    Registered User
    Join Date
    08-01-2015
    Location
    india
    MS-Off Ver
    2010
    Posts
    4

    Restrict Entry to cell if it is out of Stock

    I have two sheets one is stock balance and other is sales..if my stock is less in stock balance sheet for a product entered in sales it should not allow me to enter using data validation or any formula or function. plz help me in this..I am attaching my sheet for reference.inv.xlsx

  2. #2
    Forum Contributor
    Join Date
    08-04-2014
    Location
    Riga
    MS-Off Ver
    2010
    Posts
    579

    Re: Restrict Entry to cell if it is out of Stock

    Without too much fuss, I would probably pull the "Stock" column into the "Sales" sheet and put an extra column with an IF formula and some Conditional formatting, so if you enter a number greater than your stock a red light comes up.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Restrict Entry to cell if it is out of Stock

    Try this. I have added a helper column that can be hidden. As you add new orders on TO THE BOTTOM of the list, if the MOS RECENT order reduces stock to <0, an alert appears - showing the number of stock items remaining. It's an array formula.

    Array Formulae are a little different from ordinary formulas in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly braces { } appear around the outside of your formula. If you do not CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly braces yourself - it won't work...
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 08-03-2015 at 03:24 AM.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Registered User
    Join Date
    08-01-2015
    Location
    india
    MS-Off Ver
    2010
    Posts
    4

    Re: Restrict Entry to cell if it is out of Stock

    thanks glenn..it works but if you can restrict it using custom data validation it would be great
    Last edited by vipinpalkar; 08-03-2015 at 05:17 AM.

  5. #5
    Registered User
    Join Date
    12-06-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    12

    Smile Re: Restrict Entry to cell if it is out of Stock

    Quote Originally Posted by vipinpalkar View Post
    I have two sheets one is stock balance and other is sales..if my stock is less in stock balance sheet for a product entered in sales it should not allow me to enter using data validation or any formula or function. plz help me in this..I am attaching my sheet for reference.Attachment 411360

    Dear Vipin,

    Please find the attachment with your query solved.

    Regards
    M Srikanth
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-01-2015
    Location
    india
    MS-Off Ver
    2010
    Posts
    4

    Re: Restrict Entry to cell if it is out of Stock

    Mr. morasrikant noting is done in your attached sheet...i think you have send me the same attachment

  7. #7
    Registered User
    Join Date
    12-06-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Restrict Entry to cell if it is out of Stock

    Quote Originally Posted by vipinpalkar View Post
    Mr. morasrikant noting is done in your attached sheet...i think you have send me the same attachment
    Dear Vipin,

    I have created a data validation for the QUANTITY column (column E) of SALES sheet which restrict from entering value more that stock available for the products.

  8. #8
    Registered User
    Join Date
    08-01-2015
    Location
    india
    MS-Off Ver
    2010
    Posts
    4

    Re: Restrict Entry to cell if it is out of Stock

    its not working morasrikant. plz if u can resend the file..will be thankfull
    Last edited by vipinpalkar; 08-03-2015 at 06:07 AM.

  9. #9
    Registered User
    Join Date
    12-06-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Restrict Entry to cell if it is out of Stock

    Quote Originally Posted by vipinpalkar View Post
    its not working morasrikant. plz if u can resend the file..will be thankfull
    Dear Vipin,

    Try this,

    Select cells E6:E2000 in Sales worksheet and add data validation as "Whole number" and give values as
    Minimum = 0 and
    Maximum =INDEX(Stock.Balance!$F$6:$F$127,MATCH(D6,Stock.Balance!$C$6:$C$127,0))+$E6
    Attached Images Attached Images

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Restrict Entry to cell if it is out of Stock

    You're welcome... and thanks for the Rep.

+ 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: 0
    Last Post: 07-01-2014, 09:47 AM
  2. restrict data entry basing on adjacent cell value
    By tkraju in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2014, 01:45 PM
  3. Restrict data entry if preceeding cell value is greater than or blank
    By GreggTO in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-07-2013, 11:46 AM
  4. Restrict cell entry
    By LeePrice in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 12-05-2012, 07:29 AM
  5. Restrict data entry based on another cell
    By northbank in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-13-2012, 11:33 AM
  6. [SOLVED] NEED HELP - How to disable a cell to restrict data entry
    By Sriram in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-18-2006, 10:50 AM
  7. [SOLVED] [SOLVED] How do I restrict entry into a cell to only alpha/numeric?
    By SusanMurray in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-05-2006, 10:30 AM

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