#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default SUMPRODUCT HELP

I'm using sumproduct to sort and count a database that meets certain
criteria. It was doing a great job until I needed to count a column with
variable criteria that I want to count.
=SUMPRODUCT((SORTFLE1!$B$2:$B$1000="Auto
Body")*(SORTFLE1!$D$2:$D$1000="Dodd")*(SORTFLE1!$G $2:$G$1000<"ED,13,504,VA")*(SORTFLE1!$H$2:$H$1000 ="AM"))
It would be easier if I could just say not count (ED,13,504,VA) and count
everything else that wasn't blank. Any suggestions?

--
STEVE A
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 747
Default SUMPRODUCT HELP

=COUNTA(G2:G1000)-COUNTIF(G2:G1000,"ED,13,504,VA")


On Oct 22, 1:13*am, STEVE A wrote:
I'm using sumproduct to sort and count a database that meets certain
criteria. It was doing a great job until I needed to count a column with
variable criteria that I want to count.
=SUMPRODUCT((SORTFLE1!$B$2:$B$1000="Auto
Body")*(SORTFLE1!$D$2:$D$1000="Dodd")*(SORTFLE1!$G $2:$G$1000<"ED,13,504,VA")*(SORTFLE1!$H$2:$H$1000 ="AM"))
It would be easier if I could just say not count (ED,13,504,VA) and count
everything else that wasn't blank. Any suggestions?

--
STEVE A


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default SUMPRODUCT HELP

Replace this:

(SORTFLE1!$G$2:$G$1000<"ED,13,504,VA")

With this:

(ISNA(MATCH(SORTFLE1!$G$2:$G$1000,{"ED",13,504,"VA "},0)))

Note: that will count empty cells.

--
Biff
Microsoft Excel MVP


"STEVE A" wrote in message
...
I'm using sumproduct to sort and count a database that meets certain
criteria. It was doing a great job until I needed to count a column with
variable criteria that I want to count.
=SUMPRODUCT((SORTFLE1!$B$2:$B$1000="Auto
Body")*(SORTFLE1!$D$2:$D$1000="Dodd")*(SORTFLE1!$G $2:$G$1000<"ED,13,504,VA")*(SORTFLE1!$H$2:$H$1000 ="AM"))
It would be easier if I could just say not count (ED,13,504,VA) and count
everything else that wasn't blank. Any suggestions?

--
STEVE A



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default SUMPRODUCT HELP

Try replacing this term in your sumproduct expression:
(SORTFLE1!$G$2:$G$1000<"ED,13,504,VA")
with this:
(ISERROR(MATCH(SORTFLE1!$G$2:$G$1000,{"ED";13;504; "VA"},0)))*(SORTFLE1!$G$2:$G$1000<"")
Success? Celebrate it, hit the YES below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:27,000 Files:200 Subscribers:70
xdemechanik
---
"STEVE A" wrote:
I'm using sumproduct to sort and count a database that meets certain
criteria. It was doing a great job until I needed to count a column with
variable criteria that I want to count.
=SUMPRODUCT((SORTFLE1!$B$2:$B$1000="Auto
Body")*(SORTFLE1!$D$2:$D$1000="Dodd")*(SORTFLE1!$G $2:$G$1000<"ED,13,504,VA")*(SORTFLE1!$H$2:$H$1000 ="AM"))
It would be easier if I could just say not count (ED,13,504,VA) and count
everything else that wasn't blank. Any suggestions?


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
Sumproduct with Condition OR Sumproduct with ADDRESS function - HE gholly Excel Discussion (Misc queries) 2 September 28th 09 05:07 PM
Sumproduct osaka78 Excel Discussion (Misc queries) 1 August 17th 08 01:31 PM
Conditional SUMPRODUCT or SUMPRODUCT with Filters Ted M H Excel Worksheet Functions 4 August 14th 08 07:50 PM
sumproduct? sumif(sumproduct)? David Excel Worksheet Functions 3 July 13th 07 07:06 PM
Sumproduct carl Excel Worksheet Functions 5 November 21st 05 11:44 PM


All times are GMT +1. The time now is 09:14 AM.

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

About Us

"It's about Microsoft Excel"