Start Count from first row of value appear to up

ibmy

Board Regular
Joined
Mar 4, 2020
Messages
136
Office Version
  1. 2016
Platform
  1. Windows
Hi,

Sample data :

2.1.xlsb
DEFGHIJKL
1ABACount in B
27.61.221.31
38.91.31.390
411.71.73
51.31.221.224
6121.90
71.391.3
84.21.3
91.31.3
104.21.7
111.31.7
121.71.22
131.31.7
141.71.22
151.221.3
161.222
171.91.22
181.92
sample

Explanation:

H2 value is 1.3 . Find value 1.3 in column D. Value 1.3 appear in D5, D9, D11, D13.
Value 1.3 in D5 is choose because it happen first.
Then count value 1.3 in Column E starting from row it happen in column D which is row 5 so count in E5 to E2

Expected result in Column L

p/s: Real data ranging from 1000-3000 rows
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
How about
Excel Formula:
=COUNTIFS($B$2:INDEX(B:B,MATCH(E2,A:A,0)),E2)
 
Upvote 1
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,226,460
Messages
6,191,165
Members
453,643
Latest member
adamb83

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