#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 159
Default match

Trying to do a quite simple MATCH. In B53 I've got

=MATCH(E50,'SET-UP'!A1:M34,0)

E50 is a date, and there is a date exactly matching it in 'SET-UP'!
A1:M34', but it's coming up #N/A. Tried

=MATCH(E50:F50,'SET-UP'!A1:M34,0) where E50:F50 are the 2 merged cells
where the date to be matched is and get #VALUE!

Also tried

=MATCH(E50,'SET-UP'!A:M,0), still get #VALUE!

Is there a rule against referring to other worksheets in a MATCH?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 396
Default match

You can only search within 1 column or row.

This has nothing to do with other sheets or the same sheet.

--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music


"robzrob" wrote:

Trying to do a quite simple MATCH. In B53 I've got

=MATCH(E50,'SET-UP'!A1:M34,0)

E50 is a date, and there is a date exactly matching it in 'SET-UP'!
A1:M34', but it's coming up #N/A. Tried

=MATCH(E50:F50,'SET-UP'!A1:M34,0) where E50:F50 are the 2 merged cells
where the date to be matched is and get #VALUE!

Also tried

=MATCH(E50,'SET-UP'!A:M,0), still get #VALUE!

Is there a rule against referring to other worksheets in a MATCH?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default match

Are you sure everything is formatted the same? In other words, in the array
you are looking in, are the dates considered actual dates? Or are they text?
If you think they might be text, you could try:
=MATCH(E50,--TEXT('SET-UP'!A1:M34,"mm/dd/yyyy"),0)
Enter as an array** formula (CTRL+Shift+Enter)

If you are still getting errors, describe how your data is formatted.

Hope this helps.
--
John C


"robzrob" wrote:

Trying to do a quite simple MATCH. In B53 I've got

=MATCH(E50,'SET-UP'!A1:M34,0)

E50 is a date, and there is a date exactly matching it in 'SET-UP'!
A1:M34', but it's coming up #N/A. Tried

=MATCH(E50:F50,'SET-UP'!A1:M34,0) where E50:F50 are the 2 merged cells
where the date to be matched is and get #VALUE!

Also tried

=MATCH(E50,'SET-UP'!A:M,0), still get #VALUE!

Is there a rule against referring to other worksheets in a MATCH?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default match

Unmerge the cells, it's bad enough using merged cells in the first place but
if anyone feel they need to then it should be out away of any data and just
for fluff like the top rows or something. Btw, if you merge cells the upper
most left cell is the only one that can have any contents. However you need
to read up on how MATCH works, you need to use a 1x1 row/column range, what
would you expect your formula to return if there was a match, the row or the
column count? You are using A1:M34, that won't work. If you just want to
test a range if a value is in there you can use

=COUNTIF(A1:M34,E50)




--


Regards,


Peo Sjoblom

"robzrob" wrote in message
...
Trying to do a quite simple MATCH. In B53 I've got

=MATCH(E50,'SET-UP'!A1:M34,0)

E50 is a date, and there is a date exactly matching it in 'SET-UP'!
A1:M34', but it's coming up #N/A. Tried

=MATCH(E50:F50,'SET-UP'!A1:M34,0) where E50:F50 are the 2 merged cells
where the date to be matched is and get #VALUE!

Also tried

=MATCH(E50,'SET-UP'!A:M,0), still get #VALUE!

Is there a rule against referring to other worksheets in a MATCH?



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,358
Default match

Nevermind that. Your array, specified by 'SET-UP'!A1:M34, can only be one row
or one column. MATCH gives you the relative position of your lookup value in
that row or column, but multiple rows or multiple columns, it will give you
an error.
--
John C


"robzrob" wrote:

Trying to do a quite simple MATCH. In B53 I've got

=MATCH(E50,'SET-UP'!A1:M34,0)

E50 is a date, and there is a date exactly matching it in 'SET-UP'!
A1:M34', but it's coming up #N/A. Tried

=MATCH(E50:F50,'SET-UP'!A1:M34,0) where E50:F50 are the 2 merged cells
where the date to be matched is and get #VALUE!

Also tried

=MATCH(E50,'SET-UP'!A:M,0), still get #VALUE!

Is there a rule against referring to other worksheets in a MATCH?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 159
Default match

On Aug 7, 10:32*pm, John C <johnc@stateofdenial wrote:
Are you sure everything is formatted the same? In other words, in the array
you are looking in, are the dates considered actual dates? Or are they text?
If you think they might be text, you could try:
=MATCH(E50,--TEXT('SET-UP'!A1:M34,"mm/dd/yyyy"),0)
Enter as an array** formula (CTRL+Shift+Enter)

If you are still getting errors, describe how your data is formatted.

Hope this helps.
--
John C



"robzrob" wrote:
Trying to do a quite simple MATCH. *In B53 I've got


=MATCH(E50,'SET-UP'!A1:M34,0)


E50 is a date, and there is a date exactly matching it in 'SET-UP'!
A1:M34', but it's coming up #N/A. *Tried


=MATCH(E50:F50,'SET-UP'!A1:M34,0) where E50:F50 are the 2 merged cells
where the date to be matched is and get #VALUE!


Also tried


=MATCH(E50,'SET-UP'!A:M,0), still get #VALUE!


Is there a rule against referring to other worksheets in a MATCH?- Hide quoted text -


- Show quoted text -


Thanks, Wigi & John, I'm learning a lot tonight! John: They're
definitely 'proper' Excel dates, ie they're integers, but the cells
are formatted as dd.mm.yy.
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 159
Default match

On Aug 7, 10:35*pm, John C <johnc@stateofdenial wrote:
Nevermind that. Your array, specified by 'SET-UP'!A1:M34, can only be one row
or one column. MATCH gives you the relative position of your lookup value in
that row or column, but multiple rows or multiple columns, it will give you
an error.
--
John C



"robzrob" wrote:
Trying to do a quite simple MATCH. *In B53 I've got


=MATCH(E50,'SET-UP'!A1:M34,0)


E50 is a date, and there is a date exactly matching it in 'SET-UP'!
A1:M34', but it's coming up #N/A. *Tried


=MATCH(E50:F50,'SET-UP'!A1:M34,0) where E50:F50 are the 2 merged cells
where the date to be matched is and get #VALUE!


Also tried


=MATCH(E50,'SET-UP'!A:M,0), still get #VALUE!


Is there a rule against referring to other worksheets in a MATCH?- Hide quoted text -


- Show quoted text -


Thanks, All, for the advice. Luckily my match values are in one
column so I can amend the array and go ahead.
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
index(match) Wind Uplift Calculations (match four conditions) JMeier Excel Worksheet Functions 8 August 1st 08 01:45 AM
MATCH Multiple Criteria & Return Previous / Penultimate Match Sam via OfficeKB.com Excel Worksheet Functions 27 October 6th 07 01:39 AM
index match array function-returning only first match, need last. Julie Olsen Excel Worksheet Functions 3 December 29th 06 12:50 AM
Lookup? Match? pulling rows from one spreadsheet to match a text f cjax Excel Worksheet Functions 3 July 21st 06 02:51 PM
index,match,match on un-sorted data Brisbane Rob Excel Worksheet Functions 3 September 24th 05 10:04 PM


All times are GMT +1. The time now is 06:57 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"