#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Currency Format

We have a formula that extracts numbers from a text field. Thse are currency
amounts. Is there a formula that can put his into a number format?

'=IF(LEFT($E2,3)="CAD",RIGHT($E2,LEN($E2)-3),0)

Thank you!



  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Currency Format

Right will return text.

You can coerce that text to a real number:
=IF(LEFT($E2,3)="CAD",--RIGHT($E2,LEN($E2)-3),0)

(the first - changes it to a negative number (but a number!). The second -
changes it back to positive.

Then you could give it the numberformat you like.

Or you could still return text, but make it look pretty:
=IF(LEFT($E2,3)="CAD",Text(RIGHT($E2,LEN($E2)-3),"000.000"),0)


Denise wrote:

We have a formula that extracts numbers from a text field. Thse are currency
amounts. Is there a formula that can put his into a number format?

'=IF(LEFT($E2,3)="CAD",RIGHT($E2,LEN($E2)-3),0)

Thank you!


--

Dave Peterson
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
Currency format Max Excel Worksheet Functions 8 July 16th 07 07:56 AM
Currency format Spyder Excel Discussion (Misc queries) 1 June 20th 07 08:07 PM
format cells for currency 2450 and have it format to $24.50? Karen C Excel Worksheet Functions 0 October 13th 05 03:21 PM
Change General Format to Currency Format Freshman Excel Worksheet Functions 3 July 8th 05 03:42 AM
why does currency format change to number format? Cassie Excel Discussion (Misc queries) 3 March 18th 05 06:57 PM


All times are GMT +1. The time now is 04:00 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"