Subtotal formula from a different sheet

Tocix

New Member
Joined
Apr 17, 2016
Messages
48
Office Version
  1. 365
Good morning All,


I'm seeking for a subtotal formula that uses sheet 2's cell data. For instance, the subtotal will appear on M2 if cell B2 matches cell data on sheet 2. I've tried =COUNTIF(Sheet2!A2:A900, B2) it only gave me total of 3 rather than 840. I hope that makes sense. Thanks for checking.

Sheet1

BM
John840
Cindy400







Sheet2

Name completed
John415
John100
John325
Cindy400
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
You need to use sumifs like
Excel Formula:
=Sumifs(Sheet2!B2:B900,Sheet2!A2:A900, B2)
 
Upvote 0
Solution
OMG!!! Thank you very much, kind sir. You save me tons of time:)
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,242
Messages
6,123,830
Members
449,127
Latest member
Cyko

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