VLOOKUP a value based on picking 2 criteria from drop down boxes

Mark Roberts

Board Regular
Joined
Jul 9, 2012
Messages
68
Hi All,

I don't know if this is possible at all. I ahve created two drop down boxes. One called "YEAR" and another for "BAND/PROJECT".
What I need the end user to do is change these to whatever they want. So they could choose Year 2 and Band/Project C as per the below. In this case I would like the Total Cost to appear as 81000.

The Total Costs Cell is D4 (this is where I would like 81000 to show)

The YEAR drop dwon box is Cell C4 and the BAND/PROJECT drop down box is in Cell C5.

The first table shown below and where I would like to LOOKUP are cells F50:K66

Many thanks for any help!

Regards,
Mark





YearProjectProject CostsPrint CostsStaff CostsTotal Costs
1A10000150002000045000
1B12000170002200051000
1C14000190002400057000
1D16000210002600063000
2A18000230002800069000
2B20000250003000075000
2C22000270003200081000
2D24000290003400087000
3A26000310003600093000
3B28000330003800099000
3C300003500040000105000
3D320003700042000111000
4A340003900044000117000
4B360004100046000123000
4C380004300048000129000
4D400004500050000135000

<tbody>
</tbody><colgroup><col><col span="4"><col></colgroup>
Cost
YEAR2
BANDC

<colgroup><col style="width: 48pt;" width="64"> <col style="width: 54pt; mso-width-source: userset; mso-width-alt: 2633;" width="72"> <col style="width: 78pt; mso-width-source: userset; mso-width-alt: 3803;" width="104"> <col style="width: 53pt; mso-width-source: userset; mso-width-alt: 2560;" width="70"> <col style="width: 52pt; mso-width-source: userset; mso-width-alt: 2523;" width="69"> <tbody>
</tbody>
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
You could use sumifs: =Sumifs('Project Cost Range', 'Year Range', Year, 'Band Range', Band)

Substitute your ranges and reference the cells for year and band.
 
Upvote 0
More specifically with your values the formula should be =Sumifs($K$50:$K$66,$F$50:$F$66,$C$4,$G$50:$G$66,$C$5)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,417
Messages
6,124,789
Members
449,188
Latest member
Hoffk036

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