A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Sumproducct question



 
 
Thread Tools Display Modes
  #1  
Old May 21st, 2009, 10:34 PM posted to microsoft.public.excel.worksheet.functions
DocBrown
external usenet poster
 
Posts: 83
Default Sumproducct question

Can anyone help with a sumproduct question?

I would like to sum the values in range $N$16:$N$200 if the value in column
E of the row is not a capital letter and column M of the row is blank.

Column E can be blank, one uppercase letter, or lower case letter.

Thanks a bunch
John

  #2  
Old May 21st, 2009, 11:37 PM posted to microsoft.public.excel.worksheet.functions
decimal
external usenet poster
 
Posts: 3
Default Sumproducct question

There is probably a better awnser, but if it were only a few letters,
possible you could probalby use CHAR(x) in your IF formula. CHAR(77) =
capital M, whild CHAR(109), returns a small m. Also not sure if it can
compare that in a formula to what is in colm E.
--Decimal

"DocBrown" wrote:

Can anyone help with a sumproduct question?

I would like to sum the values in range $N$16:$N$200 if the value in column
E of the row is not a capital letter and column M of the row is blank.

Column E can be blank, one uppercase letter, or lower case letter.

Thanks a bunch
John

  #3  
Old May 21st, 2009, 11:44 PM posted to microsoft.public.excel.worksheet.functions
Sheeloo
external usenet poster
 
Posts: 797
Default Sumproducct question

Here is one solution (I am sure there will be a more elegant solution)...
Type or paste the following in a cell and then press CTRL-SHIFT-ENTER
=SUMPRODUCT(IF(E16:E200"",IF(CODE(E16:E200)COD E(UPPER(E16:E200)),N16:N200,0),0),--(M16:M200=""))

It will add up column N where Col E has a lower case letter and Col M is blank

"DocBrown" wrote:

Can anyone help with a sumproduct question?

I would like to sum the values in range $N$16:$N$200 if the value in column
E of the row is not a capital letter and column M of the row is blank.

Column E can be blank, one uppercase letter, or lower case letter.

Thanks a bunch
John

  #4  
Old May 22nd, 2009, 12:22 AM posted to microsoft.public.excel.worksheet.functions
Don Guillett
external usenet poster
 
Posts: 6,167
Default Sumproducct question

How about a nice macro.

Sub sumifucase()
For i = 16 To 200
If Len(Application.Trim(Cells(i, "e"))) 0 _
And StrComp(UCase(Cells(i, "e")), Cells(i, "e")) 0 _
And Len(Application.Trim(Cells(i, "M"))) = 0 _
Then ms = ms + Cells(i, "n")
Next i
MsgBox ms
End Sub

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"DocBrown" wrote in message
...
Can anyone help with a sumproduct question?

I would like to sum the values in range $N$16:$N$200 if the value in
column
E of the row is not a capital letter and column M of the row is blank.

Column E can be blank, one uppercase letter, or lower case letter.

Thanks a bunch
John


  #5  
Old May 22nd, 2009, 03:21 AM posted to microsoft.public.excel.worksheet.functions
Teethless mama
external usenet poster
 
Posts: 3,722
Default Sumproducct question

=SUM(IF(rngE"",IF((CODE(rngE)=97)*(CODE(rngE=1 22))*(rngM=""),rngN)))


"DocBrown" wrote:

Can anyone help with a sumproduct question?

I would like to sum the values in range $N$16:$N$200 if the value in column
E of the row is not a capital letter and column M of the row is blank.

Column E can be blank, one uppercase letter, or lower case letter.

Thanks a bunch
John

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:02 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.