ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Inconsistant character spaces extraction formula (https://www.excelbanter.com/excel-discussion-misc-queries/162775-inconsistant-character-spaces-extraction-formula.html)

Sneilan

Inconsistant character spaces extraction formula
 
The following type of data are listed in a column of cells:
Mon 1:30 (4:30)
Mon 10 (1)
Thurs 2 (5)

I need to get the information in parenthasies out, into another cell.

My simple extration formulas aren't working since the character spaces are
inconsistent.

JE McGimpsey

Inconsistant character spaces extraction formula
 
One way:

=MID(LEFT(A1,FIND(")",A1)-1),FIND("(",A1)+1,255)

where 255 is just a large number

If you need the value to be a number:

=--MID(LEFT(A1,FIND(")",A1)-1),FIND("(",A1)+1,255)

In article ,
Sneilan wrote:

The following type of data are listed in a column of cells:
Mon 1:30 (4:30)
Mon 10 (1)
Thurs 2 (5)

I need to get the information in parenthasies out, into another cell.

My simple extration formulas aren't working since the character spaces are
inconsistent.


Stephen[_2_]

Inconsistant character spaces extraction formula
 
"Sneilan" wrote in message
...
The following type of data are listed in a column of cells:
Mon 1:30 (4:30)
Mon 10 (1)
Thurs 2 (5)

I need to get the information in parenthasies out, into another cell.

My simple extration formulas aren't working since the character spaces are
inconsistent.


Try this:
=MID(A1,FIND("(",A1)+1,FIND(")",A1)-FIND("(",A1)-1)



Sneilan

Inconsistant character spaces extraction formula
 
This is AWESOME. Thank you!

"Stephen" wrote:

"Sneilan" wrote in message
...
The following type of data are listed in a column of cells:
Mon 1:30 (4:30)
Mon 10 (1)
Thurs 2 (5)

I need to get the information in parenthasies out, into another cell.

My simple extration formulas aren't working since the character spaces are
inconsistent.


Try this:
=MID(A1,FIND("(",A1)+1,FIND(")",A1)-FIND("(",A1)-1)





All times are GMT +1. The time now is 12:57 AM.

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