Formula Help Please

How_Do_I

Well-known Member
Joined
Oct 23, 2009
Messages
1,843
Office Version
  1. 2010
Platform
  1. Windows
In Column B there can be a maximum of 12 unique numbers.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> </o:p>
D1 is a count of how many numbers in Column B
<o:p> </o:p>
In F1 I need a formula that will work regardless of how many of my 12 numbers are in Column B.
<o:p> </o:p>
So if I place 40 in B3, I would want F1 to = 23, 32, 40
<o:p> </o:p>
Can this be done please?

Excel Workbook
ABCDEF
1123223, 32
2232
33
44
55
66
77
88
99
1010
1111
1212
Sheet1
 
Upvote 0

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hi Gus,

First non of the codes are mine, I wish. :rolleyes: :biggrin:
To do what you ask, use the code by ZVI, posted by MrKowz, in post #13, like this.
Excel Workbook
ABCD
1EmployeesStationary
2234PenPen, Pad, Pen, Pen, Paper, Paper, Pin, Pad, Pin, Printer, Printer
3234Pad
4345PenEmployeesTotal Assets
5654Pen234Pen, Pad, Pin, Printer
6645Paper
7567Paper
8567Pin
9345Pad
10234Pin
11234Printer
12645Printer
Sheet1
Excel 2010
Cell Formulas
RangeFormula
D2=AConcat(B2:B12,", ")
#VALUE!
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
 
Upvote 0
Using the other version,
Excel Workbook
ABCD
1EmployeesStationary
2234Pen
3234Pad
4345PenEmployeesTotal Assets
5654Pen234Pen,Pad,Pin,Printer,
6645Paper
7567Paper
8567Pin
9345Pad
10234Pin
11234Printer
12645Printer
Sheet


It's worth noting that if you have MOREFUNC installed, then you already have MCONCAT, which is, as far as I can see, identical to aconcat.

That said, I think I'll be using ZVI's concatif from now on, it removes the trailing delimiter which the others leave behind, so looks much neater.
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,151
Members
452,891
Latest member
JUSTOUTOFMYREACH

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