+ Reply to Thread
Results 1 to 15 of 15

lookup refrence

Hybrid View

  1. #1
    Registered User
    Join Date
    12-23-2014
    Location
    indore
    MS-Off Ver
    2010,2007
    Posts
    54

    lookup refrence

    There is an example in below if i remove faulty value like (5) then it will add in warehouse (0) into (5)


    hope i will get soon it great help to me thanks in adavence
    Surat
    Warehouse Stock Goods Faulty
    0 5

    I want like is below

    Surat
    Warehouse Stock Goods Faulty
    5 0
    Last edited by jitendras; 12-01-2016 at 09:52 AM.

  2. #2
    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
    28,436

    Re: lookup refrence

    Don't understand: how do you "remove" it?

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    12-23-2014
    Location
    indore
    MS-Off Ver
    2010,2007
    Posts
    54

    Re: lookup refrence

    Value as i mention like 5 and same value auotometic add in warehour stock

  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
    28,436

    Re: lookup refrence

    How will we (Excel) know you want to take it out of "Faulty" and put into the Warehouse???

  5. #5
    Registered User
    Join Date
    12-23-2014
    Location
    indore
    MS-Off Ver
    2010,2007
    Posts
    54

    Re: lookup refrence

    Simply if we have value in faulty device like 5 and we would like to remove 5 from faulty it will get in warehouse sum and faulty get nil and ware house bucket will get fill like 5

  6. #6
    Registered User
    Join Date
    12-23-2014
    Location
    indore
    MS-Off Ver
    2010,2007
    Posts
    54

    Re: lookup refrence

    find example sheet
    Attached Files Attached Files

  7. #7
    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
    28,436

    Re: lookup refrence

    so .. whenever a value is added to "Faulty" (column J) you want it immediately added to the "Faulty Warehouse" stock (Column H) (column J) and the "Faulty" set to 0

    You will have to use VBA ("Worksheet Event") to initiate the required action AND you need to ADD the "faulty" to the existing "Faulty Warehouse" stock which cannot be done with a formula in "Warehouse Stock".

    To do the VBA we need an exact copy of your real workbook if it is different to last post: are the respective columns H and J?

    See attached: add value in J and H is updated.

    Private Sub Worksheet_Change(ByVal Target As Range)
      If Target.Row = 1 Or Target.Column <> 10 Then Exit Sub
    
      On Error GoTo ErrHandler
      Application.EnableEvents = False
      
           Target.Offset(0, -2).Value = Target.Offset(0, -2).Value + Target.Value
           Target.Value = 0
    ErrHandler:
      Application.EnableEvents = True
    End Sub
    Attached Files Attached Files
    Last edited by JohnTopley; 12-02-2016 at 02:39 AM.

  8. #8
    Registered User
    Join Date
    12-23-2014
    Location
    indore
    MS-Off Ver
    2010,2007
    Posts
    54

    Re: lookup refrence

    Thanks a lot it's work

    But i have different situation

    If i have faulty value 15 in this 15 quantity i have received 5 quantity then 5 add in warehouse stock remain stay at his place like (15-5) remain value (10)


    same should be work which i added some more column in demo sheet Like "L","N","P","R","T","V"

    If any way to get it

    thanks in adavance
    Attached Files Attached Files

  9. #9
    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
    28,436

    Re: lookup refrence

    I don't understand:

    If i have faulty value 15 in this 15 quantity i have received 5 quantity then 5 add in warehouse stock remain stay at his place like (15-5) remain value (10)
    Faulty
    If you mean you have 15 in "Faulty" (in column J) and you want to move 5 to "Faulty Stock Warehouse" leaving 10 in J: cannot be done!

    You will need a "Faulty Stock Transfer" column which would have 5 in it: this number would be added to "Fault Warehouse" stock and deducted from "Faulty".

  10. #10
    Registered User
    Join Date
    12-23-2014
    Location
    indore
    MS-Off Ver
    2010,2007
    Posts
    54

    Re: lookup refrence

    can you help on the same ???? as according you

  11. #11
    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
    28,436

    Re: lookup refrence

    The attached has an example. I will not do any more changes until you post a final version of your workbook.

    Private Sub Worksheet_Change(ByVal Target As Range)
      If Target.Row = 1 Or Target.Column <> 11 Then Exit Sub
    
      On Error GoTo ErrHandler
      Application.EnableEvents = False
      
           Target.Offset(0, -3).Value = Target.Offset(0, -3).Value + Target.Value
           Target.Offset(0, -1).Value = Target.Offset(0, -1).Value - Target.Value
           Target.Value = 0
    ErrHandler:
      Application.EnableEvents = True
    End Sub
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    12-23-2014
    Location
    indore
    MS-Off Ver
    2010,2007
    Posts
    54

    Re: lookup refrence

    Thanks

    It's ok

    as it is do work same which i added column same which you have done
    Attached Files Attached Files

  13. #13
    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
    28,436

    Re: lookup refrence

    Private Sub Worksheet_Change(ByVal Target As Range)
    
      If Target.Row <= 2 Then Exit Sub
      
       c = Target.Column
       r = Target.Row
       
       If Cells(2, c) <> "Faulty Transfer" Then Exit Sub ' Check this if this "Faulty Transfer": EXIT if not
    
      On Error GoTo ErrHandler
      Application.EnableEvents = False
      
           Cells(r, 8) = Cells(r, 8) + Target.Value  'Update "Faulty Warehouse" stock
           Target.Offset(0, -1).Value = Target.Offset(0, -1).Value - Target.Value  'Reduce "Faulty" stock
           Target.Value = 0  ' Reset "Faulty" to zero
           
    ErrHandler:
      Application.EnableEvents = True
    End Sub
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    12-23-2014
    Location
    indore
    MS-Off Ver
    2010,2007
    Posts
    54

    Re: lookup refrence

    Thanks a lot it's been working

    it's been great for me

  15. #15
    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
    28,436

    Re: lookup refrence

    Glad it is all working.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. [SOLVED] Refrence data in a row
    By Derek210 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-24-2015, 11:46 AM
  2. help with date refrence
    By nartnart in forum Excel - New Users/Basics
    Replies: 13
    Last Post: 05-15-2015, 02:25 AM
  3. Refrence error
    By a.janmohammadi in forum Excel General
    Replies: 3
    Last Post: 03-10-2014, 02:50 PM
  4. refrence value
    By mak_pj in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-27-2013, 04:22 PM
  5. [SOLVED] cell refrence
    By jeeper74 in forum Excel General
    Replies: 4
    Last Post: 02-16-2013, 11:55 AM
  6. [SOLVED] Formula to lookup & sum items with same refrence number
    By headley4ever in forum Excel General
    Replies: 16
    Last Post: 08-21-2012, 01:06 PM
  7. [SOLVED] Circular refrence necessary or is there a better way help
    By sakecat in forum Excel General
    Replies: 2
    Last Post: 05-02-2012, 03:27 PM

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