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  

Sumproduct



 
 
Thread Tools Display Modes
  #1  
Old February 21st, 2007, 02:09 PM posted to microsoft.public.excel.worksheet.functions
mike
external usenet poster
 
Posts: 3,942
Default Sumproduct

Thanks Toppers, works perfectly and a lot simpler. Despite that I'm still
pleased at getting it to work in the first place!!

"Toppers" wrote:

try:

=SUMPRODUCT(--(W2:W31="TS")*(Y2:Y31={"B","D"}))

"Mike" wrote:

=SUMPRODUCT(--(W2:W31="TS"), --(Y2:Y31="B"))+SUMPRODUCT(--(W2:W31="TS"),
--(Y2:Y31="D"))

After trawling the pages of Messr's Mcgimpsy and Pearson and others the
fromula above works perfectly but I can't believe it needs to be that
complicated.

Simply it looks for occurences of TS in Col W2 - W31 and if there is a
corresponding value of B or D in column X it counts it. Please tell me that
it can be simplified.


 




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 09:29 AM.


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