if area between and numbe rof bedroom then value

cjharley1450

New Member
Joined
Nov 24, 2015
Messages
9
Hi All
I am trying to do the following
If area required is 83, with 3 bedrooms. then the value required is 60000

a B C D E F G H

1 areas bedrooms
2 1 2 3 4 5
3 0 50 35000 40000 50000 60000 65000
4 51 60 35000 40000 50000 60000 65000
5 61 70 45000 45000 50000 60000 65000
6 71 80 50000 50000 50000 60000 65000
7 81 90 55000 60000 60000 60000 65000
8 91 100 65000 60000 65000 60000 65000


area bedrooms value
82 3 60000
how do i do this, completely lost
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Assuming I got your data lined up properly, this should work:

ABCDEFGHIJKLM
areasbedroomsareabedroomsvalue

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]

[TD="align: right"][/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]2[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]82[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]60000[/TD]

[TD="align: center"]3[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]50[/TD]
[TD="align: right"]35000[/TD]
[TD="align: right"]40000[/TD]
[TD="align: right"]50000[/TD]
[TD="align: right"]60000[/TD]
[TD="align: right"]65000[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]4[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]51[/TD]
[TD="align: right"]60[/TD]
[TD="align: right"]35000[/TD]
[TD="align: right"]40000[/TD]
[TD="align: right"]50000[/TD]
[TD="align: right"]60000[/TD]
[TD="align: right"]65000[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]5[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]61[/TD]
[TD="align: right"]70[/TD]
[TD="align: right"]45000[/TD]
[TD="align: right"]45000[/TD]
[TD="align: right"]50000[/TD]
[TD="align: right"]60000[/TD]
[TD="align: right"]65000[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]6[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]71[/TD]
[TD="align: right"]80[/TD]
[TD="align: right"]50000[/TD]
[TD="align: right"]50000[/TD]
[TD="align: right"]50000[/TD]
[TD="align: right"]60000[/TD]
[TD="align: right"]65000[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]7[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]81[/TD]
[TD="align: right"]90[/TD]
[TD="align: right"]55000[/TD]
[TD="align: right"]60000[/TD]
[TD="align: right"]60000[/TD]
[TD="align: right"]60000[/TD]
[TD="align: right"]65000[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]8[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]91[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]65000[/TD]
[TD="align: right"]60000[/TD]
[TD="align: right"]65000[/TD]
[TD="align: right"]60000[/TD]
[TD="align: right"]65000[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]9[/TD]
[TD="align: right"]7[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]10[/TD]
[TD="align: right"]8[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]11[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

</tbody>
Sheet2

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]M2[/TH]
[TD="align: left"]=INDEX(D3:H8,MATCH(K2,B3:B8),MATCH(L2,D2:H2))[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
assuming i got your data lined up properly, this should work:

abcdefghijklm
areasbedroomsareabedroomsvalue

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[td="align: Center"]1[/td]
[td="align: Right"][/td]

[td="align: Right"][/td]

[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]

[td="align: Center"]2[/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"]1[/td]
[td="align: Right"]2[/td]
[td="align: Right"]3[/td]
[td="align: Right"]4[/td]
[td="align: Right"]5[/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"]82[/td]
[td="align: Right"]3[/td]
[td="align: Right"]60000[/td]

[td="align: Center"]3[/td]
[td="align: Right"]1[/td]
[td="align: Right"]0[/td]
[td="align: Right"]50[/td]
[td="align: Right"]35000[/td]
[td="align: Right"]40000[/td]
[td="align: Right"]50000[/td]
[td="align: Right"]60000[/td]
[td="align: Right"]65000[/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]

[td="align: Center"]4[/td]
[td="align: Right"]2[/td]
[td="align: Right"]51[/td]
[td="align: Right"]60[/td]
[td="align: Right"]35000[/td]
[td="align: Right"]40000[/td]
[td="align: Right"]50000[/td]
[td="align: Right"]60000[/td]
[td="align: Right"]65000[/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]

[td="align: Center"]5[/td]
[td="align: Right"]3[/td]
[td="align: Right"]61[/td]
[td="align: Right"]70[/td]
[td="align: Right"]45000[/td]
[td="align: Right"]45000[/td]
[td="align: Right"]50000[/td]
[td="align: Right"]60000[/td]
[td="align: Right"]65000[/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]

[td="align: Center"]6[/td]
[td="align: Right"]4[/td]
[td="align: Right"]71[/td]
[td="align: Right"]80[/td]
[td="align: Right"]50000[/td]
[td="align: Right"]50000[/td]
[td="align: Right"]50000[/td]
[td="align: Right"]60000[/td]
[td="align: Right"]65000[/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]

[td="align: Center"]7[/td]
[td="align: Right"]5[/td]
[td="align: Right"]81[/td]
[td="align: Right"]90[/td]
[td="align: Right"]55000[/td]
[td="align: Right"]60000[/td]
[td="align: Right"]60000[/td]
[td="align: Right"]60000[/td]
[td="align: Right"]65000[/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]

[td="align: Center"]8[/td]
[td="align: Right"]6[/td]
[td="align: Right"]91[/td]
[td="align: Right"]100[/td]
[td="align: Right"]65000[/td]
[td="align: Right"]60000[/td]
[td="align: Right"]65000[/td]
[td="align: Right"]60000[/td]
[td="align: Right"]65000[/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]

[td="align: Center"]9[/td]
[td="align: Right"]7[/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]

[td="align: Center"]10[/td]
[td="align: Right"]8[/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]

[td="align: Center"]11[/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]
[td="align: Right"][/td]

</tbody>
sheet2

[table="width: 85%"]
<tbody>[tr]
[td]worksheet formulas[table="width: 100%"]
<thead>[tr="bgcolor: [url=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=dae7f5]#dae7f5[/url] "]
[th="width: 10px"]cell[/th]
[th="align: Left"]formula[/th]
[/tr]
</thead><tbody>[tr]
[th="width: 10px, bgcolor: [url=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=dae7f5]#dae7f5[/url] "]m2[/th]
[td="align: Left"]=index(d3:h8,match(k2,b3:b8),match(l2,d2:h2))[/td]
[/tr]
</tbody>[/table]
[/td]
[/tr]
</tbody>[/table]

thanks, worked a treat buddy
 
Upvote 0

Forum statistics

Threads
1,223,910
Messages
6,175,318
Members
452,634
Latest member
cpostell

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