+ Reply to Thread
Results 1 to 9 of 9

List dollar difference for items

Hybrid View

  1. #1
    Registered User
    Join Date
    04-25-2014
    Location
    Clemson, South Carolina
    MS-Off Ver
    Excel 2013
    Posts
    15

    List dollar difference for items

    Hello All, I have a 2 lists of items. First I need to look at list B (Current Day Inventory) and if there is a match on list A (Prior Day Inventory) subtract the dollars difference. I have a formula to do the match: =IFERROR(INDEX($C$2:$C$20,SMALL(IF(COUNTIF($A$2:$A$20,$C$2:$C$20)=1,ROW($C$2:$C$20)-1,1E+99),ROW()-1),1),"") and the dollar difference: =IFERROR(VLOOKUP(E2,$C$2:$D$21,2,FALSE)-INDEX($A$2:$B$21,MATCH(E2,$A$2:$A$21,0),2),""). I also need to add the Items that are listed on list B (Current Day inventory) but not on list A (Prior Day Inventory) and the dollar amount.

    Prior Day Inventory Current Day Inventory Match Items Dollar Difference
    SM100-GEI210-AMP-EVDO-Z $1,206,566 SM100-GEI210-AMP-EVDO-Z $1,206,566 SM100-GEI210-AMP-EVDO-Z $0
    574129-001 $1,100,353 574129-001 $1,145,995 574129-001 $45,642
    SM100-GEI210-CDMA-C24 $867,048 SM100-GEI210-CDMA-C24 $841,568 SM100-GEI210-CDMA-C24 -$25,480
    513607-003 $831,534 513607-003 $831,534 513607-003 $0
    513877-001 $756,780 513877-001 $755,446 513877-001 -$1,334
    5780544 $548,706 5780535 $593,145 5780544 $0
    SM600-2S-CL200 $489,008 5780544 $548,706 SM600-2S-CL200 $15,973
    514243-001 $478,589 SM600-2S-CL200 $504,981 6510536 $0
    6510536 $463,744 6510536 $463,744 444183-003 -$4
    444183-003 $452,927 513895-002 $460,957 SM100-EA3-GSM-3G $0
    SM100-EA3-GSM-3G $433,019 444183-003 $452,923 513912-007 $0
    513912-007 $432,707 SM100-EA3-GSM-3G $433,019 SM100-EA3-G24 $0
    SM100-EA3-G24 $418,148 513912-007 $432,707 513544-003 -$1,075
    513544-003 $405,024 SM100-EA3-G24 $418,148 514162-001 -$6,539
    514162-001 $399,341 442027-001 $416,177 55T-SGRMU-001E $0
    55T-SGRMU-001E $372,219 513544-003 $403,949 5780535 $593,145
    K443834-018 $349,929 514162-001 $392,802 513895-002 $460,957
    570974-001 $325,461 55T-SGRMU-001E $372,219 442027-001 $416,177
    514064-001 $301,361 574054-001 $360,910 574054-001 $360,910

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: List dollar difference for items

    Can you post a sample workbook instead of that data to the forum?
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    04-25-2014
    Location
    Clemson, South Carolina
    MS-Off Ver
    Excel 2013
    Posts
    15

    Re: List dollar difference for items

    See attached file Mike
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: List dollar difference for items

    What exactly is the question?

  5. #5
    Registered User
    Join Date
    04-25-2014
    Location
    Clemson, South Carolina
    MS-Off Ver
    Excel 2013
    Posts
    15

    Re: List dollar difference for items

    Mike,
    I need to look at the items listed under current day inventory (col C) and do 2 things: 1) If the item matches an item in the prior day inventory column (col A)then subtract the dollar difference between the 2 (column d less column b. Also, if there is an item in column C that does not have a match in column A then list that item and the dollar amount.

    Hope this cleared up my problem.

  6. #6
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: List dollar difference for items

    Yeah that is more clear.

    Put this in cell F2 and drag down:
    =VLOOKUP(E2,$C:$D,2,FALSE)-IFERROR(VLOOKUP(E2,$A:$B,2,FALSE),0)
    You could also use a pivot table and a calculated item or field, depending on the data layout.
    Last edited by mikeTRON; 03-26-2015 at 12:33 PM.

  7. #7
    Registered User
    Join Date
    04-25-2014
    Location
    Clemson, South Carolina
    MS-Off Ver
    Excel 2013
    Posts
    15

    Re: List dollar difference for items

    Mike, works great to get the dollar difference amount. Need to also change by matching items formula in column E:{ =IFERROR(INDEX($C$2:$C$20,SMALL(IF(COUNTIF($A$2:$A$20,$C$2:$C$20)=1,ROW($C$2:$C$20)-1,1E+99),ROW()-1),1),"") } as this is only picking up the items that match not the ones that have no match.

  8. #8
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: List dollar difference for items

    Oh, I wouldn't use that formula, I would just copy&Paste then use a pivot table or remove duplicates.

  9. #9
    Registered User
    Join Date
    04-25-2014
    Location
    Clemson, South Carolina
    MS-Off Ver
    Excel 2013
    Posts
    15

    Re: List dollar difference for items

    Think you're right and will need to go in that direction.

    Thanks Mike

+ 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. % Difference From on Grouped Items
    By mo4391 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 02-09-2015, 02:36 PM
  2. Replies: 5
    Last Post: 03-04-2014, 10:01 AM
  3. Replies: 4
    Last Post: 09-14-2011, 06:23 PM
  4. Replies: 11
    Last Post: 02-20-2011, 10:46 PM
  5. [SOLVED] PivotTable: Difference from Row Items
    By astrodon in forum Excel General
    Replies: 1
    Last Post: 02-22-2006, 11:20 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