Create report by merging duplicates items based on low price

leap out

Active Member
Joined
Dec 4, 2020
Messages
288
Office Version
  1. 2016
  2. 2010
Hello
I put the result in REPORT sheet from row2 with some formulas how should calculate for columns H,J,K .
so if the items in column D for SALES sheet contains price for column( I )smaller than price for column (I) for STOCK sheet then should do :
1- merge duplicates items based on column D for SALES sheet in just one case , if SALES sheet contains price for column( I )smaller than price for column (I) for STOCK sheet(should ignore the same duplicates item if the price is equel between two sheets or the price in SALES sheet bigger than STOCK sheet as in item AA-1 for row7,9 in SALES sheet .
2- should merge column H for sales sheet and put in column F for REPORT sheet .
3- should merge J for sales sheet and put in column I for REPORT sheet .
4- should brings price for the same item from STOCK sheet for column I to REPORT sheet and put in column G
5-in REPORT sheet the column H=column I / column F
6-in REPORT sheet column J= column F*(column H-column G)
7- in REPORT sheet column K= column J * column F
8- insert TOTAL (LOSS) row and summing in column K
9-finally any change in STOCK & SALES sheets should automatically in REPORT sheet .
INVEN with single search v0 c (1) (1).xlsm
ABCDEFGHIJ
1itemINV NOORDER NOCODEBRANDTYPEMANUFACTUREQTYUNIT PRICE AMOUNT
21SS-001SS-001AA-110W40 208LQ8EU10222.22222
32SS-001SS-001AA-215W40 208LCASSU580400
43SS-001SS-001AA-35W30 208LQ8EU1080800
54SS-001SS-001AA-45W30 12x1LQ8EU5120600
65SS-001SS-001AA-510W40 208LENIIT1520300
76SS-002SS-002AA-65W30 4x4LQ8EU1020200
87SS-002SS-002AA-710W40 12x1LQ8EU1012120
98SS-003SS-003AA-815W40 12x1LCASSU590450
109SS-004SS-004AA-910W40 12x1LENIIT2044.5890
1110SS-005SS-005AA-1010W40 4x4LQ8EU569345
1211SS-006SS-006AA-1110W40 4x4LCASSU1015150
1312SS-007SS-007AA-1210W40 4x4LENIIT524.6123
1413SS-007SS-007AA-135W40 4x4LQ8EU2022.8456
1514SS-008SS-008AA-145W40 4x4LCASSU5135.6678
1615SS-009SS-009AA-155W40 4x4LENIIT10123.41234
1716SS-010SS-010AA-1620W50 4x4LQ8EU5114456
Stock



INVEN with single search v0 c (1) (1).xlsm
ABCDEFGHIJ
1DATEINV NOORDER NOCODEBRANDTYPEMANUFACTUREQTYUNIT PRICE AMOUNT
201/01/2021SAL-005SCA-005AA-510W40 208LENIIT2.0018.0036.00
302/01/2021SAL-006SCA-006AA-65W30 4x4LQ8EU2.0024.0048.00
403/01/2021SAL-007SCA-007AA-710W40 12x1LQ8EU2.0022.0044.00
505/01/2021SAL-009SCA-009AA-910W40 12x1LENIIT1.0050.0050.00
606/01/2021SAL-001SCA-001AA-110W40 208LQ8EU2.00220.00440.00
710/01/2021SAL-010SCA-010AA-110W40 208LQ8EU2.00225.00450.00
811/01/2021SAL-011SCA-011AA-1110W40 4x4LCASSU1.0012.0012.00
912/01/2021SAL-011SCA-011AA-110W40 208LQ8EU2.00222.20444.00
1013/01/2021SAL-012SCA-012AA-710W40 12x1LQ8EU2.0022.0090.00
1114/01/2021SAL-013SCA-013AA-135W40 4x4LQ8EU2.0030.0060.00
1215/01/2021SAL-014SCA-014AA-145W40 4x4LCASSU1.00140.00140.00
1316/01/2021SAL-014SCA-014AA-1110W40 4x4LCASSU1.0013.0013.00
1418/01/2021SAL-016SCA-016AA-1620W50 4x4LQ8EU1.00125.00125.00
1519/01/2021SAL-017SCA-017AA-110W40 208LQ8EU2.00219.00438.00
sales



INVEN with single search v0 c (1) (1).xlsm
ABCDEFGHIJK
1ITEMCODEBRANDTYPEMANUFACTURESALESSTOCK PRICESALES PRICEAMOUNTCOST LOWERAMOUNT AFTER LOWER
21AA-110W40 208LQ8EU4222.2219.5878-10.8-43.2
32AA-510W40 208LENIIT2201836-4-8
43AA-1110W40 4x4LCASSU21512.525-5-10
5TOTAL(LOSS)-16-61.2
REPORT
Cell Formulas
RangeFormula
H2:H4H2=I2/F2
J2:J4J2=F2*(H2-G2)
K2:K4K2=J2*F2
K5K5=SUM(K2:K4)


also posted here
Merge duplicates items based on price decreasing when compare with another sheet
thanks
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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