Convert random 3-digit number to it's smaller 3-digit boxed form

mft38Excel

New Member
Joined
Jan 22, 2022
Messages
8
Office Version
  1. 2016
  2. 2007
Platform
  1. Windows
I need to convert a 3-digit straight number to it's smaller 3-digit boxed number counterpart. There are 1,000 straight numbers in sequential order from 0 to 999. There are only 220 boxed numbers. Boxed numbers are unique in that their 3-digits are mostly in ascending sequential order, like 123 or 567. The exceptions are triplets, like 000 and 999 which have no order. The formula should match or find the boxed number that goes with the straight number.
 

Attachments

  • Convert-Random-Number-to-Boxed-Number.JPG
    Convert-Random-Number-to-Boxed-Number.JPG
    130.3 KB · Views: 18
The problem is that you numbers in col E are not all 3 digit numbers.
Did you try my suggestion, that caters for that?
 
Upvote 0

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
This XL2BB did not capture as I intended. Text boxes caused column F to over extend and Text boxes to disappear.
 
Upvote 0
The textboxes as you call them are still there, you just need to scroll over to see them.
But does not change the reason why the formula is failing.
 
Upvote 0
Another possible option (although Rick's is simpler)
Excel Formula:
=TEXT(SUM(10^{2,1,0}*AGGREGATE(15,6,MID(TEXT(E2,"000"),{1,2,3},1)+0,{1,2,3})),"000")
I copied original table and changed my "straight" field [E54] from numeric to text so the formula could reference it but it gives no results. What am I missing?

3-Digits-Straights-convert-to-Boxed.xlsx
ABCDEFG
53seq_nostrai_1strai_2strai_3straightboxed
540001410410#######014
5500020000000
56000301515
57000402424
58000503333
59000604242
60000705151015
61000806060
620009105105
630010150150
640011303303
650012321321
660013330330
670014501501
680015510510
3 straights to 3 boxed
Cell Formulas
RangeFormula
F54F54=TEXT(SUM(10^{2,1,0}*AGGREGATE(15,6,MID(TEXT(E54,"000"),{1,2,3},1)+0,{1,2,3})),"000")
 
Upvote 0
You may need to confirm the formula with Ctrl Shift Enter rather than just Enter.
 
Upvote 0
Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Convert 3-digit straight lotto number to 3-digit boxed lotto number [SOLVED]
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,939
Members
449,094
Latest member
teemeren

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