ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Array help (https://www.excelbanter.com/excel-discussion-misc-queries/48310-array-help.html)

pflynn

Array help
 

Have sheet1!as follows:
A B
Item Quantity
111 30
112 40
113 20
111 25

Sheet2!
Item Inventory
111 100
112 100
113 100
114 100

Need the sum of the items in sheet1! to subtract from the item
inventory on sheet21
Thanks
Pat


--
pflynn
------------------------------------------------------------------------
pflynn's Profile: http://www.excelforum.com/member.php...o&userid=27763
View this thread: http://www.excelforum.com/showthread...hreadid=472701


Bernard Liengme

In A1, B1 of Sheet3 enter text: Item & Quantity
In A2:A??? enter item number 111,112,113...
IN B2 enter
=SUMIF(Sheet2!A2:A5,Sheet3!A2,Sheet2!B2:B5)-SUMIF(Sheet1!A2:A5,Sheet3!A2,Sheet1!B2:B5)
Copy down the column
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"pflynn" wrote in
message ...

Have sheet1!as follows:
A B
Item Quantity
111 30
112 40
113 20
111 25

Sheet2!
Item Inventory
111 100
112 100
113 100
114 100

Need the sum of the items in sheet1! to subtract from the item
inventory on sheet21
Thanks
Pat


--
pflynn
------------------------------------------------------------------------
pflynn's Profile:
http://www.excelforum.com/member.php...o&userid=27763
View this thread: http://www.excelforum.com/showthread...hreadid=472701





All times are GMT +1. The time now is 06:58 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com