+ Reply to Thread
Results 1 to 6 of 6

Help with lookup

Hybrid View

  1. #1
    Registered User
    Join Date
    06-04-2008
    Posts
    4

    Help with lookup

    Hi All,

    I need some assistance with vlookup.

    I have setup a stock database for work. We currently do transactions on one sheet with quantity. I then bring the quantity number over to another sheet matching the part number on one sheet with the other. From there, I will subtract the current quantity with the new quantity I just put in to give my new level of stock.

    I currently use this formula:
    =IF(ISNA(VLOOKUP(A4,Dispatched!$D$4:$E$20000,2,0)),0,VLOOKUP(A4,Dispatched!$D$4:$E$20000,2,0))

    The issue is that I can only do this once and it will be needed multiple times.
    For example, if on sheet B I have two entries of the same part number on different rows with different quanities, I need this number added together and then brough ovwer to sheet A so I can calculate current levels.

    I hope this makes sence, any ideas?

  2. #2
    Registered User
    Join Date
    06-04-2008
    Posts
    4
    Another thought I had was to add the different quantities based on the part number on sheet B and then bring it over to sheet A.

    example of sheet B:


    8602820-001 3
    3601122-101 12
    8609999-001 1
    8602820-001 1
    7800107-101 1
    8602820-001 1 (this will now equal 5, bring this over to sheet A)

    Is there anyway I could do this?

  3. #3
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    Maybe a sumproduct formula will do the trick:

    To sum:
    =SUMPRODUCT((Dispatched!$D$4:$D$5000=A4)*Dispatched!$E$4:$E$5000)

    To count:
    =SUMPRODUCT((Dispatched!$D$4:$D$5000=A4)*1)
    Last edited by Portuga; 06-04-2008 at 02:48 AM.
    If you found the solution to your question. Mark the thread as "Solved"
    Thank everyone that helped you with a valid solution by clicking on their

    There is no such thing as a problem, only a temporary lack of a solution

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565
    Hi rosey,

    Though I'm not an expert with them, I'd say this scenario lends itself towards the use of a Pivot Table.

    That said, you'll probably get by simply by using a SUMIF formula like this:

    =SUMIF(Dispatched!D4:E20000,A4,Dispatched!E4:E20000)

    HTH

    Robert

  5. #5
    Registered User
    Join Date
    06-04-2008
    Posts
    4
    Thanks guys,

    I will test it tomorrow

  6. #6
    Registered User
    Join Date
    06-04-2008
    Posts
    4
    Thanks Robert, worked great!

+ 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. Lookup when lookup value is in middle of table
    By Brokovich in forum Excel General
    Replies: 8
    Last Post: 05-28-2016, 11:32 AM
  2. Matrix / multiple lookup / iteration challenge
    By MarkFranklin in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-19-2008, 06:45 AM
  3. Cell lookup and output issue...
    By yellephant in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-21-2007, 11:27 AM
  4. lookup table
    By soliver0012 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-01-2007, 09:35 PM
  5. VLOOKUP - varying the LOOKUP
    By adscrim in forum Excel General
    Replies: 3
    Last Post: 03-20-2007, 09:23 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