Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15
Default Case Sensitive Counting & Filtering

I have a huge database in wich some fields are strings. I need to count
records based - amongst others - on the two last characters of a field.
However, I must differentiate between az, aZ, AZ etc.

The COUNTIF does not allow for that (Right?).
I can circumvent the COUNTIF through using SUMPRODUCT, e.g.

SUMPRODUCT((ISNUMBER(FIND("aZ",RIGHT(Field1,2)))*( Field2=condition)))

I have the impression that Excel becomes very slow by using this.

So far for the COUNT; but I would liek as well to filter specific records on
the database with e.g. the Advanced Filter, how do I enter a criterion to
filter out records with last 2 characters "aZ" (and not extract "AZ" and so
on)?

Thanks, Alain

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,934
Default Case Sensitive Counting & Filtering

Instead of this construction...

ISNUMBER(FIND("aZ",RIGHT(Field1,2)))*(

I would have used this...

EXACT("aZ",RIGHT(Field1,2))

What do you mean by "I have the impression that Excel becomes very slow by
using this"? Just how many of these "counts" are you doing? Yes, if you are
doing a lot of them, the array nature of the SUMPRODUCT would affect
performance, but if you are only using one (or, perhaps, only a handful) of
them, you shouldn't notice a performance hit at all.

--
Rick (MVP - Excel)


"Alain" wrote in message
...
I have a huge database in wich some fields are strings. I need to count
records based - amongst others - on the two last characters of a field.
However, I must differentiate between az, aZ, AZ etc.

The COUNTIF does not allow for that (Right?).
I can circumvent the COUNTIF through using SUMPRODUCT, e.g.

SUMPRODUCT((ISNUMBER(FIND("aZ",RIGHT(Field1,2)))*( Field2=condition)))

I have the impression that Excel becomes very slow by using this.

So far for the COUNT; but I would liek as well to filter specific records
on
the database with e.g. the Advanced Filter, how do I enter a criterion to
filter out records with last 2 characters "aZ" (and not extract "AZ" and
so
on)?

Thanks, Alain


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
Case Sensitive Lookup danpt Excel Discussion (Misc queries) 3 May 14th 09 06:20 AM
countif function: how to distinguish case/make case sensitive mvwoolner Excel Worksheet Functions 3 March 18th 09 02:18 PM
Case sensitive filtering kk122 Excel Discussion (Misc queries) 3 May 15th 06 11:18 PM
Case Sensitive w/ IF jeffP Excel Worksheet Functions 11 February 6th 06 01:16 AM
Case sensitive advanced filtering Big Tony Excel Discussion (Misc queries) 1 January 26th 05 08:22 PM


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