# COUNTIF with several criteria

#### Akbarov

##### Active Member
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
Code:
``=SUM(SUMIF(C:C,A2:A10,D:D))``
Ctrl+Shift+Enter

#### Akbarov

##### Active Member
Thanks for reply but not working :/

#### shaowu459

##### Well-known Member
please describe your original data clearly, or upload a picture of your data, including row and column headers.

#### Akbarov

##### Active Member
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:

#### shaowu459

##### Well-known Member
=SUM(SUMIF(D:D,A2:A10,E:E))

apply Ctrl shift enter, not just enter

#### Akbarov

##### Active Member
it works thank you very much, but is there any way without array?

#### shaowu459

##### Well-known Member
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)

Replies
4
Views
622
Replies
6
Views
139
Replies
0
Views
256
Replies
35
Views
625
Replies
9
Views
418

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

### 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