Count number of recurrences

dabon

New Member
Joined
Oct 9, 2022
Messages
10
Office Version
  1. 2019
Platform
  1. Windows
Hi,
I'm sure that it's very easy question and there is an easy way to do that, but I don't know why now it's not in my mind.
Look the image attached. For each cell, I would use an excel formula that allows to get the values on Table2 starting from Table1. I don't want to use a pivot table.

Thanks
 

Attachments

  • Table.jpg
    Table.jpg
    18.4 KB · Views: 5
Last edited:

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
not sure what criteria you are using
just seems to be a unique list of column A - Value 1

as you have 2019 - no UNQUE() function
so

=IFERROR(INDEX($A$3:$A$11, MATCH(0,COUNTIF($D$2:D2, $A$3:$A$11), 0)),"")
should do that

Book2
ABCD
1
2
3aa
4bb
5cc
6a 
7a 
8c 
9b 
10b 
11c 
12a 
13a 
14a
15a
16
Sheet1
Cell Formulas
RangeFormula
D3:D13D3=IFERROR(INDEX($A$3:$A$15, MATCH(0,COUNTIF($D$2:D2, $A$3:$A$15), 0)),"")
 
Upvote 0
Hi,
I'm sure that it's very easy question and there is an easy way to do that, but I don't know why now it's not in my mind.
Look the image attached. For each cell, I would use an excel formula that allows to get the values on Table2 starting from Table1. I don't want to use a pivot table.

Thanks

I believe this is what you after

assuming points below
Table1 data is in column A and B
Table2 data is in column D and row 1

insert below formula in E1 cell
Excel Formula:
=COUNTIFS($A$1:$A$8,$D2,$B$1:$B$8,E$1)

del.JPG
 
Upvote 0
Solution
ignore my post, as you seem to have edited you requirement - after i posted - makes more sense now

anand3dinesh

has a solution that seems to work ok

Book2
ABCDEFG
1
2an nsx
3bsa421
4cxb120
5anc003
6as
7cx 
8bn 
9bs 
10cx 
11an 
12as 
13ax 
14an
15
Sheet1
Cell Formulas
RangeFormula
D2D2=IFERROR(INDEX($A$2:$A$14, MATCH(0,COUNTIF(#REF!, $A$2:$A$14), 0)),"")
E3:G5E3=COUNTIFS($A$1:$A$14,$D3,$B$1:$B$14,E$2)
D7D7=IFERROR(INDEX($A$2:$A$14, MATCH(0,COUNTIF($D$2:D5, $A$2:$A$14), 0)),"")
D8:D13D8=IFERROR(INDEX($A$2:$A$14, MATCH(0,COUNTIF($D$2:D7, $A$2:$A$14), 0)),"")
 
Upvote 0
Thanks to all. I was not using the COUNTIFS formula in correct way.

Thanks;)
 
Upvote 0

Forum statistics

Threads
1,215,063
Messages
6,122,935
Members
449,094
Latest member
teemeren

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