Hey, i have some problem.
C1 = A B C D and etc.
how properly write: C1 begins from any letters
=SUMPRODUCT(--(LEFT(Sheet2!$C$2:$C$100000;1)=$C$1);--(Sheet2!$Y$2:$Y$100000=$D20);Sheet2!$P$2:$P$100000)
Hey, i have some problem.
C1 = A B C D and etc.
how properly write: C1 begins from any letters
=SUMPRODUCT(--(LEFT(Sheet2!$C$2:$C$100000;1)=$C$1);--(Sheet2!$Y$2:$Y$100000=$D20);Sheet2!$P$2:$P$100000)
Last edited by vysa; 11-15-2014 at 10:31 AM.
The letters of the alphabet all fall in the "code" range of 65-122 in the font table. So you can use that...
=SUMPRODUCT(--(CODE(LEFT(Sheet2!$C$2:$C$100000))>=65); --(CODE(LEFT(Sheet2!$C$2:$C$100000))<=122); --(Sheet2!$Y$2:$Y$100000=D20); Sheet2!$P$2:$P$100000)
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
Perhaps there are any simpler way ? only change cell C1
If you want to match column C to the letter of the alphabet you place in C1, and that can be any letter, then your original formula seems to already do that.
but at the same time i would like to have and with all letters result.
Maybe I am missing something, my formula will return a result for all possible letters, your formula will return a result for any single letter. What else are you seeking?
Please take a look excel file.
the formula shows 0, when i set any filter *
Microsoft Excel Worksheet.xlsx
Try this one![]()
Please Login or Register to view this content.
Last edited by popipipo; 11-15-2014 at 05:23 PM. Reason: change formula
Willem
English is not my native language sorry for errors
Please correct me if I'm completely wrong
Yes, that one i know. But both criteria might be *, perhaps there is in excel any symbol which means no criteria.
Try this:
Formula:
Please Login or Register to view this content.
<----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left
If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks