excel - Calculate two sheets -


i need little 2 sheets in excel:

sheet1

id    name      in stock 1      test     44 2      test2    55(become 50) 3      test3    66   

sheet2

id  name   ordered 2   test2  5 

end: when enter 5 in sheet2 (ordered) automatically subtract sheet1 (in stock) id 2 , name test2. use lookup id , name, when enter 2 in id automatically show name test2. need subtracting. know need use sumif no sure how.

as correctly said in post, may use sumif.

let's consider on 2 sheets, "id" in column a, "name" in column b, , "in stock" , "ordered" in column c. can calculate actual stock of third row, id "2", in cell c3 follows

=55-sumif(sheet2!a:a,a3,sheet2!c:c) 

as expected result 50. approach way not convenient, because should add formula manually in every row of table on sheet1. suggested above others, better have @ least column put starting values of stock, can replace actual stock in figures reference relevant cell.


Comments

Popular posts from this blog

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -