Match error But there is a match as a fact

rdhoy

New Member
Joined
May 16, 2022
Messages
3
Office Version
  1. 2019
Platform
  1. Windows
I have a table with several columns as shown below. The issue is that I must do a search for a number entered manually. The search must be done in a column that results from multiplying the value $ by 100. With some values, inexplicably, the result of the formula +MATCH(I;$H$4:$H $164;0 ) is #N/A although the value ACTUALLY EXISTS, in other cases the value is found.

I.E. In the first row, the value 4.44 is loaded, which is multiplied by 100, resulting in 444. Then, the value to be searched for is 444 (manually entered) and the result of the formula is #N/A, but with the formula +IF( D=C;"YES";"NO") the result is true (YES).

Why is MATCH bahaving that way when there is actually a match????

IF SOMEONE CAN HELP ME I WOULD APPRECIATE IT
A
$ Value
B
Quantity
C
total (formula)
=A*B
D
manual Entry
SEARCH
+match(D;$C$2:$C$164;0 )
compare
4,44100444444#N/AYES
4,431004434433YES
4,52100452452#N/AYES
4,531004534535YES
4,591004594596YES
4,591004594596YES
4,591004594596YES
4,59100459444#N/ANO
4,5410045445410SI
4,5410045445410YES
4,56100456456#N/AYES
4,5810045845813YES
4,5810045845813YES
4,5810045845813YESI
4,6210046246216YES
4,61100461461#N/AYES
4,6210046246216YES
 

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"
May be try with D+0
match(D2+0;$C$2:$C$164;0 )
or
match(D2+0;$C$2:$C$164+0;0 ) (ctrl-shift-enter)
If it does not works, try to post worksheet screenshot to see if there was any clue
 
Upvote 0
I did not get why your formula was written like that. This work just fine
=MATCH(D2,$C$2:$C$164,0 )
 
Upvote 0
Solution
This works in MS 365 and may not work in earlier versions, I would be interested to know if does or doesn't.
Excel Formula:
=MATCH(D2,ROUND($C$2:$C$164,0),0)
I have followed Alan in rounding to 0 but you don't need to be that aggressive. I have tried rounding using up to 15 and it seems to still work (assuming it is the floating-point arithmetic issue).
For time which is not exactly the same but similar problem I normally find around 5 decimals to be the sweet spot.
 
Upvote 0
I did not get why your formula was written like that. This work just fine
=MATCH(D2,$C$2:$C$164,0 )
sorry i did not add the ref (2) because i thought it could confuse you, but it actually is written like this match(D2;$C$2:$C$164;0 )
 
Upvote 0
This works in MS 365 and may not work in earlier versions, I would be interested to know if does or doesn't.
Excel Formula:
=MATCH(D2,ROUND($C$2:$C$164,0),0)
I have followed Alan in rounding to 0 but you don't need to be that aggressive. I have tried rounding using up to 15 and it seems to still work (assuming it is the floating-point arithmetic issue).
For time which is not exactly the same but similar problem I normally find around 5 decimals to be the sweet spot.
Hello thanks for your kind answer... I agree, because i already tryed using ROUND, and it actually could solve the problem. But i would like to know if i´m facing a real EXCELL BUG. That's why i used two different formulas, to be sure that MATCH wasn`t working properly, that's why i made another comparison using IF(c2=d2), which worked correctly
 
Upvote 0

Forum statistics

Threads
1,216,008
Messages
6,128,249
Members
449,435
Latest member
Jahmia0616

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