Obscure Index/Match/formatting problem

Ride The Lightning

Board Regular
Joined
Jul 14, 2005
Messages
238
Hi

I have the following formula:
=INDEX('bet log 27.8'!$E$2:$E$1000,MATCH(A2,'bet log 27.8'!$B$2:$B$1000,0))

The data for 'bet log 27.8'!$E$2:$E$1000 is made up of "lay" and "back", the data for 'bet log 27.8'!$B$2:$B$1000 is a time in the following format: hh:mm:ss. The Value in A2 is also a time in the same format: hh:mm:ss. The answer I am getting is N/A. The formatting is the same and the formula is correct as I have already tested it on other sheets. The wierd thing is when I copy and paste the relevent time from 'bet log 27.8'!$B$2:$B$1000 to A2 the formula returns the correct answer! I would have thought this meant a formatting issue but they are the same! I am stumped as to why this is happening, any answers much appreciated.

Regards

RTL
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi

I have the following formula:
=INDEX('bet log 27.8'!$E$2:$E$1000,MATCH(A2,'bet log 27.8'!$B$2:$B$1000,0))

The data for 'bet log 27.8'!$E$2:$E$1000 is made up of "lay" and "back", the data for 'bet log 27.8'!$B$2:$B$1000 is a time in the following format: hh:mm:ss. The Value in A2 is also a time in the same format: hh:mm:ss. The answer I am getting is N/A. The formatting is the same and the formula is correct as I have already tested it on other sheets. The wierd thing is when I copy and paste the relevent time from 'bet log 27.8'!$B$2:$B$1000 to A2 the formula returns the correct answer! I would have thought this meant a formatting issue but they are the same! I am stumped as to why this is happening, any answers much appreciated.

Regards

RTL
What do you get with

=ISNUMBER(A2)

if this is entered say in G2?
 
Upvote 0
The data I am getting the correct result with is pasted from a software application I use into one cell then I use the "Text to Columns" button on the data tab and split the data by space. This splits the data adequately enough to do an analysis. The other data data is taken from another software application I use that records data into excel CSV mode, then I convert it into a normal excel workbook to use inconjunction with other spreadsheets.

A little background info for this bizzare problem!
 
Upvote 0
The data I am getting the correct result with is pasted from a software application I use into one cell then I use the "Text to Columns" button on the data tab and split the data by space. This splits the data adequately enough to do an analysis. The other data data is taken from another software application I use that records data into excel CSV mode, then I convert it into a normal excel workbook to use inconjunction with other spreadsheets.

A little background info for this bizzare problem!

Does this...

=INDEX('bet log 27.8'!$E$2:$E$1000,MATCH(A2&"",'bet log 27.8'!$B$2:$B$1000,0))

work?
 
Upvote 0
Figured why it is not working.

For example, when I have the values "13:29:38" in A2 and "13:29:38" in the column 'bet log 27.8'!$B$2:$B$1000, when I change the format to General the value in A2 is "0.562246366" and the particular cell in 'bet log 27.8'!$B$2:$B$1000 is "0.56224537" so it is a rounding issue. How would I go about ensuring the rounding is adjusted so the values match up?
 
Upvote 0

Forum statistics

Threads
1,224,583
Messages
6,179,672
Members
452,937
Latest member
Bhg1984

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