ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   function details show value, but display shows #n/a (https://www.excelbanter.com/excel-discussion-misc-queries/76796-function-details-show-value-but-display-shows-n.html)

mike

function details show value, but display shows #n/a
 
Here is my simple test formula:
=MATCH(TRUE,C18:E180,0)
c18= 0
d18= 1
e18=2
The details of the fx show the following:
Lookup-value= TRUE
Lookup-array=(FALSE,TRUE,TRUE)
match type=0
Formula result=2 ,which is the response I want.

My sheet answer, however is #n/a while it should be 2. I don't know why.
Please help

Ron Coderre

function details show value, but display shows #n/a
 
To make that formula work you need to indicate to Excel that an array is
being used.

Try this:
Edit the formula cell, but make no changes
Commit that array formula by holding down the [Ctrl][Shift] keys when you
press [Enter].

Excel will put curly braces { } around the formula and you should see the
result you want. Note: you cannot just type in the braces...you have to let
Excel put them in.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"mike" wrote:

Here is my simple test formula:
=MATCH(TRUE,C18:E180,0)
c18= 0
d18= 1
e18=2
The details of the fx show the following:
Lookup-value= TRUE
Lookup-array=(FALSE,TRUE,TRUE)
match type=0
Formula result=2 ,which is the response I want.

My sheet answer, however is #n/a while it should be 2. I don't know why.
Please help


mike

function details show value, but display shows #n/a
 
Great and fast reply. Works exactly as suggested. Many thanks, Mike

"Ron Coderre" wrote:

To make that formula work you need to indicate to Excel that an array is
being used.

Try this:
Edit the formula cell, but make no changes
Commit that array formula by holding down the [Ctrl][Shift] keys when you
press [Enter].

Excel will put curly braces { } around the formula and you should see the
result you want. Note: you cannot just type in the braces...you have to let
Excel put them in.

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"mike" wrote:

Here is my simple test formula:
=MATCH(TRUE,C18:E180,0)
c18= 0
d18= 1
e18=2
The details of the fx show the following:
Lookup-value= TRUE
Lookup-array=(FALSE,TRUE,TRUE)
match type=0
Formula result=2 ,which is the response I want.

My sheet answer, however is #n/a while it should be 2. I don't know why.
Please help



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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com