Double Lookup

DoosanRuss

New Member
Joined
Aug 3, 2010
Messages
25
Hello All
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
<o:p></o:p>
<o:p></o:p>
I've been working on this all day and I could really do with a hand <o:p></o:p>
<o:p></o:p>
<o:p></o:p>
What I'm looking to do is lookup the NB value (S2) in column A4:A35, then get the closest Match for the ºC value (T2) in column G4:G35 and return the Cost (£) in column O (for Oscar).

https://docs.google.com/leaf?id=0B9...IxODQtNjQwYmRhMTliMjg1&hl=en&authkey=CKmq_PQB
<o:p></o:p>
<o:p></o:p>
I've tried putting in a helper column and using formula =A4&G4

<o:p></o:p>
Then using a single lookup to the helper column, I thought this was working fine until I changed the range_lookup to ‘1’ “Closest Match” as sometimes ºC might not be exactly as listed.

<o:p></o:p>
The problem I found: NB 25 & 30 ºC = 2530
NB 25 & 300 ºC =25300
<o:p></o:p>
If I use closest match for 30 ºC it goes to the 25300 version, which is more expensive.

<o:p></o:p>
I’ve also tried C Pearson examples = INDEX(A4:G35,MATCH(MIN(ABS(A4:G35-S2)),ABS(A4:G35-T2),0),1)
<o:p></o:p>
<o:p></o:p>
But I can’t align the list into ascending order to suit this formula

<o:p></o:p>
Any help will as always be gratefully received<o:p></o:p>
<o:p></o:p>
<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /><v:shapetype id=_x0000_t75 stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" o:preferrelative="t" o:spt="75" coordsize="21600,21600"><v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><v:path o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"></v:path><o:lock aspectratio="t" v:ext="edit"></o:lock></v:shapetype><o:p></o:p>
<o:p></o:p>
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,223,244
Messages
6,170,976
Members
452,372
Latest member
Natalie18

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