Vlookup purchase records for list of items

dataexcel

New Member
Joined
Jun 3, 2023
Messages
2
Office Version
  1. 2013
Platform
  1. Windows
I want to lookup the purchase records for a list of items having one quantity each from a data having following fields column a,b,c,d,e as follows item code, quantity, date, invoice number, discount in such a way that it uses the lifo principle but based on the quantity of purchase records for eg item a is purchase twice one with 2 qty and another with 1 qty on different date under different invoice number now the list of items contains item a at three different instances with one quantity each I want to lookup the purchase records for all three quantities based on lifo details
architecture titles.xlsx
ABCDEFGHIJKLM
1ItemCodeQtyDateInv NoDiscList of ItemCodeNEED DATA IN THIS MANNER
29790750656305222-04-2023123209790750656305List of ItemCodeQtyDateInv NoDisc
39790750656305110-12-20223453097907506563059790750656305122-04-202312320
49788417769697203-05-20232344097907506563059790750656305122-04-202312320
59781138694293104-03-20236755097884177696979790750656305110-12-202234530
69781138860971105-05-20234562597884177696979788417769697103-05-202323440
79781138676435112-12-20227897097811386942939788417769697103-05-202323440
89781138676435210-12-20223545097811388609719781138694293104-03-202367550
99781472471697301-01-20232653097811386764359781138860971105-05-202345625
109780367330255103-02-20237853597811386764359781138676435112-12-202278970
119781472471147103-03-20234684097814724716979781138676435110-12-202235450
129781138917125302-06-20239655597803673302559781472471697101-01-202326530
139781138917125201-06-202312752.597814724711479780367330255103-02-202378535
149781138917125131-05-202377157.597811389171259781472471147103-03-202346840
159780128202548102-01-20231754097811389171259781138917125102-06-202396555
169780323994613102-02-20232893297811389171259781138917125102-06-202396555
179780128114551103-02-202334533.3397811389171259781138917125102-06-202396555
1897811389171259781138917125101-06-202312752.5
1997811389171259781138917125101-06-202312752.5
2097811389171259781138917125131-05-202377157.5
2197811389171259781138917125#N/A#N/A#N/A#N/A
2297801282025489781138917125#N/A#N/A#N/A#N/A
2397803239946139780128202548102-01-202317540
2497801281145519780323994613102-02-202328932
259780128114551103-02-202334533.33
26
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A1:A17Cell ValueduplicatestextNO
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
I am very confused as to what you want. Are you able to re explain what you need.
 
Upvote 0
I am very confused as to what you want. Are you able to re explain what you n
I am very confused as to what you want. Are you able to re explain what you need.
So basically let us say i have an item code for a book "9780000000001" which is unique but this item code has been purchased by me from my two suppliers from supplier one 2 qty on 01-12-2022 and another 1 qty from 2nd supplier on 01-01-2023, now suppose i have a list of items in vertical order of excel cells wherein i have the itemcode "9780000000001" in cell number G2, G4 and G5 all having 1 qty so from the data of purchase records I want to lookup this item code based on lifo principle i.e. last in first out so against cell G2 row i want the purchase record of 2nd supplier to be matched here i.e. supplier name, purchase price, invoice number, invoice date and purchase discount and now in cell G4 row i want data to be mapped from 1st supplier with it details and when we move down to G5 cell row again data from 1st supplier needs to be mapped
 
Upvote 0

Forum statistics

Threads
1,223,887
Messages
6,175,199
Members
452,617
Latest member
Narendra Babu D

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top