Matching multiple ways?

Noxqss38242

Board Regular
Joined
Sep 15, 2017
Messages
225
Office Version
  1. 2016
I have many tabs with truck numbers to track a "reason", some tabs may contain the same truck but each tab is a different "reason"
I then have a tab of "open" work orders that list the "truck number" and the "reason" which can have multiple "reasons" and multiple truck numbers including duplicate truck numbers.

Campaign Report.xlsx
DEFG
3591722112/31/24 15:24RECALL - 23509
3601722112/31/24 15:36CAMPAIGN-22903
3611724911/10/22 15:20BLIND SPOT RADAR
3621729907/11/23 09:45CK.PASS SMART
3631730012/30/23 23:59RECALL - 23509 MHM
3641730312/31/24 10:50CAMPAIGN-23213 GHG LABEL
3652065903/11/23 23:58RECALL - FL893A MHM
3662066907/27/23 15:08ENGINE CODES PRESENT
3672068712/31/24 23:59RECALL - FL893A
3682082712/31/24 10:55CAMPAIGN - SF672-A
3692083307/12/23 13:01REPAIR FLOOD DAMAGE
3702084311/23/22 13:08NON OEM BATTERIES
3712085212/31/24 10:55RECALL - FL851A
Sheet16
Cell Formulas
RangeFormula
F359F359="12/31/24 15:24"
F360F360="12/31/24 15:36"
F361F361="11/10/22 15:20"
F362F362="07/11/23 09:45"
F363F363="12/30/23 23:59"
F364F364="12/31/24 10:50"
F365F365="03/11/23 23:58"
F366F366="07/27/23 15:08"
F367F367="12/31/24 23:59"
F368,F371F368="12/31/24 10:55"
F369F369="07/12/23 13:01"
F370F370="11/23/22 13:08"


Example of "23509" tab

Campaign Report.xlsx
A
117221
217222
317223
417224
517225
617226
717227
817228
917229
1017230
1117231
1217232
1317233
1417234
23509


I'm guessing each tab will have their own formula which is fine, I can adjust for tab names. Just need a formula for the tab to tell me if "Sheet16" contains the unit number and "reason" I'm looking for.

So if sheet16 says 17221 has reason, "*23509" mentioned, then I need the 23509 tab for truck 17221 to say "Open", if there is no 17221 with a reason "*23509" mentioned, I need it to say "Closed" in the cell next to it. Formula would be in row B.
There might be 10 instances of 17221 but need it to search all instances for "*23509" in the reason line which is column "G".

If I need a helper cell to do so, I have no problem inserting it into the 23509 tab, etc...
The only tab that will constantly change is "Sheet16" which will update each week when I drop in new data.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
=IF(COUNTIF(Sheet16!$D:$D,'23509'!A1),AND(IF(COUNTIF(Sheet16!$G:$G,"*23509*"),"Open","Closed")))

That formula doesn't work, still trying to figure it out.
If cell a1 appears in range AND if the corresponding column "G" contains "*23509*" then return "Open" if not then return "Closed".
(at least that is what I thought I was telling it to do....haha)

Any help would be appreciated...
 
Upvote 0
=IF(AND(COUNTIF(Sheet16!$D:$D,'23509'!A1),COUNTIF(Sheet16!G:G,"*23509*")),"Open","Closed")

This formula returns data ("Open" "Closed") other than "#value" but the data doesn't match....getting closer but still need help....
 
Upvote 0
Okay, finally got it....trial and error....took too long though for me to figure it out....but got it down....

=IF(COUNTIFS(Sheet16!$D:$D,'216A2'!A1,Sheet16!$G:$G,"*216A2*"),"Open","Closed")
 
Upvote 0
Solution

Forum statistics

Threads
1,223,984
Messages
6,175,781
Members
452,668
Latest member
mrider123

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