Need help with Excel Formula

%3CLINGO-SUB%20id%3D%22lingo-sub-2156272%22%20slang%3D%22en-US%22%3ENeed%20help%20with%20Excel%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2156272%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20two%20sheets%20that%20have%20the%20same%20headers%2C%20A1%20Address%2C%20B1%20City%2C%20C1%20State%2C%20D1%20Site%20ID.%26nbsp%3B%20Sheet%20Old%20has%20775%20items%20and%20Sheet%20New%20has%201205.%26nbsp%3B%20I%20want%20to%20compare%20address%20between%20the%20two%20and%20place%20the%20identical%20in%20sheet%203%20under%20Address%20in%20A1%20while%20highlighting%20in%20a%20color.%26nbsp%3B%20Then%20I%20want%20to%20take%20the%20Site%20ID%23%20from%20Sheet%20New%20and%20place%20in%20Sheet%203%20under%20Site%20ID%20and%20highlight%20in%20color%20for%20both.%26nbsp%3B%20I%20then%20want%20to%20do%20the%20same%20for%20unique%20address%20in%20both%20sheet%201%20and%202%20and%20add%20to%20sheet%204%20and%20sheet%205%20and%20highlight%20in%20color%20for%20both.%26nbsp%3B%20I%20have%20tried%20vlookup%2C%20conditional%20formating%20but%20have%20not%20been%20able%20to%20complete%20this%20task.%26nbsp%3B%20Hoping%20someone%20with%20more%20knowledge%20can%20help%20provide%20some%20guidance.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETim%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2156272%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EFormulas%20and%20Functions%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2156340%22%20slang%3D%22en-US%22%3ERe%3A%20Need%20help%20with%20Excel%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2156340%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F974968%22%20target%3D%22_blank%22%3E%40tviss64%3C%2FA%3EAttached%20is%20an%20example%20of%20New%2C%20Old%20and%20sheet%203%2C%204%2C%205%20of%20what%20I%20am%20trying%20to%20do.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2156372%22%20slang%3D%22en-US%22%3ERe%3A%20Need%20help%20with%20Excel%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2156372%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F974968%22%20target%3D%22_blank%22%3E%40tviss64%3C%2FA%3E%26nbsp%3BWhy%20not%20manually%20indicate%20in%20your%20simplified%20example%20what%20you%20would%20expect%20to%20see%20in%20each%20of%20Sheets%203%2C%204%20and%205.%20Including%20the%20colours%20and%20the%20logic%20behind%20it.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2156397%22%20slang%3D%22en-US%22%3ERe%3A%20Need%20help%20with%20Excel%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2156397%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3EGood%20suggestion.%26nbsp%3B%20I%20have%20added%20the%20example%20in%20the%20attached%20file.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2156411%22%20slang%3D%22en-US%22%3ERe%3A%20Need%20help%20with%20Excel%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2156411%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F974968%22%20target%3D%22_blank%22%3E%40tviss64%3C%2FA%3E%26nbsp%3BGreat!%20I'm%20on%20my%20way%20out%20now.%20Gladly%20leave%20it%20to%20someone%20else%20her%20to%20resolve.%20If%20not%2C%20I'll%20get%20back%20to%20you%20later.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2156990%22%20slang%3D%22en-US%22%3ERe%3A%20Need%20help%20with%20Excel%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2156990%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F403176%22%20target%3D%22_blank%22%3E%40Riny_van_Eekelen%3C%2FA%3EThank%20you!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2158372%22%20slang%3D%22en-US%22%3ERe%3A%20Need%20help%20with%20Excel%20Formula%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2158372%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F974968%22%20target%3D%22_blank%22%3E%40tviss64%3C%2FA%3E%26nbsp%3BThis%20is%20something%20that%20would%20fit%20Power%20Query%20(PQ)%20very%20well.%20Especially%20if%20you%20have%20to%20do%20this%20regularly%20and%20on%20larger%20data%20sets.%20Created%20two%20structured%20tables%20from%20the%20Original%20and%20New%20data.%20Queried%20them%20and%20did%20three%20merges%20that%20load%20the%20desired%20records%20back%20to%20your%20sheets%203%2C%204%20and%205.%20See%20attached%20workbook.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAre%20you%20familiar%20with%20PQ%3F%20If%20not%2C%20the%20site%20in%20the%20link%20below%20would%20be%20a%20good%20place%20to%20start.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fexceloffthegrid.com%2Fpower-query-introduction%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fexceloffthegrid.com%2Fpower-query-introduction%2F%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I have two sheets that have the same headers, A1 Address, B1 City, C1 State, D1 Site ID.  Sheet Old has 775 items and Sheet New has 1205.  I want to compare address between the two and place the identical in sheet 3 under Address in A1 while highlighting in a color.  Then I want to take the Site ID# from Sheet New and place in Sheet 3 under Site ID and highlight in color for both.  I then want to do the same for unique address in both sheet 1 and 2 and add to sheet 4 and sheet 5 and highlight in color for both.  I have tried vlookup, conditional formating but have not been able to complete this task.  Hoping someone with more knowledge can help provide some guidance.

 

Thanks,

 

Tim

6 Replies

@tviss64Attached is an example of New, Old and sheet 3, 4, 5 of what I am trying to do.

@tviss64 Why not manually indicate in your simplified example what you would expect to see in each of Sheets 3, 4 and 5. Including the colours and the logic behind it.

@Riny_van_EekelenGood suggestion.  I have added the example in the attached file.

@tviss64 Great! I'm on my way out now. Gladly leave it to someone else her to resolve. If not, I'll get back to you later.

@Riny_van_EekelenThank you!

@tviss64 This is something that would fit Power Query (PQ) very well. Especially if you have to do this regularly and on larger data sets. Created two structured tables from the Original and New data. Queried them and did three merges that load the desired records back to your sheets 3, 4 and 5. See attached workbook.

 

Are you familiar with PQ? If not, the site in the link below would be a good place to start.

https://exceloffthegrid.com/power-query-introduction/