Problem with "match" function

Kwnstantinos_M

New Member
Joined
Jun 12, 2018
Messages
24
Hi guys..

I have the following 3 columns in my excel sheet. The dates in column A (DateTime) are in the same format as column N(DateTime2).

DateTime (column A)DateTime2 (column N)MatchVLOOKUP
1/1/16 0:00

<colgroup><col></colgroup><tbody>
</tbody>
1/1/16 0:00142370
1/1/16 3:00

<tbody>
</tbody>
1/1/16 1:00N/AN/A
1/1/16 6:001/1/16 2:00N/AN/A
1/1/16 9:001/1/16 3:00N/AN/A
1/1/16 12:001/1/16 4:00N/AN/A
1/1/16 15:001/1/16 5:00N/AN/A
1/1/16 18:001/1/16 6:00N/AN/A
1/1/16 21:001/1/16 7:00N/AN/A
1/1/16 00:001/1/16 8:00N/AN/A

<tbody>
</tbody>

The data are a lot, so I can't check it one by one. I tried to use match command in order to identify which date from column N(DateTime2) exist in column A(DateTime). I used the following command:

=MATCH(N2;$A$2:$A$5849;0)

I used autofill and as a result I got only first value as a number (which means that it exists), and the rest as N/A ..which is wrong. As you can see the value 1/1/16 3:00 exist in both columns.

I tried then to use the function VLOOKUP and I wrote the following command:

=VLOOKUP(N2;$A$2:$A$5849;1;FALSE)

I got the same outcome.. I checked one random value (1/1/16 3:00) to check if the two cells with the same value are equal using the command : =A3=N5 and I got TRUE ..which means that the two cells are matching.

What do you think? What is the problem?

Thank you in advance
****** id="cke_pastebin" style="position: absolute; top: 216px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">Wh
N/A

<tbody>
</tbody>
</body>
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
if you are trying to match the whole amount then the midnight one will be ok, the rest have decimal values for the part hours, so you won't match simply.

if you point this at A and then for N =ISNUMBER(cell) that has to return TRUE. The return then tells you what line that occurs on
 
Upvote 0
I'm not sure I understood that.. So you suggest to apply "=ISNUMBER(cell)" function to identify in which cells I have number?! And then what?
 
Upvote 0
you need to be sure that all the cells return as a number otherwise they won't match, even when they look alike. the other way if the cells have no formatting, numbers line up on the right and text on the left
 
Upvote 0

Forum statistics

Threads
1,215,503
Messages
6,125,179
Members
449,212
Latest member
kenmaldonado

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