Automatically Generate Numbers based on 2 values

WendyHubard

New Member
Joined
Apr 4, 2017
Messages
29
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hello Experts,

I work with the Criminal Justice system and we are trying to generate a spreadsheet that will populate as below. There would be a single value for "number of sets" and multiple numbers for "Exhibit Number" - These values would then be used to populate the "Results Generated" column. Any help greatly appreciated. The spreadsheet would then be used with a mail merge document to produce labels for Photo's (have got that parted nutted out) Thanks in advance

Number Of SetsExhibit NumberResults Generated
5​
1​
1​
34​
1​
99​
1​
etc
1​
1​
34​
34​
34​
34​
34​
99​
99​
99​
99​
99​
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
@WendyHubard You may need to tweak your required ranges but maybe something like below?

MrExcel July.xlsm
ABC
1SetsExhibit #Result
2511
3341
4991
51
61
734
834
934
1034
1134
1299
1399
1499
1599
1699
17 
18 
19 
20 
Sheet3
Cell Formulas
RangeFormula
C2:C20C2=IF($A$2*COUNTA(B$2:B$200)<ROWS(A$2:A2),"",INDEX(B$2:B200,ROUNDUP(ROWS(A$2:A2)/$A$2,)))
 
Upvote 1
Solution
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
Is this a repeat of this question?
Hi Pete, Have updated my details. AND. it's a different question. The original one was where the user could enter the sequential photo numbers. THey also need to be able to enter selective photo numbers (these numbers are generated by the Police system and come in different formats). I now have solutions to both scenarios with the help of the awesome guru's.
 
Upvote 0
Hi Pete, Have updated my details. AND. it's a different question.
OK, thanks.

With 365, here is another option (only requires the formula in the top cell).

23 07 09.xlsm
ABC
1SetsExhibit #Result
2511
3341
4991
51
61
734
834
934
1034
1134
1299
1399
1499
1599
1699
17
Sheet2 (2)
Cell Formulas
RangeFormula
C2:C16C2=INDEX(B2:B4,SEQUENCE(ROWS(B2:B4)*A2,,,1/A2))
Dynamic array formulas.
 
Upvote 0
Thanks Pete, Muchly appreciated. The poor folks who work within our Justice system are running Excel 2016... and from my extremely limited and vague knowledge... that version is void of supporting the "sequence" function. (a major detail I failed to mention when submitting this post). I have made a note of your formula in hope they find some funds and do an upgrade and crawl out of their cave. THanks again, appreciate your help
 
Upvote 0
Yes, if you need a solution in a particular version, of course you have to tell us.
 
Upvote 0

Forum statistics

Threads
1,215,281
Messages
6,124,045
Members
449,139
Latest member
sramesh1024

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