COUNTIF with several criteria

Akbarov

Active Member
Joined
Jun 30, 2018
Messages
296
Office Version
  1. 365
Platform
  1. Windows
Hey Dear community,

I have very big data, where i need to count income based on markets, but there are some group of markets in my list with different names, i have already grouped them. ( for example N-market 1 , N-market 2 , N-market 3 )

So all N-markets are in A2:A10

How can i ask excel to sum total income of markets listed in A2:A10 ?

income is in D:D
 
Last edited:

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

shaowu459

Well-known Member
Joined
Apr 26, 2018
Messages
624
Office Version
  1. 365
Platform
  1. Windows
Code:
=SUM(SUMIF(C:C,A2:A10,D:D))
Ctrl+Shift+Enter
 
Upvote 0

shaowu459

Well-known Member
Joined
Apr 26, 2018
Messages
624
Office Version
  1. 365
Platform
  1. Windows
please describe your original data clearly, or upload a picture of your data, including row and column headers.
 
Upvote 0

Akbarov

Active Member
Joined
Jun 30, 2018
Messages
296
Office Version
  1. 365
Platform
  1. Windows
Incomes are in E:E
All Market names are in D:D
Names of markets starting with N-market 1 , N-market 2 , N-market 3 are in A2:A10

List is very huge is there any other way instead of array?
 
Last edited:
Upvote 0

shaowu459

Well-known Member
Joined
Apr 26, 2018
Messages
624
Office Version
  1. 365
Platform
  1. Windows
=SUM(SUMIF(D:D,A2:A10,E:E))

apply Ctrl shift enter, not just enter
 
Upvote 0

Akbarov

Active Member
Joined
Jun 30, 2018
Messages
296
Office Version
  1. 365
Platform
  1. Windows
it works thank you very much, but is there any way without array?
 
Upvote 0

shaowu459

Well-known Member
Joined
Apr 26, 2018
Messages
624
Office Version
  1. 365
Platform
  1. Windows
use a helper column maybe a better way.

B2=SUMIF(D:D,A2,E:E)

copy formula down to B10, and in B11 enter:=sum(B2:B10)
 
Upvote 0

Forum statistics

Threads
1,186,990
Messages
5,960,978
Members
438,507
Latest member
nas_dan

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
Top