Matching two variables in the same column for a lookup

AllMB

New Member
Joined
Mar 16, 2018
Messages
24
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
This is my first post so please work with me a bit.


I am trying to use two variables in the same column (different rows, one is a header and one is a list item) to return a number in the corresponding row of the second variable (list item) in a spreadsheet. This data is also in a pivot table that is made the same way each time the spreadsheet is made.

Below is a smaller version what I am working on. Had to remove some titles and replace for privacy purposes.

[TABLE="width: 500"]
<tbody>[TR]
[TD]Capital Projects[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
Capital​
[/TD]
[TD]1427[/TD]
[TD]1586[/TD]
[TD]8623[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
Cntrct_SVC​
[/TD]
[TD]1548[/TD]
[TD]2569[/TD]
[TD]2134[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
Consum​
[/TD]
[TD]800[/TD]
[TD]757[/TD]
[TD]1557[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
Fees&Charges​
[/TD]
[TD]215[/TD]
[TD]0[/TD]
[TD]215[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
Oth_Exp​
[/TD]
[TD]325[/TD]
[TD]561[/TD]
[TD]956[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
Services​
[/TD]
[TD]412[/TD]
[TD]564[/TD]
[TD]951[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
Utilities​
[/TD]
[TD]357[/TD]
[TD]654[/TD]
[TD]753[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]CR[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
Cntrct_SVC​
[/TD]
[TD]158[/TD]
[TD]956[/TD]
[TD]231[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
Consum​
[/TD]
[TD]300[/TD]
[TD]0[/TD]
[TD]900[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
Fees&Charges​
[/TD]
[TD]112[/TD]
[TD]962[/TD]
[TD]250[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I want to write a formula that will find "Capital Projects" and then find any of the list items below it and the match it to the first, second, or third column. This data is in a pivot table that is 400 rows long with 15 different headings and a group of lists under each heading. I am trying to make a spreadsheet that is almost idiot proof for those I work with and also that is standardized for each department. I

I have tried nesting match inside of an index inside of an if statement and I just cannot seem to make it work. Any help you can give would be appreciated.

Also tried to put in a screenshot and could get it to work.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Hi

so for the example data you have shown what do you want the formula to return?
 
Upvote 0
I want the formula to return any of the numbers based on a relative reference. The titles of the columns are "Budget, Expenditures, Encumbrance". I will need the formula to return any of the cells that are numbers.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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