an approximate match function needed.

kelly mort

Well-known Member
Joined
Apr 10, 2017
Messages
2,169
Office Version
  1. 2016
Platform
  1. Windows
5010015020025030035040045050055060065070075080085090095010001050110011501200
5A1B1C1D1E1F1G1H1I1J1K1L1M1N1O1P1Q1R1S1T1U1V1W1X1
10A2B2C2D2E2F2G2H1I2J2K2L2M2N2O2P2Q2R2S2T2U2V2W2X2
15A3B3C3D3E3F3G3H1I3J3K3L3M3N3O3P3Q3R3S3T3U3V3W3X3
20A4B4C4D4E4F4G4H1I4J4K4L4M4N4O4P4Q4R4S4T4U4V4W4X4
25A5B5C5D5E5F5G5H1I5J5K5L5M5N5O5P5Q1R5S5T5U5V5W5X5
30A6B6C6D6E6F6G6H1I6J6K6L6M6N6O6P6Q2R6S6T6U6V6W6X6
35A7B7C7D7E7F7G7H1I7J7K7L7M7N7O7P7Q3R7S7T7U7V7W7X7
40A8B8C8D8E8F8G8H1I8J8K8L8M8N8O8P8Q4R8S8T8U8V8W8X8
45A9B9C9D9E9F9G9H1I9J9K9L9M9N9O9P9Q1R9S9T9U9V9W9X9
50A10B10C10D10E10F10G10H1I10J10K10L10M10N10O10P10Q2R10S10T10U10V10W10X10
55A11B11C11D11E11F11G11H1I11J11K11L11M11N11O11P11Q3R11S11T11U11V11W11X11
60A12B12C12D12E12F12G12H1I12J12K12L12M12N12O12P12Q4R12S12T12U12V12W12X12
65A13B13C13D13E13F13G13H1I13J13K13L13M13N13O13P13Q1R13S13T13U13V13W13X13
70A14B14C14D14E14F14G14H1I14J14K14L14M14N14O14P14Q2R14S14T14U14V14W14X14
75A15B15C15D15E15F15G15H1I15J15K15L15M15N15O15P15Q3R15S15T15U15V15W15X15
80A16B16C16D16E16F16G16H1I16J16K16L16M16N16O16P16Q4R16S16T16U16V16W16X16
85A17B17C17D17E17F17G17H1I17J17K17L17M17N17O17P17Q1R17S17T17U17V17W17X17
90A18B18C18D18E18F18G18H1I18J18K18L18M18N18O18P18Q2R18S18T18U18V18W18X18
95A19B19C19D19E19F19G19H1I19J19K19L19M19N19O19P19Q3R19S19T19U19V19W19X19
100A20B20C20D20E20F20G20H1I20J20K20L20M20N20O20P20Q4R20S20T20U20V20W20X20

<tbody>
</tbody>

I have the table above in my worksheet and i need a lookup formula that will use approximate match to get values from the table. The table takes the range; B2:Z22. Then in AC2 I have a value there say 22 and in AC3 another value say 89. Then I want the match pick B5 from the Table and show it in AC4. I hope my point is clear for understanding. Thanks very much in advance.
Kelly
 
Hi, Kelly. The first formula would only work with the exact data you gave in the example data set.

If you are going to use other data that isn't letter-number combinations, use this version in AC3:

=INDEX($C$3:$Z$22,CEILING($AC$2,5)/5,CEILING($AC$3,50)/50)

CEILING() just rounds up to the nearest number you use as the second argument. Since your rows are numbered in 5s and your columns are numbered in 50s, we just round your input cell AC2 up to the nearest 5 and divide by 5 to get the INDEX row, and round up AC3 to the nearest 50 then divide by 50 to get the INDEX column.

Oh, Okay I have now understood your formula!!!. Thanks for it. But the first too seem to be working fine still.
 
Upvote 0

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

Forum statistics

Threads
1,214,649
Messages
6,120,728
Members
448,987
Latest member
marion_davis

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