Sumproduct OR coersion not working :s

thorpyuk

Well-known Member
Joined
Mar 14, 2006
Messages
1,453
Hi,

A part of my coersion isn't working here (my OR statement):

Rich (BB code):
=INDEX(Prices!$C$3:$C$2596,MATCH(LARGE(IF(Prices!$B$3:$B$2596=$F4,IF(((Prices!$J$3:$J$2596="Criteria1")*(Prices!$U$3:$U$2596=VLOOKUP(U4,Prices!$C:$U,19,FALSE))*(OR(Prices!$V$3:$V$2596="0",Prices!$V$3:$V$2596=$D4))*(Prices!$G$3:$G$2596="Criteria2")),Prices!$Q$3:$Q$2596)),1),Prices!$Q$3:$Q$2596,0))

If anyone can see what i'm doing wrong then i would be gratefull! Thanks
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
You can't use OR in an array formula like that. Try using:

((Prices!$V$3:$V$2596="0")+(Prices!$V$3:$V$2596=$D4))

instead of the OR part
 
Upvote 0
Hi,

A part of my coersion isn't working here (my OR statement):

Rich (BB code):
=INDEX(Prices!$C$3:$C$2596,MATCH(LARGE(IF(Prices!$B$3:$B$2596=$F4,IF(((Prices!$J$3:$J$2596="Criteria1")*(Prices!$U$3:$U$2596=VLOOKUP(U4,Prices!$C:$U,19,FALSE))*(OR(Prices!$V$3:$V$2596="0",Prices!$V$3:$V$2596=$D4))*(Prices!$G$3:$G$2596="Criteria2")),Prices!$Q$3:$Q$2596)),1),Prices!$Q$3:$Q$2596,0))

If anyone can see what i'm doing wrong then i would be gratefull! Thanks

Possibly...
Rich (BB code):
=INDEX(Prices!$C$3:$C$2596,MATCH(MAX(
    IF(Prices!$B$3:$B$2596=$F4,
    IF(Prices!$J$3:$J$2596="Criteria1",
    IF(Prices!$U$3:$U$2596=VLOOKUP(U4,Prices!$C:$U,19,0),
    IF(ISNUMBER(MATCH(Prices!$V$3:$V$2596,CHOOSE({1,2},0,$D4),0)),
    IF(Prices!$G$3:$G$2596="Criteria2",Prices!$Q$3:$Q$2596))))),
      Prices!$Q$3:$Q$2596,0))

Quite heavy a formula...
 
Upvote 0

Forum statistics

Threads
1,214,387
Messages
6,119,208
Members
448,874
Latest member
Lancelots

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top