Returning Cells Based on Values

Excel_77

Active Member
Joined
Sep 15, 2016
Messages
306
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

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
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,215,671
Messages
6,126,131
Members
449,293
Latest member
yallaire64

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