How to capter enter key from excel cell

sarsukanth

Board Regular
Joined
Jun 21, 2010
Messages
56
Hi,

I want to capter enter key and know in which possition it is there, from one excel cell, is it possible, if yes please tell me the excel formula.
thank U for your support.

Best Regards,
Raghukanth
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
An Excel cell can't contain an 'Enter key': when you press Enter, it doesn't get added to the contents of the cell, it merely confirms the entry of the data into the cell.

Do you mean a linefeed character? Do you have a cell with multiple lines in it, separated by linefeeds?

If not, what exactly are you trying to do?
 
Upvote 0
Hi Ruddles,

exactly...! now i want to capture that linefeed.
is it possible? if yes please give the formula.
and is there any formula that will give the ascii value of given character in the excel?
please reply my queries, thankU for your support.


Raghukanth
 
Upvote 0
Linefeed is CHAR(10) so if you want to find a linefeed in cell A1, you would use this formula:-
Code:
=FIND(CHAR(10),A1)
The bit before the linefeed would therefore be:-
Code:
=LEFT(A1,FIND(CHAR(10),A1)-1)
And the bit after it would be:-
Code:
=MID(A1,FIND(CHAR(10),A1)+1,255)
 
Upvote 0

Forum statistics

Threads
1,224,525
Messages
6,179,319
Members
452,905
Latest member
deadwings

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