Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Application.match - apparent error?

You can send me the file

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"katem" wrote in message oups.com...
| Hey - just checked and both the match array and number being read in
| both are numbers. When they are in the VBA watch window, the dates
| have a # on either side and the istext function reads 'false' for
| both, so I don't think that's what's causing the issue. If you can
| tell me where I can upload, I can send the file to somewhere for
| people to look at it.
|
| I also tried it on another computer this morning and am getting the
| same results.
|
| Thanks so much for your help - any other ideas?
| Cheers,
| Kate
|
| On Jun 20, 4:16 pm, "Niek Otten" wrote:
| I suspect one of your dates (either the one to be looked up or in the table) is text and te other one(s) isn't.
| You can easily test that with the ISTEXT function..
| Just re-formatting as number or date doesn't help' you have re-format AND to re- enter (F2, ENTER) or multiply by 1 to get
nembers
| (dates).
|
| --
| Kind regards,
|
| Niek Otten
| Microsoft MVP - Excel
|
| "katem" wrote in oglegroups.com...
|
| | Sorry - that was in my first post, should've made myself more clear.
| | The list is dates in ascending order, so I think +1 or 0 should work.
| | But neither of them are behaving.
| |
| | Any guesses?
| | Thanks for your help!
| | Kate
| |
| | On Jun 20, 12:56 pm, "Jim Cone" wrote:
| | I don't understand your answer as you don't reference the data sort order.
| |
| | If match type is -1 the data must be in descending order.
| | If match type is +1 the data must be in ascending order
| | If match type is 0 (exact match) the data can be in any order.
| | --
| | Jim Cone
| | San Francisco, USAhttp://www.realezsites.com/bus/primitivesoftware
| |
| | "katem" | wrote in message
|
| | The plot thickens....
| |
| | I put in a value which was in the list to match (so an exact match
| | would work) and it brings back 0 for every value I've tried in the
| | list (whether on not it's in the list). And if I run a +1 match, I
| | always get 1026 (which is the upperbound of the array).
| |
| | I've tried it with and without the 'datevalue'.
| | Any other guesses as to what's up?
| | Thanks for your help,
| | Kate
| |
| |
|
|


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
#NAME? error for no apparent reason... Monomeeth Excel Worksheet Functions 4 September 15th 08 08:22 AM
Application.Index & Application.Match Antonio Excel Programming 8 February 5th 07 02:13 PM
Application.Match Type mismatch error [email protected] Excel Programming 8 December 10th 04 09:58 AM
Application.Match [email protected] Excel Programming 0 September 2nd 04 04:07 PM
Application.Match [email protected] Excel Programming 0 September 2nd 04 12:07 AM


All times are GMT +1. The time now is 02:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"