Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Currency format | Excel Worksheet Functions | |||
Currency format | Excel Discussion (Misc queries) | |||
format cells for currency 2450 and have it format to $24.50? | Excel Worksheet Functions | |||
Change General Format to Currency Format | Excel Worksheet Functions | |||
why does currency format change to number format? | Excel Discussion (Misc queries) |