May 21 2023 06:11 AM
Hello! I am trying to figure out a way to match 2 columns (location and ID) from one sheet to 2 columns on a second sheet (location and ID) to return information from a 3rd column on the second sheet (statement type). My issue is that the ID may be the same but the location could change (pt 123 at office 1 is different from pt 123 at office 2) but I need a master list of the statement types. Any guidance would be appreciated! Thank you very much!
May 21 2023 06:20 AM
SolutionTo match two columns (location and ID) from one sheet to two columns (location and ID) on a second sheet and retrieve information from a third column (statement type), you can use a combination of the INDEX and MATCH functions in Excel.
Here's a step-by-step guide:
Assuming:
=INDEX(Sheet2!$C$2:$C$100, MATCH(A2&B2, Sheet2!$A$2:$A$100&Sheet2!$B$2:$B$100, 0))
Make sure to adjust the range references (Sheet2!$C$2:$C$100, Sheet2!$A$2:$A$100, and Sheet2!$B$2:$B$100) to match the actual range containing the statement types and the corresponding location and ID on Sheet2.
The formula uses the INDEX and MATCH functions together:
This approach allows you to match the two columns and retrieve the statement type even if the location may change for the same ID.
May 21 2023 06:32 AM
Mar 14 2024 06:40 AM
how can we do this in sharepoint file
Mar 14 2024 06:52 AM
In SharePoint Online, you can achieve a similar functionality by utilizing calculated columns and lookup columns within a SharePoint list. Here's how you can set it up:
Assuming you have two lists in SharePoint:
Follow these steps:
1. Add a Lookup Column to List 1:
2. Create a Calculated Column to Concatenate Location and ID:
For example: =[Location]&"-"&[ID]
3. Display the Statement Type:
By setting up the lookup column and calculated column in List 1, SharePoint will automatically retrieve the statement type from List 2 based on the matching location and ID whenever you add or edit items in List 1. This provides similar functionality to the Excel solution, allowing you to maintain a master list of statement types while matching data from another list. The text was created with the help of AI.
My answers are voluntary and without guarantee!
Hope this will help you.
May 21 2023 06:20 AM
SolutionTo match two columns (location and ID) from one sheet to two columns (location and ID) on a second sheet and retrieve information from a third column (statement type), you can use a combination of the INDEX and MATCH functions in Excel.
Here's a step-by-step guide:
Assuming:
=INDEX(Sheet2!$C$2:$C$100, MATCH(A2&B2, Sheet2!$A$2:$A$100&Sheet2!$B$2:$B$100, 0))
Make sure to adjust the range references (Sheet2!$C$2:$C$100, Sheet2!$A$2:$A$100, and Sheet2!$B$2:$B$100) to match the actual range containing the statement types and the corresponding location and ID on Sheet2.
The formula uses the INDEX and MATCH functions together:
This approach allows you to match the two columns and retrieve the statement type even if the location may change for the same ID.