lookup based on 2 criteria

chad13

Board Regular
Joined
Oct 14, 2002
Messages
105
I need a formula to look up a value in column a and a value in column b and return the value that is in column c.

For example:

Part Number Date Unit $
Part 1 12/17/08 $0.68
Part 2 03/31/10 $0.21
Part 3 04/20/10 $26.05
Part 4 09/14/09 $4.31
Part 1 03/10/09 $1,693.59
Part 2 11/04/08 $13.17
Part 3 09/29/09 $6.02
Part 4 02/17/10 $11.17
Part 1 11/09/09 $34.59
Part 2 06/23/09 $34.94
Part 3 01/13/10 $0.11

So if I want Part 3 with a date of 09/29/09, then the result would be $6.02.

Thanks,

Chad
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Here's 1 way (D1): needs xl2007+


<TABLE style="BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 2pt; PADDING-RIGHT: 2pt; FONT-FAMILY: Calibri,Arial; FONT-SIZE: 11pt" border=1 cellSpacing=0 cellPadding=0><COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 64px"><COL style="WIDTH: 68px"><COL style="WIDTH: 64px"><COL style="WIDTH: 64px"></COLGROUP><TBODY><TR style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt; FONT-WEIGHT: bold"><TD> </TD><TD style="BORDER-BOTTOM: #f0f0f0 3px double; BORDER-LEFT: #f0f0f0 3px double; BORDER-TOP: #f0f0f0 3px double; BORDER-RIGHT: #f0f0f0 3px double">A</TD><TD style="BORDER-BOTTOM: #f0f0f0 3px double; BORDER-LEFT: #f0f0f0 3px double; BORDER-TOP: #f0f0f0 3px double; BORDER-RIGHT: #f0f0f0 3px double">B</TD><TD style="BORDER-BOTTOM: #f0f0f0 3px double; BORDER-LEFT: #f0f0f0 3px double; BORDER-TOP: #f0f0f0 3px double; BORDER-RIGHT: #f0f0f0 3px double">C</TD><TD style="BORDER-BOTTOM: #f0f0f0 3px double; BORDER-LEFT: #f0f0f0 3px double; BORDER-TOP: #f0f0f0 3px double; BORDER-RIGHT: #f0f0f0 3px double">D</TD></TR><TR style="HEIGHT: 18px"><TD style="BORDER-BOTTOM: #f0f0f0 3px double; TEXT-ALIGN: center; BORDER-LEFT: #f0f0f0 3px double; BACKGROUND-COLOR: #cacaca; BORDER-TOP: #f0f0f0 3px double; BORDER-RIGHT: #f0f0f0 3px double">1</TD><TD style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-TOP: #000000 1px solid; BORDER-RIGHT: #000000 1px solid">Part 3</TD><TD style="BORDER-BOTTOM: #000000 1px solid; TEXT-ALIGN: right; BORDER-TOP: #000000 1px solid; BORDER-RIGHT: #000000 1px solid">9/29/2009</TD><TD style="BORDER-RIGHT: #000000 1px solid"> </TD><TD style="BORDER-BOTTOM: #000000 1px solid; TEXT-ALIGN: right; BORDER-TOP: #000000 1px solid; BORDER-RIGHT: #000000 1px solid">6.02</TD></TR><TR style="HEIGHT: 18px"><TD style="BORDER-BOTTOM: #f0f0f0 3px double; TEXT-ALIGN: center; BORDER-LEFT: #f0f0f0 3px double; BACKGROUND-COLOR: #cacaca; BORDER-TOP: #f0f0f0 3px double; BORDER-RIGHT: #f0f0f0 3px double">2</TD><TD> </TD><TD> </TD><TD> </TD><TD> </TD></TR><TR style="HEIGHT: 18px"><TD style="BORDER-BOTTOM: #f0f0f0 3px double; TEXT-ALIGN: center; BORDER-LEFT: #f0f0f0 3px double; BACKGROUND-COLOR: #cacaca; BORDER-TOP: #f0f0f0 3px double; BORDER-RIGHT: #f0f0f0 3px double">3</TD><TD style="BORDER-BOTTOM: #000000 1px solid"> </TD><TD style="BORDER-BOTTOM: #000000 1px solid"> </TD><TD style="BORDER-BOTTOM: #000000 1px solid"> </TD><TD> </TD></TR><TR style="HEIGHT: 18px"><TD style="BORDER-BOTTOM: #f0f0f0 3px double; TEXT-ALIGN: center; BORDER-LEFT: #f0f0f0 3px double; BACKGROUND-COLOR: #cacaca; BORDER-TOP: #f0f0f0 3px double; BORDER-RIGHT: #f0f0f0 3px double">4</TD><TD style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid">Part 2</TD><TD style="BORDER-BOTTOM: #000000 1px solid; TEXT-ALIGN: right; BORDER-RIGHT: #000000 1px solid">8/1/2009</TD><TD style="BORDER-BOTTOM: #000000 1px solid; TEXT-ALIGN: right; BORDER-RIGHT: #000000 1px solid">5.00</TD><TD> </TD></TR><TR style="HEIGHT: 18px"><TD style="BORDER-BOTTOM: #f0f0f0 3px double; TEXT-ALIGN: center; BORDER-LEFT: #f0f0f0 3px double; BACKGROUND-COLOR: #cacaca; BORDER-TOP: #f0f0f0 3px double; BORDER-RIGHT: #f0f0f0 3px double">5</TD><TD style="BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid">Part 3</TD><TD style="BORDER-BOTTOM: #000000 1px solid; TEXT-ALIGN: right; BORDER-RIGHT: #000000 1px solid">9/29/2009</TD><TD style="BORDER-BOTTOM: #000000 1px solid; TEXT-ALIGN: right; BORDER-RIGHT: #000000 1px solid">6.02</TD><TD> </TD></TR></TBODY></TABLE>
<TABLE style="BORDER-BOTTOM-STYLE: groove; BORDER-BOTTOM-COLOR: #00ff00; BORDER-RIGHT-STYLE: groove; BACKGROUND-COLOR: #fffcf9; BORDER-TOP-COLOR: #00ff00; FONT-FAMILY: Arial; BORDER-TOP-STYLE: groove; COLOR: #000000; BORDER-RIGHT-COLOR: #00ff00; FONT-SIZE: 10pt; BORDER-LEFT-STYLE: groove; BORDER-LEFT-COLOR: #00ff00"><TBODY><TR><TD>Spreadsheet Formulas</TD></TR><TR><TD><TABLE style="FONT-FAMILY: Arial; FONT-SIZE: 9pt" border=1 cellSpacing=0 cellPadding=2><TBODY><TR style="BACKGROUND-COLOR: #cacaca; FONT-SIZE: 10pt"><TD>Cell</TD><TD>Formula</TD></TR><TR><TD>D1</TD><TD>=SUMIFS(C4:C5,A4:A5,"="&A1,B4:B5,"="&B1)</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
There's probably a sumproduct version as well.
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,827
Members
452,946
Latest member
JoseDavid

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