Match Multiple Ranges & Criteria

chlin

Board Regular
Joined
Feb 4, 2009
Messages
54
<TABLE style="WIDTH: 543pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=724 border=0 x:str><COLGROUP><COL style="WIDTH: 80pt; mso-width-source: userset; mso-width-alt: 3913" width=107><COL style="WIDTH: 68pt; mso-width-source: userset; mso-width-alt: 3291" width=90><COL style="WIDTH: 48pt" span=3 width=64><COL style="WIDTH: 57pt; mso-width-source: userset; mso-width-alt: 2779" width=76><COL style="WIDTH: 50pt; mso-width-source: userset; mso-width-alt: 2450" width=67><COL style="WIDTH: 48pt" span=3 width=64><TBODY><TR style="HEIGHT: 39pt; mso-height-source: userset" height=52><TD class=xl25 style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; WIDTH: 543pt; BORDER-BOTTOM: #ece9d8; HEIGHT: 39pt; BACKGROUND-COLOR: transparent" width=724 colSpan=10 height=52>Hi,



I need some help with the below data. I need to find out if the value in G4 match the range in Column C. There are multiple ranges for the same cost centre and customer. For example, If the value in G4 is within any of the ranges in Column C that matches its cost centre and customer no, the result should be "TRUE" in H4


<TABLE style="PADDING-RIGHT: 2pt; PADDING-LEFT: 2pt; FONT-SIZE: 10pt; FONT-FAMILY: Arial,Arial; BACKGROUND-COLOR: #ffffff" cellSpacing=0 cellPadding=0 border=1><TBODY><TR style="FONT-WEIGHT: bold; FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center"><TD></TD><TD>A</TD><TD>B</TD><TD>C</TD><TD>D</TD><TD>E</TD><TD>F</TD><TD>G</TD><TD>H</TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">1</TD><TD>Sheet 1</TD><TD></TD><TD></TD><TD></TD><TD>Sheet 2</TD><TD></TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">2</TD><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">3</TD><TD>Cost centre</TD><TD>Customer </TD><TD>Range</TD><TD></TD><TD>Cost Centre</TD><TD>Customer </TD><TD>Value</TD><TD>MATCH range in Sheet 1</TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">4</TD><TD>7ABC</TD><TD style="TEXT-ALIGN: right">100001</TD><TD>2% to 3%</TD><TD></TD><TD>7BBC</TD><TD style="TEXT-ALIGN: right">100022</TD><TD style="TEXT-ALIGN: right">5%</TD><TD style="TEXT-ALIGN: right">TRUE</TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">5</TD><TD>7BBC</TD><TD style="TEXT-ALIGN: right">100022</TD><TD>1.5% to 2.3%</TD><TD></TD><TD>7CUJ</TD><TD style="TEXT-ALIGN: right">100003</TD><TD style="TEXT-ALIGN: right">1.60%</TD><TD style="TEXT-ALIGN: right">FALSE</TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">6</TD><TD>7BBC</TD><TD style="TEXT-ALIGN: right">100022</TD><TD>4% to 4.3%</TD><TD></TD><TD>7DFI</TD><TD style="TEXT-ALIGN: right">100005</TD><TD style="TEXT-ALIGN: right">7%</TD><TD style="TEXT-ALIGN: right">FALSE</TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">7</TD><TD>7BBC</TD><TD style="TEXT-ALIGN: right">100022</TD><TD>4.8% to 5.1%</TD><TD></TD><TD>7ABC</TD><TD style="TEXT-ALIGN: right">100001</TD><TD style="TEXT-ALIGN: right">2.5</TD><TD style="TEXT-ALIGN: right">TRUE</TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">8</TD><TD>7BBC</TD><TD style="TEXT-ALIGN: right">100022</TD><TD>6% to 6.3%</TD><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">9</TD><TD>7CUJ</TD><TD style="TEXT-ALIGN: right">100003</TD><TD>2.5% to 3%</TD><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">10</TD><TD>7CUJ</TD><TD style="TEXT-ALIGN: right">100034</TD><TD>1.1% to 1.5%</TD><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">11</TD><TD>7CUJ</TD><TD style="TEXT-ALIGN: right">100034</TD><TD>1.8% to 2.2%</TD><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD></TR><TR style="HEIGHT: 17px"><TD style="FONT-SIZE: 8pt; BACKGROUND-COLOR: #cacaca; TEXT-ALIGN: center">12</TD><TD>7DFI</TD><TD style="TEXT-ALIGN: right">100005</TD><TD>5% to 6.5%</TD><TD></TD><TD></TD><TD></TD><TD></TD><TD></TD></TR></TBODY></TABLE>

Any help is appreciated ;)

</TD></TR></TBODY></TABLE>
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Forum statistics

Threads
1,224,587
Messages
6,179,738
Members
452,940
Latest member
Lawrenceiow

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