Need A Formula To Divide values Into Groups

CARBOB

Well-known Member
Joined
Jun 6, 2005
Messages
1,870
In column G are lexicon values ranging from 000001-376992. I would like to break them into groups of 1000, starting with A1 for the first 1000; A2, 1001-2000.
Excel Workbook
BCDEFGH
112345000001A
212346000002A
312347000003A
412348000004A
F5 COMBOS
Excel 2007
Cell Formulas
RangeFormula
G1=COMBIN(36,5)-IF(33-$B1>0,COMBIN(36-$B1,5),0)-IF(33-$C1>0,COMBIN(36-$C1,4),0)-IF(34-$D1>0,COMBIN(36-$D1,3),0)-IF(35-$E1>0,COMBIN(36-$E1,2),0)-IF(36-$F1>0,COMBIN(36-$F1,1))
G2=COMBIN(36,5)-IF(33-$B2>0,COMBIN(36-$B2,5),0)-IF(33-$C2>0,COMBIN(36-$C2,4),0)-IF(34-$D2>0,COMBIN(36-$D2,3),0)-IF(35-$E2>0,COMBIN(36-$E2,2),0)-IF(36-$F2>0,COMBIN(36-$F2,1))
G3=COMBIN(36,5)-IF(33-$B3>0,COMBIN(36-$B3,5),0)-IF(33-$C3>0,COMBIN(36-$C3,4),0)-IF(34-$D3>0,COMBIN(36-$D3,3),0)-IF(35-$E3>0,COMBIN(36-$E3,2),0)-IF(36-$F3>0,COMBIN(36-$F3,1))
G4=COMBIN(36,5)-IF(33-$B4>0,COMBIN(36-$B4,5),0)-IF(33-$C4>0,COMBIN(36-$C4,4),0)-IF(34-$D4>0,COMBIN(36-$D4,3),0)-IF(35-$E4>0,COMBIN(36-$E4,2),0)-IF(36-$F4>0,COMBIN(36-$F4,1))
H1=SUBSTITUTE(ADDRESS(1,(G1-1)/1000+1,4),"1","")
H2=SUBSTITUTE(ADDRESS(1,(G2-1)/500+1,4),"1","")
H3=SUBSTITUTE(ADDRESS(1,(G3-1)/500+1,4),"1","")
H4=SUBSTITUTE(ADDRESS(1,(G4-1)/500+1,4),"1","")
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
In column G are lexicon values ranging from 000001-376992. I would like to break them into groups of 1000.

000001-001000=A1
001001-002000=A2
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,828
Members
452,946
Latest member
JoseDavid

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