Link to data that's somewhere in the same worksheet

SandsB

Well-known Member
Joined
Feb 13, 2007
Messages
705
Office Version
  1. 365
Platform
  1. Windows
Cell A1 in my file in the name of a workgroup. Cell B1 needs to link to data that's somewhere in column C between rows 10 and 50 for that workgroup.
In rows 10 through maybe 50, Column A is a workgroup name and Column C is a numeric value. My problem is each day some workgroups have no data so the cell I'm trying to pull data from is either in a different row every day or not there at all. If it's not there, I need to report 0.

So if my workgroup name (A1) is Projects and row 13 has A13=Projects and C13 = 12, I want B1 to show 12.
If the next day, Projects is in row 22 I'd want B1 to be populated with whatever is in C22.
If the next day, no row between 10 and 50 has Projects in column A, then B1 should be 0.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
How about
=IFERROR(INDEX(C10:C50,MATCH(A1,A10:A50,0)),0)
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,039
Messages
6,122,799
Members
449,095
Latest member
m_smith_solihull

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