Automatically fill in cell with a number

Deanyg1989

New Member
Joined
Mar 9, 2018
Messages
2
Hi there I am currently looking for help with the following, I have spent two days looking at it and it is blowing my mind, I think it’s simple but clearly not.
I have the following letters in column D ‘A, B, C, D and E.’ In column I I have the following. ‘WTS+, WTS, EXS, GDS’
All I want to do is in cell N4, count the number of people who in column D have A and column I have WTS+.
Then in N5 the number of people with B and WTS+ in N6 the number of people with C and WTS+z etc etc. Once I know how to do one of them or the van for one I can then change it and add all scenarios.


Thanks in advance
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Try this:
Code:
=COUNTIFS($D:$D,"A",$I:$I,"WTS+")

You'll just have to change the "A" and the "WTS+" and it should work for the rest of your table
 
Upvote 0
Hi,

This formula will automatically change the first condition (A, B, C, D, E) as you copy the formula down Column N:


Excel 2010
DIN
1AWTS+
2BWTS
3CEXS
4DGDS1
5EWTS+0
60
70
81
Sheet17
Cell Formulas
RangeFormula
N4=COUNTIFS(D$1:D$5,CHOOSE(ROW(A1),"A","B","C","D","E"),I$1:I$5,"WTS+")
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

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