Need to find 22 of the smallest numbers to populate a table

keranali

Rules Violation
Joined
Oct 4, 2010
Messages
234
Office Version
  1. 365
Platform
  1. Windows
Need to find 22 of the smallest numbers to populate a table R1 R2 and R3 listing from the least to the largest placing them in the 22 lowest table. Also is there a way to simplify my countif's formulas


the project.xlsx
EFGHIJ
5Number Frequency
6#1R1#2R2#3R3
7161314256
8281412264
93101592711
10410166288
11510177297
1261018123014
13781912317
148920123211
159721123310
16101422103412
1711132343513
18129248369
19
2022 Lowest
21
22
23
24
Overview
Cell Formulas
RangeFormula
F7F7=COUNTIF(Data!D:D,1)
F8F8=COUNTIF(Data!D:D,2)
F9F9=COUNTIF(Data!D:D,3)
F10F10=COUNTIF(Data!D:D,4)
F11F11=COUNTIF(Data!D:D,5)
F12F12=COUNTIF(Data!D:D,6)
F13F13=COUNTIF(Data!D:D,7)
F14F14=COUNTIF(Data!D:D,8)
F15F15=COUNTIF(Data!D:D,9)
F16F16=COUNTIF(Data!D:D,10)
F17F17=COUNTIF(Data!D:D,11)
F18F18=COUNTIF(Data!D:D,12)
H7H7=COUNTIF(Data!D:D,13)
H8H8=COUNTIF(Data!D:D,14)
H9H9=COUNTIF(Data!D:D,15)
H10H10=COUNTIF(Data!D:D,16)
H11H11=COUNTIF(Data!D:D,17)
H12H12=COUNTIF(Data!D:D,18)
H13H13=COUNTIF(Data!D:D,19)
H14H14=COUNTIF(Data!D:D,20)
H15H15=COUNTIF(Data!D:D,21)
H16H16=COUNTIF(Data!D:D,22)
H17H17=COUNTIF(Data!D:D,23)
H18H18=COUNTIF(Data!D:D,24)
J7J7=COUNTIF(Data!D:D,25)
J8J8=COUNTIF(Data!D:D,26)
J9J9=COUNTIF(Data!D:D,27)
J10J10=COUNTIF(Data!D:D,28)
J11J11=COUNTIF(Data!D:D,29)
J12J12=COUNTIF(Data!D:D,30)
J13J13=COUNTIF(Data!D:D,31)
J14J14=COUNTIF(Data!D:D,32)
J15J15=COUNTIF(Data!D:D,33)
J16J16=COUNTIF(Data!D:D,34)
J17J17=COUNTIF(Data!D:D,35)
J18J18=COUNTIF(Data!D:D,36)
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
## Correction ... Need to find 22 of the smallest numbers to populate 22 lowest table. R1 R2 and R3 listing from the least to the largest placing the adjacent #1 #2 and #3 numbers in the 22 lowest table. Also is there a way to simplify my countif's formulas
 
Upvote 0
Please modify your profile to indicate what version of Excel you run.
 
Upvote 0
It's also unclear what's in column D. What is the answer you want from this sample used an an example?
 
Upvote 0
It's also unclear what's in column D. What is the answer you want from this sample used an an example?
Sure please see a sample of it manually

the project.xlsx
ABCDEFGHIJ
1
2Entries
324BetaSubmit
4
524Number Frequency
6#1R1#2R2#3R3
7161314256
8281412264
93101592711
10410166288
11Frequently Related510177297
12FrequencyReverseForward61018123014
13781912317
148920123211
159721123310
16101422103412
1711132343513
18129248369
19
2022 Lowest
212326116259
221729312724
232882428812
2415363456
Overview
Cell Formulas
RangeFormula
B5B5=B3
F7F7=COUNTIF(Data!D:D,1)
F8F8=COUNTIF(Data!D:D,2)
F9F9=COUNTIF(Data!D:D,3)
F10F10=COUNTIF(Data!D:D,4)
F11F11=COUNTIF(Data!D:D,5)
F12F12=COUNTIF(Data!D:D,6)
F13F13=COUNTIF(Data!D:D,7)
F14F14=COUNTIF(Data!D:D,8)
F15F15=COUNTIF(Data!D:D,9)
F16F16=COUNTIF(Data!D:D,10)
F17F17=COUNTIF(Data!D:D,11)
F18F18=COUNTIF(Data!D:D,12)
H7H7=COUNTIF(Data!D:D,13)
H8H8=COUNTIF(Data!D:D,14)
H9H9=COUNTIF(Data!D:D,15)
H10H10=COUNTIF(Data!D:D,16)
H11H11=COUNTIF(Data!D:D,17)
H12H12=COUNTIF(Data!D:D,18)
H13H13=COUNTIF(Data!D:D,19)
H14H14=COUNTIF(Data!D:D,20)
H15H15=COUNTIF(Data!D:D,21)
H16H16=COUNTIF(Data!D:D,22)
H17H17=COUNTIF(Data!D:D,23)
H18H18=COUNTIF(Data!D:D,24)
J7J7=COUNTIF(Data!D:D,25)
J8J8=COUNTIF(Data!D:D,26)
J9J9=COUNTIF(Data!D:D,27)
J10J10=COUNTIF(Data!D:D,28)
J11J11=COUNTIF(Data!D:D,29)
J12J12=COUNTIF(Data!D:D,30)
J13J13=COUNTIF(Data!D:D,31)
J14J14=COUNTIF(Data!D:D,32)
J15J15=COUNTIF(Data!D:D,33)
J16J16=COUNTIF(Data!D:D,34)
J17J17=COUNTIF(Data!D:D,35)
J18J18=COUNTIF(Data!D:D,36)
Cells with Data Validation
CellAllowCriteria
B3List=Stats!$B$1:$AK$1
C3List=Repo!$A$1:$A$4
 
Upvote 0
This maybe a clearer picture of what i am trying to achieve in the 24 lowest table

the project.xlsx
EFGHIJ
5Number Frequency
6#1R1#2R2#3R3
7161314256
8281412265
93101592711
10410166289
11510177297
1261018123015
13781912317
148920123211
159721123310
16101422103412
1711132343513
181292483610
19
2024 Lowest
2123426516
2216625697
23177297317
24
25
26
27
28
Overview
Cell Formulas
RangeFormula
F7F7=COUNTIF(Data!D:D,1)
F8F8=COUNTIF(Data!D:D,2)
F9F9=COUNTIF(Data!D:D,3)
F10F10=COUNTIF(Data!D:D,4)
F11F11=COUNTIF(Data!D:D,5)
F12F12=COUNTIF(Data!D:D,6)
F13F13=COUNTIF(Data!D:D,7)
F14F14=COUNTIF(Data!D:D,8)
F15F15=COUNTIF(Data!D:D,9)
F16F16=COUNTIF(Data!D:D,10)
F17F17=COUNTIF(Data!D:D,11)
F18F18=COUNTIF(Data!D:D,12)
H7H7=COUNTIF(Data!D:D,13)
H8H8=COUNTIF(Data!D:D,14)
H9H9=COUNTIF(Data!D:D,15)
H10H10=COUNTIF(Data!D:D,16)
H11H11=COUNTIF(Data!D:D,17)
H12H12=COUNTIF(Data!D:D,18)
H13H13=COUNTIF(Data!D:D,19)
H14H14=COUNTIF(Data!D:D,20)
H15H15=COUNTIF(Data!D:D,21)
H16H16=COUNTIF(Data!D:D,22)
H17H17=COUNTIF(Data!D:D,23)
H18H18=COUNTIF(Data!D:D,24)
J7J7=COUNTIF(Data!D:D,25)
J8J8=COUNTIF(Data!D:D,26)
J9J9=COUNTIF(Data!D:D,27)
J10J10=COUNTIF(Data!D:D,28)
J11J11=COUNTIF(Data!D:D,29)
J12J12=COUNTIF(Data!D:D,30)
J13J13=COUNTIF(Data!D:D,31)
J14J14=COUNTIF(Data!D:D,32)
J15J15=COUNTIF(Data!D:D,33)
J16J16=COUNTIF(Data!D:D,34)
J17J17=COUNTIF(Data!D:D,35)
J18J18=COUNTIF(Data!D:D,36)
 
Upvote 0
After vertically stacking the numbers 1-36 (in L) and the corresponding frequencies in M, I sorted based on the M column.

Then, I used this:

Book1
EFGHIJ
6#1R1#2R2#3R3
7161314256
8281412265
93101592711
10410166288
11510177297
1261018123014
13781912317
148920123211
159721123310
16101422103412
1711132343513
18129248369
19
2023426516
2116625697
22177297317
232878248
Sheet2
Cell Formulas
RangeFormula
E20:F23E20=INDEX(L1:L36,1+2*(ROW()-20))
G20:H23G20=INDEX(L1:L36,2+2*(ROW()-20))
I20:J23I20=INDEX(L1:L36,3+2*(ROW()-20))


For some reason XL2BB isn't showing the calulcations in the 2, 4, and 6 columns.

F20 is
Code:
=INDEX(M1:M36,1+2*(ROW()-20))
and filled down.
H20 is
Code:
=INDEX(M1:M36,2+2*(ROW()-20))
filled down. and J is 3 + etc.
 
Upvote 1
Solution

Forum statistics

Threads
1,216,031
Messages
6,128,424
Members
449,450
Latest member
gunars

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