Match Formula - Match Type "-1" not working

ringmaker

Board Regular
Joined
Oct 26, 2003
Messages
75
Hi - I am attempting to use the match formula to find the smallest number in a list that is greater than the number I am referencing. The match_type in the match formula should allow me to do this by using "-1" in the last argument of the formula. Instead of getting the answer I want, I am getting n/a.

Here is a simple example of the data and the formula I am using:

Lookup Value: 5.5 (cell b1)

Data: 1,2,3,4,5,6,7,8,9,10 (cell b3:b12)

Formula: =match(b1,b3:b12,-1)

Answer: = n/a

Expected Answer: 6

Thanks for your help!!!
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
From Help:

If match_type is -1, MATCH finds the smallest value that is greater than or equal to lookup_value. Lookup_array must be placed in descending order: TRUE, FALSE, Z-A, ...2, 1, 0, -1, -2, ..., and so on.
 
Upvote 0
You can use this formula possibly instead:

=MIN(IF(B3:B12>=B1,B3:B12))

Confirmed with CTRL+SHIFT+ENTER not just ENTER
 
Upvote 0
Hi - I am attempting to use the match formula to find the smallest number in a list that is greater than the number I am referencing. The match_type in the match formula should allow me to do this by using "-1" in the last argument of the formula. Instead of getting the answer I want, I am getting n/a.

Here is a simple example of the data and the formula I am using:

Lookup Value: 5.5 (cell b1)

Data: 1,2,3,4,5,6,7,8,9,10 (cell b3:b12)

Formula: =match(b1,b3:b12,-1)

Answer: = n/a

Expected Answer: 6

Thanks for your help!!!

=INDEX($B$3:$B$12,MATCH(B1,$B$3:$B$12,1)+(LOOKUP(B1,$B$3:$B$12)<>B1))
 
Upvote 0
Wow! Thanks!!!

I posted that question and in minutes, all my problems are solved!!!!

You all are the best!

Thanks,

Ringmaker
 
Upvote 0

Forum statistics

Threads
1,226,528
Messages
6,191,579
Members
453,665
Latest member
WaterWorks

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