sum if-match quantity

Stacy Rueda

Board Regular
Joined
Jun 23, 2016
Messages
87
Hi guys,

I have this excel file that I don't know how to start or what to use function or necessarily for macro.

I have input sheet, like below: When I input No. and quantity then it will sum to another sheet that match to the column that I inputted.

So, once I input No. 1-A, then quantity to other column will become 150, or if negative -50, then it will become 50.


INPUT DATA
No.1-A
QTY.50


<colgroup><col><col></colgroup><tbody>
</tbody>

NoQTY
1-A100 Quantity will become 150
2-B89
3-C100
4-D100
5-E100
6-F102
7-G10
8-H1092
9-I1082
10-J192
11-K1982
12-L1762

<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>
</tbody>

Hope you guys can help me. Thank you in advance.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hi @aqeelnokia99, I want to create macro (but don't know how to start) that will compute automatically Quantity when I input quantity from other sheet. Once I input No. 1-A, then quantity to other column will become 150, or if negative -50, then it will become 50.

INPUT DATA SHEET
No. QTY.
1-A 50

RESULT:

NoQTY
1-A100Quantity will become 150
2-B89
3-C100

<tbody>
</tbody>
 
Upvote 0
if u put A1 in qty table its add 50 +??? or its become 150 for all and waht about 2-b and 3-c ? i can make a formula not macro
 
Upvote 0
if its based on qty u want if u enter 100 in qty its become 150 if u eneter 50 its add 100 and become 150 if u add 30 its add 120 and become 150 ???
 
Upvote 0

Forum statistics

Threads
1,214,790
Messages
6,121,608
Members
449,038
Latest member
apwr

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