Find row value based on four criteria!!

Bonz

Board Regular
Joined
Dec 10, 2007
Messages
149
Hi All,

I’m trying to find the value in a row based on three other row values and one column value.

For example in cell K8 of the Target I need the value in cell L30 from the source. This would be based on the other color matched values.

I've added the coloring to help illustrate what I'm looking for.

So the following values in target: (Site Utility, meter and month) are used to locate and get the correct value from the Source.

The site value in D6 does change depending on the site I want to drill into; if that matters.

I have the following named ranges in the Source: (Sites, Utilities, Meters & Months) which I have tripled checked and are correct.

After searching the site I managed the following two formulas but can’t get them to work. Any suggestions would be appreciated.



THANKS!


INDEX(MeterDatabase, SUMPRODUCT((Sites=D6),--(Utilities=E8),--(Meters=F8)),MATCH(K6, Months,0))

VLOOKUP(SUMPRODUCT(--(Sites=D6),--(Utilities=E8),--(Meters=F8)),MeterDatabase, MATCH(K6, Months,0))
Excel Workbook
BCDEFGHIJKLM
6Changes--->>>>>Site 3JanFebMarAprMayJunJul
7ElectricityMeter 1
8ElectricityMeter 22987
9TargetElectricityMeter 3
10ElectricityMeter 4
11ElectricityMeter 5
12GasMeter 1
13GasMeter 2
14GasMeter 3
15GasMeter 4
16WaterMeter 1
17WaterMeter 2
18WaterMeter 3
19WaterMeter 4
20WaterMeter 5
21WaterMeter 6
22
23SitesUtilitiesMetersJanFebMarAprMayJun
24Site 1ElectricityMeter 1Tracked000025140
25SourceSite 1GasMeter 1Tracked00006880
26Site 1WaterMeter 1Tracked00008670
27Site 2ElectricityMeter 1Tracked000000
28Site 2GasMeter 1Tracked0007268680
29Site 3ElectricityMeter 1Tracked0019969312840
30Site 3ElectricityMeter 2Tracked00115816829870
31Site 3ElectricityMeter 3Tracked0738009770
32Site 3ElectricityMeter 4Tracked00891116521410
33Site 3ElectricityMeter 5Tracked0625096318770
34Site 3GasMeter 1Tracked2419140033550
35Site 3WaterMeter 1Tracked0097602210
Sheet1
Excel 2007
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,215,236
Messages
6,123,799
Members
449,127
Latest member
Cyko

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