Evaluating a criteria based on grouping in another column

joseulloa22

New Member
Joined
Dec 28, 2013
Messages
25
am trying to get a formula that searches within a sales order (column A) and tells me if that sales order contains SECT or not (column C).


SALES ORDERCUSTOMERPLANNER
332456HOME DEPOTSECT
332456HOME DEPOTGATE
332550THE FENCE MAKERPOST
332550THE FENCE MAKERGATE
332550THE FENCE MAKERHARDWARE
333980GIMMICKHARDWARE
335790PARK FENCESECT
335790PARK FENCEPOST
336000HOME DEPOTHARDWARE

<tbody>
</tbody>



Any help is greatly appreciated

Thanks
Jose Ulloa
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Try using COUNTIFS, e.g. for a specific sales order in E2 use this formula in F2

=IF(COUNTIFS(A:A,E2,C:C,"SECT"),"Yes","No")
 
Upvote 0
Try using COUNTIFS, e.g. for a specific sales order in E2 use this formula in F2

=IF(COUNTIFS(A:A,E2,C:C,"SECT"),"Yes","No")

Thank you much for the help.

The formula given evaluates by line item and tells me whether that line item contains SECT or not.
Would it be possible to evaluate by sales order? That is, a formula that look at the whole content of the sales order number and return whether the SO contains SECT or not.
For instance, the formula would look at SO 335790 which has two line items. Since it contains SECT it would return a "Yes" for the entire SO

Thanks
Jose Ulloa
 
Last edited:
Upvote 0
If i am not wrong it should work if you just change the formula to this:
=IF(COUNTIFS(A:A,A2,C:C,"SECT"),"Yes","No"

Then all lines with that SO get a Yes if one of the lines contains SECT
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,823
Members
449,049
Latest member
cybersurfer5000

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