LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.misc
FMS FMS is offline
external usenet poster
 
Posts: 6
Default filter on currency number format

Wow, that's fantastic!

I won't even pretend to understand how or why it works, but it does and I'm
extremely grateful.

thank you so much

"Gary''s Student" wrote:

First insert this tiny User Defined Function in a standard module:

Function txet(r As Range) As String
txet = r.Text
End Function

Then if your data is in column A, insert in B1

=txet(A1) and copy down

We see something like:

value value
USD 2200 USD 2200
EUR 3000 EUR 3000
KES 5500 KES 5500
USD 2500 USD 2500

Column B LOOKS like column A, but the letters are now real.

You can filter on column B
--------------------------------------------------------

UDFs are very easy to install and use:

1. ALT-F11 brings up the VBE window
2. ALT-I
ALT-M opens a fresh module
3. paste the stuff in and close the VBE window

If you save the workbook, the UDF will be saved with it.

To use the UDF from the normal Excel window, just enter it like a normal
Excel Function

To remove the UDF:

1. bring up the VBE window as above
2. clear the code out
3. close the VBE window

To learn more about UDFs, see:

http://www.cpearson.com/excel/Writin...ionsInVBA.aspx
--
Gary''s Student - gsnu200843


"FMS" wrote:

visible only as a result of the formatting

"Gary''s Student" wrote:

Is the U in USD actually in the cell, or is it visible only as a result of
formatting??
--
Gary''s Student - gsnu200843


"FMS" wrote:

Hi

I fear I may be overly optimistic here, but it's worth a shot.

I've got a column in a spreadsheet that has a mix of currencies with the
display showing the currency letter from Number Formatting eg
USD 2200
EUR 3000
KES 5500
USD 2500

I'd love to be able to filter and show only the USD items but, even though
the currency letters show in the custom filter drop downs, it's not showing
anything when I try begins with USD.

I need to perform calcs from these items and hence can't use text and I also
can't use separate columns for each currency.

Is there anyway to filter on number formatting?

many thanks
FMS



 
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
Difference between Currency and Accounting number format. computerkiller Excel Discussion (Misc queries) 3 April 19th 23 02:12 PM
Convert number to Million Currency format Yossy Excel Worksheet Functions 9 April 3rd 23 01:14 PM
wrong number, no currency format dberger16 Excel Discussion (Misc queries) 1 November 16th 08 01:47 PM
How do I format to currency when number includes cents? INEEDHELP Excel Worksheet Functions 2 April 13th 06 04:27 PM
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 01:04 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"