Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Use of MID function for Variable Extraction


Hi,

I have a need to extract the figure before "%" symbol. I tried using the script below but unable to achieve it. I will appreciate any assistance on the right function.

Range("T" & z).Value = Mid(Range("M" & z), 1, 4)

14.20% USD FEDERAL GOVERNMENT BOND
5.20% USD FEDERAL GOVERNMENT BOND
14% USD FEDERAL GOVERNMENT BOND

Desired Result:
14.20
5.20
14
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Use of MID function for Variable Extraction

On Wednesday, July 22, 2015 at 12:18:29 PM UTC+1, wrote:
Hi,

I have a need to extract the figure before "%" symbol. I tried using the script below but unable to achieve it. I will appreciate any assistance on the right function.

Range("T" & z).Value = Mid(Range("M" & z), 1, 4)

14.20% USD FEDERAL GOVERNMENT BOND
5.20% USD FEDERAL GOVERNMENT BOND
14% USD FEDERAL GOVERNMENT BOND

Desired Result:
14.20
5.20
14


Many thanks
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extraction Donna[_2_] Excel Worksheet Functions 12 October 29th 09 04:24 AM
Extraction Pascale Excel Discussion (Misc queries) 2 January 18th 08 04:45 PM
extraction oldLearner57 Excel Discussion (Misc queries) 2 November 19th 07 01:09 PM
Extraction Martina Excel Worksheet Functions 4 May 24th 07 04:48 AM
Trendline Function Extraction ager_merityme Excel Discussion (Misc queries) 6 March 27th 07 11:18 PM


All times are GMT +1. The time now is 10:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"