Nest formula.

serge

Well-known Member
Joined
Oct 8, 2008
Messages
1,399
Office Version
  1. 2007
Platform
  1. Windows
I'm looking for a formula that can nest multiple numbers within.
For example if I type 200 in A1 it will return in B1:E1 ( 3,15,62,73 ) in separated cells, if I type 101 in A1 it would return in B1:C1 ( 1,5 ) etc…

Reference :
200 : 3,15,62,73
110 : 7,8,36,42,56
101 : 1,5

258.PNG
 
Try a pair of Auxiliary Columns.
The formula in B2 and copy down and to the right

Dante Amor
ABCDEFGHIJKL
1Auxiliary columns
22003156273   2003,15,62,73
340012345671107,8,36,42,56
410115     1011,5
511078364256  4001,2,3,4,5,6,7
Hoja7
Cell Formulas
RangeFormula
B2:H5B2=TRIM(MID(SUBSTITUTE(VLOOKUP($A2,$K$1:$L$9,2,0),",",REPT(" ",99)),99*(COLUMNS($B$1:B1)-1)+1,99))
 
Upvote 0

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Hi CA_Punit, Thank you very much for your formula it works well, Appreciate your help.
 
Upvote 0
Try a pair of Auxiliary Columns.
The formula in B2 and copy down and to the right

Dante Amor
ABCDEFGHIJKL
1Auxiliary columns
22003156273   2003,15,62,73
340012345671107,8,36,42,56
410115     1011,5
511078364256  4001,2,3,4,5,6,7
Hoja7
Cell Formulas
RangeFormula
B2:H5B2=TRIM(MID(SUBSTITUTE(VLOOKUP($A2,$K$1:$L$9,2,0),",",REPT(" ",99)),99*(COLUMNS($B$1:B1)-1)+1,99))
 
Upvote 0
Thank you DanteAmor, your formula works great too, Thank you for the precious help, needed those formulas.
 
Upvote 0

Forum statistics

Threads
1,213,497
Messages
6,114,002
Members
448,543
Latest member
MartinLarkin

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