If value in column A then add values in column b

Timwhitcher

New Member
Joined
Aug 13, 2021
Messages
6
Office Version
  1. 365
Platform
  1. Windows
I am trying to make a resource tracker with a front sheet and a data sheet. we can only order in boxes of 25 so spare stock builds up
The data sheet 2 looks similar to this with customer details that can be ignored
Installer Nameamount orderedamount needed
Dave2520
Bob 5036
Jane7567
Bob2512
i need the front page (Sheet 1) to look like this
DaveBobJane
Total amount orderedon sheet 2 if column 1 = Dave add values in column 2
Total amount neededon sheet 2 if column 1 = Dave add values in column 3
Spare stock=SUM(B2-B3)
how do i filter by the installer name to get the totals i need?
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Hi,

Think you would use something like

Excel Formula:
SUMPRODUCT(SUMIFS(B2:B5,A2:A5,{"name","name2"}))

A2:A5 is your installer name
B2:B5 is your amount ordered

"name","name2" is the names you want to lookup and count.

change B2:B5 to C2:C5 for amount needed.
 
Upvote 0
How about like
+Fluff 1.xlsm
ABCDEFGHI
1Installer Nameamount orderedamount neededDaveBobJane
2Dave2520Total amount ordered257575
3Bob5036Total amount needed204867
4Jane7567Spare stock5278
5Bob2512
Main
Cell Formulas
RangeFormula
G2:I2G2=SUMIFS(B:B,A:A,G1:I1)
G3:I3G3=SUMIFS(C:C,A:A,G1:I1)
G4:I4G4=G2#-G3#
Dynamic array formulas.
 
Upvote 0
Solution
How about like
+Fluff 1.xlsm
ABCDEFGHI
1Installer Nameamount orderedamount neededDaveBobJane
2Dave2520Total amount ordered257575
3Bob5036Total amount needed204867
4Jane7567Spare stock5278
5Bob2512
Main
Cell Formulas
RangeFormula
G2:I2G2=SUMIFS(B:B,A:A,G1:I1)
G3:I3G3=SUMIFS(C:C,A:A,G1:I1)
G4:I4G4=G2#-G3#
Dynamic array formulas.
That is perfect..... thank you so much
just changed the column locations and it works a dream
formula now looks like.... =SUMIFS(Sheet2!D:D,Sheet2!C:C,B1:I1)
:)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,631
Messages
6,120,640
Members
448,974
Latest member
DumbFinanceBro

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