Named function

  • Thread starter Thread starter vtisix
  • Start date Start date
V

vtisix

Is there a way to name a function like this?

=ROUND(SUM(SUMIF(Range1,C1,Range2)),0) where the reference C1 is relative so
that I can recall the formula with =Name(C1,0)

Any idea?

Thanks in advance.

VT
 
Hi
first of all you don't need the additional SUM function.
So you could use
=ROUND(SUMIF(Range1,C1,Range2),0)

If you want to 'name' a fucntion you may create a user
defined function (in VBA) but in this case I wouldn't do
this for the following reasons:
- additional overhead / lower performance
- you have to hardcode your ranges range1, range2 within
this UDF
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top