Share via

Excel: Unknown yellow function icon

Anonymous
2011-09-26T20:05:24+00:00

I've written a custom function in VBA, and it is now giving me an error.

The function in question (PNC) returns a #REF error when I try to use it.  Even when I manually define the input (such as PNC(15,250)), the error still occurs.

I noticed that when I'm typing the function, one of the options is has a yellow tag beside it like this.  I'm wondering what this symbol means and if it has any relation to the error I'm having.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2011-09-27T12:24:42+00:00

That yellow icon would suggest you have a named range called PNC.

Use the Name Manager on the Formula tab to check.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

Answer accepted by question author

Anonymous
2011-09-27T00:32:16+00:00

Give the functions PNC and PNC1 longer names.  PNC can be confused as a reference to a cell in column PNC and PNC1 can be misinterpreted as a reference to cell PNC1.  PNC is a valid column in Excel 2007/2010 and that may be the problem.

Try something like PNCA  and even PNCA1  for those; anything that might not be misinterpreted as a cell address.

Not sure this will cure your problem, if it does not (or if it does) definitely let us know.

But I think it's going to be the fix ;)

Was this answer helpful?

0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2011-09-27T14:24:29+00:00

    Thanks for the response, problem solved!

    You were right about PNC1 referencing an actual cell, silly mistake.

    PNC turned out to be a variable representing a range of cells somewhere else in the workbook.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2011-09-27T13:01:33+00:00

    Why not post the function code?

    Was this answer helpful?

    0 comments No comments