Adding a comma?

MN_Excel

Board Regular
Joined
Nov 8, 2010
Messages
153
I have a search formula that is working perfectly except for the fact that it comes back with an error when the number it is looking for is the last number in a cell. For example, if I search a cell for C7 and the cell has data of C4, C5, C6, and C7 it won't find C7 b/c there isn't a comma after it, which I have as a argument in my formula. In short, does anyone know how to add a comma at the end of each cell in a column?
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
One approach:

You can concatenate to append a , to each of your cells (using a helper column)
Then you could Copy and Paste Special Values from the helper column to your original column

Sheet1
AB
1C4, C5, C6, and C7C4, C5, C6, and C7,
2B4B4,
3D6, D7D6, D7,
4A9, B3, and D1A9, B3, and D1,
5B2, C4, D6B2, C4, D6,
6
7
8------------------------------------------------
9

<thead>
</thead><tbody>
</tbody>
Excel 2010

Worksheet Formulas
CellFormula
B1=+A1&","
B2=+A2&","
B3=+A3&","
B4=+A4&","
B5=+A5&","

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,219,161
Messages
6,146,657
Members
450,706
Latest member
LGVBPP

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