I am using a formula that Hans supplied me long ago to add upper case and lower case letters
In this example
=SUMPRODUCT(--EXACT(N7:AR7,"M"))+SUMPRODUCT(--EXACT(N7:AR7,"m"))/2
it correctly calculates that I have put in 5 x M =5 and 4 x m = 2 total = 7
But in this example
=SUMPRODUCT(--EXACT(N7:AR7,"L"))+SUMPRODUCT(--EXACT(N7:AR7,"l"))/2
It does not add the lower case l, I have entered 4 x L = 4 and 5 x l = 2.5 but the total shows 4
I do in fact have 13 conditions of upper and lower case altogether and it works in 11 of them but not for the above example or
=SUMPRODUCT(--EXACT(N7:AQ7,"P"))+SUMPRODUCT(--EXACT(N7:AQ7,"p"))/2
Everything looks to me to be the same?
Addition problem (Excel 2007)
-
- SilverLounger
- Posts: 1952
- Joined: 26 Jan 2010, 12:46
- Location: Nr. Heathrow Airport
Addition problem (Excel 2007)
Steve
http://www.freightpro-uk.com" onclick="window.open(this.href);return false;
“Tell me and I forget, teach me and I may remember, involve me and I learn.”
― Benjamin Franklin
http://www.freightpro-uk.com" onclick="window.open(this.href);return false;
“Tell me and I forget, teach me and I may remember, involve me and I learn.”
― Benjamin Franklin
-
- Administrator
- Posts: 78568
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Addition problem (Excel 2007)
Make sure that the cells really contain "l" (without the quotes), and not for example "l " or " l".
Best wishes,
Hans
Hans
-
- SilverLounger
- Posts: 1952
- Joined: 26 Jan 2010, 12:46
- Location: Nr. Heathrow Airport
Re: Addition problem (Excel 2007)
Hi HansHansV wrote:Make sure that the cells really contain "l" (without the quotes), and not for example "l " or " l".
What is strange is that the cells are validated with a named range (leavetype) into which I typed
H
h
S
s
B
b
Etc.
And this was working OK but following your response I have gone back to the named range and retyped the whole lot in again and the l and p now work fine so thanks for your advice
Cheers
Steve
http://www.freightpro-uk.com" onclick="window.open(this.href);return false;
“Tell me and I forget, teach me and I may remember, involve me and I learn.”
― Benjamin Franklin
http://www.freightpro-uk.com" onclick="window.open(this.href);return false;
“Tell me and I forget, teach me and I may remember, involve me and I learn.”
― Benjamin Franklin