Help with Count occurrence and ignore if already exist based on criteria.

Lukma

Board Regular
Joined
Feb 12, 2020
Messages
249
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
Hi guys

Hope you all are doing just great, Please I have a slight issue and how to get around this

Am trying to count Column column A and I need my result in Column B based on the criteria
Example of what I need:
in column A I have 1 repeated twice, so I will need column B to count as 2 and when i drag down I need the next to be blank
I need the same result as this on the table

Appreciate your support
RangeCount
1​
2​
1​
2​
1​
3​
1​
4​
2​
4​



Data build up for Presentation( 23)update.xlsx
AB
132 Count
13312
13412
13521
13631
13742
13842
2023_Data_Vessel_Trip
Cell Formulas
RangeFormula
A132:A138A132=IFERROR(MATCH(DAY(H132),{1,8,15,22,29}),"")
B133:B138B133=SUMPRODUCT(($A$133:$A$138=$A133)*($A$133:$A$138>0))
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
You can try :
Book2
AB
1RangeCount
212
31 
421
531
642
74 
Sheet1
Cell Formulas
RangeFormula
B2:B7B2=IF(A2<>A1,COUNTIF($A$2:$A$7,A2),"")
 
Upvote 0
Solution

Forum statistics

Threads
1,216,500
Messages
6,131,016
Members
449,615
Latest member
Nic0la

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