Index and Match - Wrong Value?

emergguy

New Member
Joined
Sep 3, 2023
Messages
8
Office Version
  1. 365
Platform
  1. MacOS
IndexMatchProblem.xlsx
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBF
3
4Time0600_1430_0700_1300_0700_1500_0700_1530_0800_1400_0800_1430_0800_1500_0800_1530_0800_1600_0800_1630_0900_1500_0900_1530_0900_1600_0900_1630_0900_1700_0900_1730_1000_1600_1000_1630_1000_1700_1000_1730_1000_1800_1000_1830_1100_1700_1100_1730_1100_1800_1100_1830_1100_1900_1100_1930_1200_1800_1200_1830_1200_1900_1200_1930_1200_2000_1200_2030_1300_1900_1300_1930_1300_2000_1300_2100_1300_2130_1400_2000_1400_2030_1400_2130_1400_2200_1400_2230_1500_2100_1500_2130_1500_2300_1500_2330_1600_2200_1600_2230_1600_2300_1600_2300_1600_0000_1600_0030_1700_2300_1700_2330_
5Rate$195.00$150.00$210.00$225.00$180.00$195.00$210.00$225.00$240.00$249.00$180.00$195.00$210.00$219.00$228.00$237.00$180.00$189.00$198.00$207.00$216.00$225.00$168.00$177.00$186.00$195.00$204.00$213.00$156.00$165.00$174.00$183.00$192.00$201.00$144.00$153.00$162.00$180.00$189.00$132.00$141.00$159.00$168.00$177.00$120.00$129.00$156.00$165.00$108.00$117.00$126.00$126.00$144.00$170.00$108.00$117.00
6
7Time Query1600_2230_
8Result$ 170.00
9
10* Result should be $117
11
12
Sheet1
Cell Formulas
RangeFormula
B8B8=INDEX($C$5:$BF$5,MATCH($B$7,$C$4:$BF$4))
Cells with Data Validation
CellAllowCriteria
B7List=$C$4:$BF$4


Apologies for the long Row 4 and Row 5, but it is part of my problem.

I thought I had formulated a simple Index and Match formula to find the 'Time Range' listed in B7. I even created the options with Data Validations to ensure no typos in data entry.
As you can see, the Index/Match returns the value of $170, when it should return $117 (I manually highlighted it in AZ5)
Every other time works in the formula. The only value of $170 is found in BD5.

What is bothering me is if I physically delete a column (almost any column), I get the correct output of $117.

I believe all Time Ranges are individual and non-duplicated.

I am sure I am missing something simple, or perhaps the eyes are too buggy, or maybe a limitation of Index/Match? But I certainly appreciate any advice!

Thanks in advance!
 

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.
Change your formula...
Book1
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBF
4Time0600_1430_0700_1300_0700_1500_0700_1530_0800_1400_0800_1430_0800_1500_0800_1530_0800_1600_0800_1630_0900_1500_0900_1530_0900_1600_0900_1630_0900_1700_0900_1730_1000_1600_1000_1630_1000_1700_1000_1730_1000_1800_1000_1830_1100_1700_1100_1730_1100_1800_1100_1830_1100_1900_1100_1930_1200_1800_1200_1830_1200_1900_1200_1930_1200_2000_1200_2030_1300_1900_1300_1930_1300_2000_1300_2100_1300_2130_1400_2000_1400_2030_1400_2130_1400_2200_1400_2230_1500_2100_1500_2130_1500_2300_1500_2330_1600_2200_1600_2230_1600_2300_1600_2300_1600_0000_1600_0030_1700_2300_1700_2330_
5Rate195150210225180195210225240249180195210219228237180189198207216225168177186195204213156165174183192201144153162180189132141159168177120129156165108117126126144170108117
6
7Time Query1600_2230_
8Result117
9
Sheet1
Cell Formulas
RangeFormula
B8B8=INDEX($C$5:$BF$5,MATCH($B$7,$C$4:$BF$4,0))
 
Upvote 1
Solution
Try changing your formula to:
=INDEX($C$5:$BF$5,MATCH($B$7,$C$4:$BF$4,0))
 
Upvote 0
Change your formula...
Book1
ABCDEFGHIJKLMNOPQRSTUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQARASATAUAVAWAXAYAZBABBBCBDBEBF
4Time0600_1430_0700_1300_0700_1500_0700_1530_0800_1400_0800_1430_0800_1500_0800_1530_0800_1600_0800_1630_0900_1500_0900_1530_0900_1600_0900_1630_0900_1700_0900_1730_1000_1600_1000_1630_1000_1700_1000_1730_1000_1800_1000_1830_1100_1700_1100_1730_1100_1800_1100_1830_1100_1900_1100_1930_1200_1800_1200_1830_1200_1900_1200_1930_1200_2000_1200_2030_1300_1900_1300_1930_1300_2000_1300_2100_1300_2130_1400_2000_1400_2030_1400_2130_1400_2200_1400_2230_1500_2100_1500_2130_1500_2300_1500_2330_1600_2200_1600_2230_1600_2300_1600_2300_1600_0000_1600_0030_1700_2300_1700_2330_
5Rate195150210225180195210225240249180195210219228237180189198207216225168177186195204213156165174183192201144153162180189132141159168177120129156165108117126126144170108117
6
7Time Query1600_2230_
8Result117
9
Sheet1
Cell Formulas
RangeFormula
B8B8=INDEX($C$5:$BF$5,MATCH($B$7,$C$4:$BF$4,0))
The MATCH Type!!
How did I miss this!
Much appreciated!
 
Upvote 0
Since you have Excel 365, you could also use the new efficient XLOOKUP function.
Excel Formula:
=XLOOKUP($B$7,$C$4:$BF$4,$C$5:$BF$5)
 
Upvote 1

Forum statistics

Threads
1,223,880
Messages
6,175,154
Members
452,615
Latest member
bogeys2birdies

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