Find and comment based on find

Either in vba or in excel formula on Summary sheet.

I need to search for each of these phrases below on the 'Net Rate 1' & 'Net Rate 2' sheets.
On the 'Summary' sheet, I need to provide comment for each sheet/service:
 "Domestic Priority Overnight" found on Net Rate 1
 "Domestic Priority Overnight" found on Net Rate 2
OR
 "Domestic Priority Overnight" not found on Net Rate 2
 "Domestic Priority Overnight" not found on Net Rate 2

 "Domestic Priority Overnight"
 "Domestic Standard Overnight"
"Domestic 2 Day AM"
 "Domestic 2 Day"
"Domestic Express Saver"
 "Puerto Rico Southbound Priority Overnight (Based on Custom rates [Envelope] [Pak] [Package] ) "
"Puerto Rico Northbound Priority Overnight (Based on Custom rates [Envelope] [Pak] [Package] ) "
"Domestic 1Day Freight"
"Domestic 2Day Freight"
"Domestic 3Day Freight"
"International Export Priority Freight - Door to Door"
"International Export Economy Freight - Door to Door"
 "International Import Priority Freight - Door to Door"
"International Import Economy Freight - Door to Door"
"Puerto Rico Northbound 1Day Freight (Based on Custom rates [Package] )
 "Puerto Rico Northbound 2Day Freight (Based on Custom rates [Package] ) "
 "Ground - Ground Single-Piece Rates"
 "Ground Deferred"
 "US to Canada"
 "Domestic First Overnight Non-Freight"
  "International Export Priority"
 "International Import Priority"
 "International Export Economy"
 "International Import Economy"
"Puerto Rico Southbound Economy (Based on Custom rates [Package] ) "
"Puerto Rico Northbound Economy (Based on Custom rates [Package] ) "
 "Ground - Home Delivery Single Piece Rates"
 "Ground - Ground Multiweight Rates"
"Package Type(s):PRP"
find.xlsm
Euro5Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Martin LissOlder than dirtCommented:
OK this workbook contains a new sheet called "Header Names" which contains a list of the headers that you want to find, and there's a named range called "Headers" that refers to that list.

Run the FindHeaders macro that you'll find in Module1.
28689379.xlsm
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
byundtCommented:
I pasted your list of shipping types in Summary worksheet cell A17, then used the Home...Replace menu item to delete the double quotes from the pasted text. I could then copy down the following formulas to test your worksheets:
=A17 & IF(COUNTIF('Net Rates 1'!A:A,Summary!A17)," found"," not found") & " on Net Rates 1"
=A17 & IF(COUNTIF('Net Rates 2'!A:A,Summary!A17)," found"," not found") & " on Net Rates 2"
0
byundtCommented:
If the purpose of the formula is to highlight missing shipping types, I suggest simplifying the message to return an empty string if the type was found, or the words "not found" if it was missing. Furthermore, you don't need to specify the name of the worksheet if you put the results of the two formulas in separate columns.
=IF(COUNTIF('Net Rates 1'!A:A,Summary!A17),"","not found")
=IF(COUNTIF('Net Rates 2'!A:A,Summary!A17),"","not found")
0
Euro5Author Commented:
Thanks again!
0
Martin LissOlder than dirtCommented:
You're welcome and I'm glad I was able to help.

In my profile you'll find links to some articles I've written that may interest you.
Marty - MVP 2009 to 2015
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.