Complex Formula help.

Ian Betteridge

Active Member
Joined
Mar 25, 2006
Messages
472
I'm using a formula to find duplicated orders for individual m/c within a half hour period.

=IF(A878="","",IF(AND(B878<>"101",B878<>"102"),"",IF(F878="","",IF(SUMPRODUCT(--($C$2:$C$5001=$C878)*--($F$2:$F$5001<=(F878+0.5/24))*--($F$2:$F$5001>=(F878-0.5/24)))>1,"Check Order",""))))

The latter part of the formula (SUMPRODUCT) I only want to calculate if either 101 or 102 is in the corresponding cell in column B. (101 & 102 are in text format)

Could someone please assist with juggling the formula to get this result.

Much appreciated
Ian
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Try:

=IF(OR(A878="",AND(B878<>"101",B878<>"102"),F878=""),"",IF(SUMPRODUCT((($B$2:$B$5001="101")+($B$2:$B$5001="102")),--($C$2:$C$5001=$C878),--($F$2:$F$5001<=(F878+0.5/24)),--($F$2:$F$5001>=(F878-0.5/24)))>1,"Check Order",""))
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,626
Members
452,933
Latest member
patv

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