Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
carl
 
Posts: n/a
Default Modifying A Sumproduct Formula

I use this formula:

=SUMPRODUCT(--(Sheet1!$Y$4:$Y$60000=Sheet2!$G$4);--(Sheet1!$AB$4:$AB$60000="Directed");--(LEFT(Sheet1!$O$4:$O$60000;3)=$G$5);--(Sheet1!$I$4:$I$60000=Sheet2!E11);--(Sheet1!$AC$4:$AC$60000=$G$3);Sheet1!$N$4:$N$60000 )

In the first criteria (Sheet1!$Y$4:$Y$60000=Sheet2!$G$4), is there a way to
ignore the criteria if G4 is blank ?

Thank you in advance.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Modifying A Sumproduct Formula

Try this array formula

=SUM(IF(Sheet2!$G$4="";1;(Sheet1!$Y$4:$Y$6000=Shee t2!$G$4))*(Sheet1!$AB$4:$A
B$6000="Directed")*(LEFT(Sheet1!$O$4:$O$6000;3)=$G $5)*(Sheet1!$I$4:$I$6000=S
heet2!E11)*(Sheet1!$AC$4:$AC$6000=$G$3)*(Sheet1!$N $4:$N$6000))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"carl" wrote in message
...
I use this formula:


=SUMPRODUCT(--(Sheet1!$Y$4:$Y$60000=Sheet2!$G$4);--(Sheet1!$AB$4:$AB$60000="
Directed");--(LEFT(Sheet1!$O$4:$O$60000;3)=$G$5);--(Sheet1!$I$4:$I$60000=She
et2!E11);--(Sheet1!$AC$4:$AC$60000=$G$3);Sheet1!$N$4:$N$60000 )

In the first criteria (Sheet1!$Y$4:$Y$60000=Sheet2!$G$4), is there a way

to
ignore the criteria if G4 is blank ?

Thank you in advance.



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 as array formula? Henrik Excel Worksheet Functions 2 November 2nd 05 07:08 AM
Help On SUMPRODUCT Formula Joe Gieder Excel Worksheet Functions 2 January 27th 05 05:56 PM
Modifying an Existing Formula carl Excel Worksheet Functions 1 December 31st 04 04:55 PM
sumproduct formula to slow Todd Excel Worksheet Functions 4 December 21st 04 11:25 PM
SUMPRODUCT formula shmurphing Excel Worksheet Functions 4 December 21st 04 10:43 PM


All times are GMT +1. The time now is 11:59 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"