+ Reply to Thread
Results 1 to 16 of 16

subtract data using match and vlook

  1. #1
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    subtract data using match and vlook

    dear Expert
    i would like subtract data as in attached file
    in Cell D14 & D15 which look to matched data from B14 and B15 to list A2:A9
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: subtract data using match and vlook

    Try this in D14 filled down to D15.

    =VLOOKUP(B14,$A$2:$E$8,5,0)-C14

  3. #3
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: subtract data using match and vlook

    please see my attahced file that give me error with some modification
    Attached Files Attached Files

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: subtract data using match and vlook

    Also this in "D14"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    copy down.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  5. #5
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: subtract data using match and vlook

    @mazan2010

    In the last book you posted, Change the 5 to a 7, and the 8 to a 9.

  6. #6
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: subtract data using match and vlook

    please see my attached file that although withdraw two time from the same product but it give same number as the first time is withdrawed
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: subtract data using match and vlook

    its also give me error
    Attached Files Attached Files

  8. #8
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: subtract data using match and vlook

    You keep changing stuff.

    In your attachment from Post #3, formula in Cell D14 was
    =VLOOKUP(B14,$A$2:$G$8,5,0)-C14

    I suggested chaning the 5 to a 7 and the 8 to a 9
    But you put this in the next attachment from post #7
    =VLOOKUP(B14,$A$2:$E$8,7,0)-C14

    You Also changed the G to an E for some reason.. Why?

    The formula in D14 should be
    =VLOOKUP(B14,$A$2:$G$9,7,0)-C14

  9. #9
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: subtract data using match and vlook

    its the same problem
    meaning with if i withdraw any future quantity its subtract as first time for withdraw

  10. #10
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: subtract data using match and vlook

    please see my attached file with highlight
    Attached Files Attached Files

  11. #11
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: subtract data using match and vlook

    D14 and filled down

    =VLOOKUP(B14,$A$2:$G$9,7,0)-SUMIF($B$14:$B14,B14,$C$14:$C14)

  12. #12
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: subtract data using match and vlook

    its work now thanks Jonmo1

  13. #13
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: subtract data using match and vlook

    How to disable N/A error in this formula

  14. #14
    Forum Contributor
    Join Date
    11-28-2013
    Location
    Ljubljana
    MS-Off Ver
    Office 365
    Posts
    1,054

    Re: subtract data using match and vlook

    =iferror((vlookup(b14,$a$2:$g$9,7,0)-sumif($b$14:$b14,b14,$c$14:$c14)),"")

  15. #15
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: subtract data using match and vlook

    You're welcome.

  16. #16
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: subtract data using match and vlook

    In "D16"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. vlook or index match
    By mma3824 in forum Excel General
    Replies: 1
    Last Post: 05-30-2014, 08:28 AM
  2. Replies: 0
    Last Post: 08-09-2013, 05:54 PM
  3. need to compare match the data of each column and then subtract it
    By yageet in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-11-2010, 01:31 PM
  4. vlook up return more than one match
    By dphair1979 in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 08-28-2007, 10:46 AM
  5. vlook/match/index
    By nowfal in forum Excel General
    Replies: 12
    Last Post: 08-30-2005, 04:05 PM
  6. [SOLVED] Vlook up or index match
    By jerry in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-24-2005, 01:06 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