Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
PAS PAS is offline
external usenet poster
 
Posts: 26
Default #NA error on a INDEX formular

Does anybody know why I am getting #NA with this formula. It was working OK
awhile ago????

=INDEX($B$2:$BJ$402,MATCH(B411,$A$2:$A$402,0),MATC H(B410,$B$1:$BJ$1,0))
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default #NA error on a INDEX formular

Put these portions of your formula in two other cells:

=MATCH(B411,$A$2:$A$402,0)
=MATCH(B410,$B$1:$BJ$1,0)

One or both will return that #N/A error. You'll have to find out why there's a
mismatch (spelling error, too many spaces, ...).


Pas wrote:

Does anybody know why I am getting #NA with this formula. It was working OK
awhile ago????

=INDEX($B$2:$BJ$402,MATCH(B411,$A$2:$A$402,0),MATC H(B410,$B$1:$BJ$1,0))


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
PAS PAS is offline
external usenet poster
 
Posts: 26
Default #NA error on a INDEX formular

Cheers Dave, I'll try that and let you know how I get on.

"Dave Peterson" wrote:

Put these portions of your formula in two other cells:

=MATCH(B411,$A$2:$A$402,0)
=MATCH(B410,$B$1:$BJ$1,0)

One or both will return that #N/A error. You'll have to find out why there's a
mismatch (spelling error, too many spaces, ...).


Pas wrote:

Does anybody know why I am getting #NA with this formula. It was working OK
awhile ago????

=INDEX($B$2:$BJ$402,MATCH(B411,$A$2:$A$402,0),MATC H(B410,$B$1:$BJ$1,0))


--

Dave Peterson
.

  #4   Report Post  
Posted to microsoft.public.excel.misc
PAS PAS is offline
external usenet poster
 
Posts: 26
Default #NA error on a INDEX formular

Yes the second formula results in #NA. I have a textbox linked to cell "B410"
, which has a formula. When I clear the formula on that cell it works fine.
For some weird reason it's giving #NA because the fact that the cell has a
formula???
Any ideas?

"Pas" wrote:

Cheers Dave, I'll try that and let you know how I get on.

"Dave Peterson" wrote:

Put these portions of your formula in two other cells:

=MATCH(B411,$A$2:$A$402,0)
=MATCH(B410,$B$1:$BJ$1,0)

One or both will return that #N/A error. You'll have to find out why there's a
mismatch (spelling error, too many spaces, ...).


Pas wrote:

Does anybody know why I am getting #NA with this formula. It was working OK
awhile ago????

=INDEX($B$2:$BJ$402,MATCH(B411,$A$2:$A$402,0),MATC H(B410,$B$1:$BJ$1,0))


--

Dave Peterson
.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default #NA error on a INDEX formular

Nope.

It's giving you the error because the value in that textbox doesn't match any of
the cells in B1:BJ1.

==
Are the values you're matching on digits?

If yes, then try:
=MATCH(--B410,$B$1:$BJ$1,0)

The -- stuff will coerce any text number to a real number. The first minus
converts the text number to a number (but the opposite sign). The second
changes the sign back but keeps the number.


Pas wrote:

Yes the second formula results in #NA. I have a textbox linked to cell "B410"
, which has a formula. When I clear the formula on that cell it works fine.
For some weird reason it's giving #NA because the fact that the cell has a
formula???
Any ideas?

"Pas" wrote:

Cheers Dave, I'll try that and let you know how I get on.

"Dave Peterson" wrote:

Put these portions of your formula in two other cells:

=MATCH(B411,$A$2:$A$402,0)
=MATCH(B410,$B$1:$BJ$1,0)

One or both will return that #N/A error. You'll have to find out why there's a
mismatch (spelling error, too many spaces, ...).


Pas wrote:

Does anybody know why I am getting #NA with this formula. It was working OK
awhile ago????

=INDEX($B$2:$BJ$402,MATCH(B411,$A$2:$A$402,0),MATC H(B410,$B$1:$BJ$1,0))

--

Dave Peterson
.


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.misc
PAS PAS is offline
external usenet poster
 
Posts: 26
Default #NA error on a INDEX formular

Thanks Dave,
That did the trick, I did have some minus numbers
Many thanks

"Dave Peterson" wrote:

Nope.

It's giving you the error because the value in that textbox doesn't match any of
the cells in B1:BJ1.

==
Are the values you're matching on digits?

If yes, then try:
=MATCH(--B410,$B$1:$BJ$1,0)

The -- stuff will coerce any text number to a real number. The first minus
converts the text number to a number (but the opposite sign). The second
changes the sign back but keeps the number.


Pas wrote:

Yes the second formula results in #NA. I have a textbox linked to cell "B410"
, which has a formula. When I clear the formula on that cell it works fine.
For some weird reason it's giving #NA because the fact that the cell has a
formula???
Any ideas?

"Pas" wrote:

Cheers Dave, I'll try that and let you know how I get on.

"Dave Peterson" wrote:

Put these portions of your formula in two other cells:

=MATCH(B411,$A$2:$A$402,0)
=MATCH(B410,$B$1:$BJ$1,0)

One or both will return that #N/A error. You'll have to find out why there's a
mismatch (spelling error, too many spaces, ...).


Pas wrote:

Does anybody know why I am getting #NA with this formula. It was working OK
awhile ago????

=INDEX($B$2:$BJ$402,MATCH(B411,$A$2:$A$402,0),MATC H(B410,$B$1:$BJ$1,0))

--

Dave Peterson
.


--

Dave Peterson
.

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 error MAX Excel Worksheet Functions 8 March 22nd 09 06:56 PM
INDEX/MATCH #REF! error Tony Excel Discussion (Misc queries) 2 July 4th 08 09:57 PM
index error SteveC Excel Discussion (Misc queries) 1 March 13th 08 07:29 PM
INDEX error geebee Excel Worksheet Functions 2 January 23rd 08 03:59 PM
INDEX and #REF error Neil Excel Discussion (Misc queries) 0 February 25th 05 03:17 PM


All times are GMT +1. The time now is 08:32 AM.

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

About Us

"It's about Microsoft Excel"