# Sumproduct OR coersion not working :s

#### thorpyuk

##### Well-known Member
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

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
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))

Thanks Rorya, that's beautifully simple :>

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...

Replies
3
Views
248
Replies
4
Views
135
Replies
4
Views
192
Replies
5
Views
434
Replies
2
Views
146

1,196,203
Messages
6,013,991
Members
441,800
Latest member
CDra13

### 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.

### Which adblocker are you using?

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

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