Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 208
Default SUMPRODUCT WITH AN "OR" MAYBE????

I received some great help on my last question and know need to make it a
little more complex if you will.

Current Formula is:

=SUMPRODUCT((Sheet1!A2:A4=3)*(Sheet!B2:B4=100)*(Sh eet!C2:C4="D")*Sheet1!D2:D4)

Now I would like it to do:

=SUMPRODUCT((Sheet!A2:A4=3 OR A OR 4 OR B OR 999999) and then continue on.

Is it possible to use an or statement in the formula or not?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default SUMPRODUCT WITH AN "OR" MAYBE????

Sean,

To get an OR operation, simply Add the fields (using a + ) instead of
multiplying (AND, using *).

HTH,
Bernie
MS Excel MVP


"Sean" wrote in message
...
I received some great help on my last question and know need to make it a
little more complex if you will.

Current Formula is:


=SUMPRODUCT((Sheet1!A2:A4=3)*(Sheet!B2:B4=100)*(Sh eet!C2:C4="D")*Sheet1!D2:D
4)

Now I would like it to do:

=SUMPRODUCT((Sheet!A2:A4=3 OR A OR 4 OR B OR 999999) and then continue on.

Is it possible to use an or statement in the formula or not?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default SUMPRODUCT WITH AN "OR" MAYBE????

You can use the + instead of *

Or if you wanted different values in the same range

=SUMPRODUCT((Sheet1!A2:A4={3,"A",8,12})*(Sheet!B2: B4=100)*(Sheet!C2:C4="D")*
Sheet1!D2:D4)



--
Don Guillett
SalesAid Software

"Sean" wrote in message
...
I received some great help on my last question and know need to make it a
little more complex if you will.

Current Formula is:


=SUMPRODUCT((Sheet1!A2:A4=3)*(Sheet!B2:B4=100)*(Sh eet!C2:C4="D")*Sheet1!D2:D
4)

Now I would like it to do:

=SUMPRODUCT((Sheet!A2:A4=3 OR A OR 4 OR B OR 999999) and then continue on.

Is it possible to use an or statement in the formula or not?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default SUMPRODUCT WITH AN "OR" MAYBE????

Hi Sean
Use the + (plus) sign as OR operator, ie:
=SUMPRODUCT((Sheet1!A2:A4=3)+(Sheet!B2:B4=100)+(Sh eet!C2:C4="D")*Sheet1!D2:D
4)

HTH
Cordially
Pascal

"Sean" a écrit dans le message de
...
I received some great help on my last question and know need to make it a
little more complex if you will.

Current Formula is:


=SUMPRODUCT((Sheet1!A2:A4=3)*(Sheet!B2:B4=100)*(Sh eet!C2:C4="D")*Sheet1!D2:D
4)

Now I would like it to do:

=SUMPRODUCT((Sheet!A2:A4=3 OR A OR 4 OR B OR 999999) and then continue on.

Is it possible to use an or statement in the formula or not?



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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
SUMPRODUCT(--ISNUMBER(FIND("AM",C5:160))*(k5:k160="") redneck joe Excel Discussion (Misc queries) 5 August 18th 06 08:31 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM


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

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"