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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
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,548
Messages
6,120,146
Members
448,948
Latest member
spamiki

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