Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Case Sensative Subtotaling

I have a situation where I have multiple contracts which are 2 characters and
are case sensative.

Example....

Contract #1 = 'AE' (both uppercase)
Contract #2 = 'aE' (lowercase a, uppercase E)
Contract #3 = 'Ae' (uppercase A, lowercase e)

Each contract has multiple lines of sales dollars and I need to sum
according to each specific contract, maintaining the case sensativity. Is
there a way, without changing the characters, to do this??
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Case Sensative Subtotaling

Here is a brute force method.
To sum the B column when A column values AE use
=SUMPRODUCT(--(CODE(LEFT(A1:A8))=65),--(CODE(RIGHT(A1:A8))=69),B1:B8)

The codes are
a 97
e 101
A 65
E 69


To do it without specifying codes (more flexible):
In D1 I have the text AE
In D2 I used
=SUMPRODUCT(--(CODE(LEFT(A1:A8))=CODE(LEFT(D1))),--(CODE(RIGHT(A1:A8))=CODE(RIGHT(D1))),B1:B8)


best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"wingsdihard2" wrote in message
...
I have a situation where I have multiple contracts which are 2 characters
and
are case sensative.

Example....

Contract #1 = 'AE' (both uppercase)
Contract #2 = 'aE' (lowercase a, uppercase E)
Contract #3 = 'Ae' (uppercase A, lowercase e)

Each contract has multiple lines of sales dollars and I need to sum
according to each specific contract, maintaining the case sensativity. Is
there a way, without changing the characters, to do this??



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Case Sensative Subtotaling

wingsdihard2 wrote:
I have a situation where I have multiple contracts which are 2 characters and
are case sensative.

Example....

Contract #1 = 'AE' (both uppercase)
Contract #2 = 'aE' (lowercase a, uppercase E)
Contract #3 = 'Ae' (uppercase A, lowercase e)

Each contract has multiple lines of sales dollars and I need to sum
according to each specific contract, maintaining the case sensativity. Is
there a way, without changing the characters, to do this??


With data in columns A (contract numbers) and B (dollars), put 'AE' in E1 and
the following array formula (commit with CTRL+SHIFT+ENTER) in F1:

=SUM(IF(EXACT(E1,$A$2:$A$12),$B$2:$B$12,0))
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Case Sensative Subtotaling

Try one of these formula

=SUMPRODUCT(--ISNUMBER(FIND("aE",A1:A12)),B1:B12)
or
=SUMPRODUCT(--(EXACT(A1:A12,"aE")),B1:B12)


"wingsdihard2" wrote:

I have a situation where I have multiple contracts which are 2 characters and
are case sensative.

Example....

Contract #1 = 'AE' (both uppercase)
Contract #2 = 'aE' (lowercase a, uppercase E)
Contract #3 = 'Ae' (uppercase A, lowercase e)

Each contract has multiple lines of sales dollars and I need to sum
according to each specific contract, maintaining the case sensativity. Is
there a way, without changing the characters, to do this??

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
change data of entire column from small case to upper case Ann Excel Worksheet Functions 1 August 16th 08 01:06 PM
Changing multiple cell text from lower case to upper case Patti Excel Discussion (Misc queries) 2 January 4th 08 08:35 PM
Case sensative list validation Dave L[_2_] Excel Discussion (Misc queries) 3 July 25th 07 12:01 AM
do formulas have to be case sensative when searching words elaine Excel Discussion (Misc queries) 2 July 17th 07 10:18 AM
Change the text from lower case to upper case in an Excel work boo dave01968 Excel Discussion (Misc queries) 2 December 9th 05 09:09 AM


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