Returning Cells Based on Values

Excel_77

Active Member
Joined
Sep 15, 2016
Messages
311
Office Version
  1. 2019
Platform
  1. Windows
I have two tabs namely "Working" and "Source" but I need to do the following:

1. In the "Working" tab I have a list of unique IDs in column A, I want to match these with Column A of the Source tab which also contains IDs.

2. Once the corresponding ID has been found in the "Source" tab I want to find the value in row named "football" (all rows are across line one).

3. Within the football heading if the content starts with the word "Yes" then I want to return the corresponding value in the heading called "Golf" otherwise I want to return what is within the "football" heading column, can this be done?

Thanks
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Maybe something like this (assumes the headers in Source A1:Z1 - adjust to suit)

Formula in B2 of Working copied down
=IFERROR(IF(LEFT(INDEX(Source!A:Z,MATCH(A2,Source!A:A,0),MATCH("football",Source!$A$1:$Z$1,0)),3)="Yes",INDEX(Source!A:Z,MATCH(A2,Source!A:A,0),MATCH("Golf",Source!$A$1:$Z$1,0)),INDEX(Source!A:Z,MATCH(A2,Source!A:A,0),MATCH("football",Source!$A$1:$Z$1,0))),"ID not found")

M.
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,631
Latest member
a_potato

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