ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   extracting after a symbol (https://www.excelbanter.com/excel-discussion-misc-queries/108120-extracting-after-symbol.html)

A.S.

extracting after a symbol
 
what would be the correct formula to use to extract before or after a
specific character.

For example, if one cell has "Afghanistan=AF". I need to extract everything
before the "=", so that the next cell will just read "Afghanistan". Thanks.

A.S.

extracting after a symbol
 
Also need help in extracting after the "=" so that the cell after will ready
"AF". Thanks

"A.S." wrote:

what would be the correct formula to use to extract before or after a
specific character.

For example, if one cell has "Afghanistan=AF". I need to extract everything
before the "=", so that the next cell will just read "Afghanistan". Thanks.


Allllen

extracting after a symbol
 
=LEFT(A1,FIND("=",A1)-1)

=RIGHT(A1,LEN(A1)-FIND("=",A1))

if your Afghanistan=AF is in cell A1

HTH
--
Allllen


"A.S." wrote:

Also need help in extracting after the "=" so that the cell after will ready
"AF". Thanks

"A.S." wrote:

what would be the correct formula to use to extract before or after a
specific character.

For example, if one cell has "Afghanistan=AF". I need to extract everything
before the "=", so that the next cell will just read "Afghanistan". Thanks.


T Kirtley

extracting after a symbol
 
You can use functions like the following for a text string stored in cell A1:

=LEFT(A1,FIND("=",A1)-1)

=RIGHT(A1,LEN(A1)-FIND("=",A1))

Hope that helps,

TK

"A.S." wrote:

Also need help in extracting after the "=" so that the cell after will ready
"AF". Thanks

"A.S." wrote:

what would be the correct formula to use to extract before or after a
specific character.

For example, if one cell has "Afghanistan=AF". I need to extract everything
before the "=", so that the next cell will just read "Afghanistan". Thanks.



All times are GMT +1. The time now is 04:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com