Help with Formula for matching data in multiple cells and returning true if it is a match

Status
Not open for further replies.

MichelleNeedsHelp

New Member
Joined
Jul 7, 2023
Messages
5
Office Version
  1. 365
Platform
  1. MacOS
Hi there,

I'm hoping this is relatively easy, but am not so sure. I'm not great with Excel formulas at all.

I have a massive spreadsheet that I'm trying to automate as much as possible. I have attached a picture.

In column C, it has the Country and Region of the client. There can be multiple jurisdictions that our client is in, but the two main ones are Canada and United States. I would like to populate the columns of H - W automatically using the information that is filled in to columns C - F.

For example, column H would be something along the lines of IF cell C3 = "Canada" AND cell D3 = "True" then Cell H3 = "True"
Another one could be IF cell C6 = "United States" AND cell D6 = "True" AND cell E6="True" then Cell P6 = "True"
The cells in C3 could contain multiple jurisdictions in each cell, so is it possible to have a formula look at that cell and check if the country is there?

There are also exclusions. So for the global, it would need to be something like IF cell C9 contains something other than "Canada" and "United States" then cell W9 = "TRUE"
And IF cell C7 is not equal to or does not contain "Canada" then cell T7 = "True"

I hope this is relatively easy and simple to do and I very, very much appreciate the help!!
I am posting the table below. In my sheet, the country/region column is column C for context with my examples above.

Country/RegionV3 AffiliationsPaid for premium templates?Admin.usInclude TagV3Aff_CA_reg INCLUDEV3Aff_CA_gov INCLUDEV3Aff_CA_premium INCLUDEV3Aff_USA_reg INCLUDEV2Aff_CA_reg EXCLUDEV2Aff_CA_gov EXCLUDEV2Aff_CA_premium INCLUDEV2Aff_USA_reg EXCLUDEV2Aff_USA_premium INCLUDEV3Aff_USA_premium INCLUDEUSA_premium INCLUDEUSA_reg INCLUDECA_premium INCLUDECA_gov EXCLUDECA_reg EXCLUDEglobal_reg EXCLUDE
Canada + V3Canada + V3Canada + V3 + PremiumUS + V3 +US + PremiumUSCda + Premiumif no CDA thenIf no CDA then
Canada
TRUE​
#CALC!​
United States
TRUE​
V3Aff_USA_reg INCLUDE
V2Aff_CA_gov EXCLUDE
V2Aff_USA_reg EXCLUDE
V2Aff_USA_premium INCLUDE
USA_premium INCLUDE
CA_gov EXCLUDE
CA_reg EXCLUDE
TRUE​
TRUE​
TRUE​
TRUE​
TRUE​
TRUE​
TRUE​
Canada
TRUE​
V2Aff_CA_premium INCLUDE
CA_premium INCLUDE
TRUE​
TRUE​
Canada
India
United States
TRUE​
V2Aff_CA_premium INCLUDE
CA_premium INCLUDE
TRUE​
TRUE​
United States
TRUE​
TRUE​
V2Aff_USA_premium INCLUDE
USA_premium INCLUDE
CA_gov EXCLUDE
CA_reg EXCLUDE
TRUE​
TRUE​
TRUE​
TRUE​
Canada
International
United States
TRUE​
V2Aff_CA_premium INCLUDE
V2Aff_USA_premium INCLUDE
USA_premium INCLUDE
CA_premium INCLUDE
TRUE​
TRUE​
TRUE​
TRUE​
Canada
International
United States
TRUE​
V2Aff_CA_premium INCLUDE
CA_premium INCLUDE
TRUE​
TRUE​
Canada
United States
TRUE​
TRUE​
V3Aff_CA_premium INCLUDE
CA_premium INCLUDE
TRUE​
TRUE​
United States
TRUE​
V2Aff_CA_reg EXCLUDE
V2Aff_CA_gov EXCLUDE
CA_gov EXCLUDE
CA_reg EXCLUDE
TRUE​
TRUE​
TRUE​
TRUE​
Canada
International
United States
TRUE​
V2Aff_USA_reg EXCLUDE
TRUE​
Canada
TRUE​
V2Aff_USA_reg EXCLUDE
TRUE​
Canada
TRUE​
V2Aff_CA_premium INCLUDE
V2Aff_USA_reg EXCLUDE
CA_premium INCLUDE
TRUE​
TRUE​
TRUE​
Canada
International
United States
TRUE​
V2Aff_CA_premium INCLUDE
CA_premium INCLUDE
TRUE​
TRUE​
Canada
International
United States
TRUE​
#CALC!​
United States
TRUE​
V3Aff_USA_reg INCLUDE
V2Aff_CA_gov EXCLUDE
V2Aff_USA_reg EXCLUDE
CA_gov EXCLUDE
CA_reg EXCLUDE
TRUE​
TRUE​
TRUE​
TRUE​
TRUE​
Canada
United States
TRUE​
V2Aff_CA_premium INCLUDE
CA_premium INCLUDE
TRUE​
TRUE​
United States
TRUE​
V2Aff_CA_gov EXCLUDE
V2Aff_USA_reg EXCLUDE
CA_gov EXCLUDE
CA_reg EXCLUDE
TRUE​
TRUE​
TRUE​
TRUE​
Canada
International
United States
TRUE​
#CALC!​
Spain
United States
TRUE​
V2Aff_CA_gov EXCLUDE
V2Aff_USA_reg EXCLUDE
CA_gov EXCLUDE
CA_reg EXCLUDE
TRUE​
TRUE​
TRUE​
TRUE​
International
United States
TRUE​
V2Aff_CA_gov EXCLUDE
V2Aff_USA_reg EXCLUDE
CA_gov EXCLUDE
CA_reg EXCLUDE
TRUE​
TRUE​
TRUE​
TRUE​
Canada
United States
TRUE​
V2Aff_CA_premium INCLUDE
CA_premium INCLUDE
TRUE​
TRUE​
United States
TRUE​
V2Aff_CA_gov EXCLUDE
V2Aff_USA_reg EXCLUDE
CA_gov EXCLUDE
CA_reg EXCLUDE
TRUE​
TRUE​
TRUE​
TRUE​
Canada
United States
TRUE​
TRUE​
V2Aff_CA_premium INCLUDE
V2Aff_USA_reg EXCLUDE
V2Aff_USA_premium INCLUDE
USA_premium INCLUDE
CA_premium INCLUDE
TRUE​
TRUE​
TRUE​
TRUE​
TRUE​
Canada
United States
TRUE​
V2Aff_CA_premium INCLUDE
V2Aff_USA_premium INCLUDE
USA_premium INCLUDE
TRUE​
TRUE​
TRUE​
United States
TRUE​
TRUE​
V2Aff_CA_gov EXCLUDE
V2Aff_USA_reg EXCLUDE
V2Aff_USA_premium INCLUDE
USA_premium INCLUDE
CA_gov EXCLUDE
CA_reg EXCLUDE
TRUE​
TRUE​
TRUE​
TRUE​
TRUE​
TRUE​
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Status
Not open for further replies.

Forum statistics

Threads
1,224,749
Messages
6,180,725
Members
452,995
Latest member
isldboy

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