delete text after comma

Vanda_a

Well-known Member
Joined
Oct 29, 2012
Messages
934
hello all.
please help me solve this thing.

how can I delete text after a comma.

from this 638264,1 to 638264

another question. this "&" is to join two or more cells. what is the opposite of that function?

A
B
C
18768,1
,1
8768
2
1683,34
,34
1683

<tbody>
</tbody>
A-B=C

Thank you in advance.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Try:

=RIGHT(A1,LEN(A1)-FIND(",",A1)+1)
=LEFT(A1,FIND(",",A1)-1)

Excel doesn't have the equivalent of VBA's Split function (unfortunately).
 
Upvote 0
Hi.

how can I delete text after a comma.

<table border='1' cellspacing='0' cellpadding='2' valign='middle' colspan='3' style='font-family:Calibri; color:#000000; background-color:#FFFFFF; font-size:11px; font-weight:normal; font-style:normal; '><colgroup><col width='28pt'><col width='60pt'><col width='60pt'></colgroup><tr style='background-color:#cacaca'><td> </td><td align='middle'>A</td><td align='middle'>B</td></tr><tr><td style='background-color:#cacaca' align='middle'>1</td><td align='right' >8768,1</td><td align='right' >8768</td></tr><tr><td style='background-color:#cacaca' align='middle'>2</td><td align='right' >1683,5</td><td align='right' >1683</td></tr><tr><td style='background-color:#cacaca' align='middle'>3</td><td align='right' >12345,999</td><td align='right' >12345</td></tr></table><br><table border='3' cellspacing='0' cellpadding='2' valign='middle' colspan='2' style='table-layout:auto; color:#000000; background-color:#FFFFFF; font-family:Calibri; font-size:10px;'><colgroup><col width='40pt'><col></colgroup><tr style='background-color:#eeaaaa'><td>Cell</td><td>Formula</td></tr><tr><td>B1</td><td><Span style='color:#222222'>=INT</Span><Span style='color:#0000DD'>(A1)</Span><Span style='color:#222222'></Span></td></tr></table>
 
Upvote 0
Other options
how can I delete text after a comma.

from this 638264,1 to 638264
1. Select the column.
2. Use Find/Replace with Find what: ,* Replace with: leave blank, In Options>> ensure 'Match entire cell contents' is not checked, Replace All



another question. this "&" is to join two or more cells. what is the opposite of that function?
Have a look in Excel's built-in Help for "Text to Columns" (with delimiter)
 
Upvote 0
Other options
1. Select the column.
2. Use Find/Replace with Find what: ,* Replace with: leave blank, In Options>> ensure 'Match entire cell contents' is not checked, Replace All


Have a look in Excel's built-in Help for "Text to Columns" (with delimiter)


Many thanks. I have tried it but the problem is after replace, all the numbers go 3.35E+12. It leaded me to come here....
 
Upvote 0
Hi.



AB
18768,18768
21683,51683
312345,99912345

<colgroup><col style="width: 28ptpx"><col width="60pt"><col width="60pt"></colgroup><tbody>
</tbody>

CellFormula
B1=INT(A1)

<colgroup><col style="width: 40ptpx"><col></colgroup><tbody>
</tbody>

I have tried =INT(A1). The result is like this #VALUE!

Many thanks
 
Upvote 0

Forum statistics

Threads
1,214,784
Messages
6,121,538
Members
449,038
Latest member
Guest1337

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