LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default DCOUNT problem with numbers stored as text

I have a raw data worksheet that I populate using the OLEDB Jet
provider. Other worksheets reference the raw data and contain
functions to perform various counts of the data.

One column in the raw data contains both textual values (i.e. "K5")
and numeric values (ie. 11). Because I am using the Jet provider, the
only way I have found to avoid data format errors on import is to pre-
format the column as General or Text. So, the values such as 11 are
actually numbers stored as text (I look in the function bar and see
the value prepended with an apostrophe: '11).

One of the other worksheets references this column in a DCOUNT
function and is looking for a count where this column is not equal to
11. (<11). However it's not filtering out the values of 11 because
they are numbers formatted as text. I have seemingly tried everything
to try and do a string comparison but no luck. <"11", <'11, etc
nothing works.

How can I get this function to work properly on numbers stored as text
without having to change the format of the raw cells to text (doesn't
seem to be an option with columns of mixed types using the Jet
provider)?

Thanks.

 
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
VLOOKUP should compare numbers stored as text to plain numbers. VLOOKUP - Numbers stored as text Excel Worksheet Functions 0 March 31st 06 05:53 PM
Numbers stored as text causes problem with VLOOKUP naclu Excel Worksheet Functions 2 February 6th 06 09:09 AM
Numbers stored as text causes problem with VLOOKUP bpeltzer Excel Worksheet Functions 0 February 4th 06 08:07 PM
Convert numbers stored as text to numbers Excel 2000 Darlene Excel Discussion (Misc queries) 6 January 31st 06 08:04 PM
How do I convert numbers stored as text with spaces to numbers Baffuor Excel Discussion (Misc queries) 1 May 24th 05 07:39 AM


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

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"