Repeating rows based on cell value

Russk68

Well-known Member
Joined
May 1, 2006
Messages
589
Office Version
  1. 365
Platform
  1. MacOS
Hi
Here's an example of what I am trying to do.
Column AE is just an id 1:150
Column AG is instances of each id.
Column AH is where I need each instance of the ID to appear.
An id with no instances do not appear in the list.
Your help is greatly appreciated!


IHeart PBLocation.xlsm
AEAGAH
3111
4212
5313
6414
7525
8615
9706
10818
11919
1210110
1311111
1412112
1513113
1614114
1715215
1816215
1917216
2018016
2119117
2220117
2321119
Patch By LOCATION
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Could you use something like this?

21 10 11.xlsm
AEAGAH
3111
4212
5313
6414
7525
8615
9706
10818
11919
1210110
1311111
1412112
1513113
1614114
1715215
1816215
1917216
2018016
2119117
2220117
2321119
2420
2521
26 
27 
IDs
Cell Formulas
RangeFormula
AH3:AH27AH3=IFERROR(IF(COUNTIF(AH$2:AH2,AH2)=IFNA(VLOOKUP(AH2,AE$3:AG$23,3,0),0),AGGREGATE(15,6,AE$3:AE$23/((AE$3:AE$23>AH2)*(AG$3:AG$23>0)),1),AH2),"")
 
Upvote 0
Solution
You can click on the "Tick Mark" to the right of the post that helped you the most.
 
Upvote 0

Forum statistics

Threads
1,214,978
Messages
6,122,549
Members
449,089
Latest member
davidcom

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