vb in ms excel

Posted on 1999-11-02
Medium Priority
Last Modified: 2010-05-02
In MS Excel, there is a  ' =SUM(A1:I1) ' for addition.

But if I want to do subtraction from A1 to D1, then I have to do
this :


Is there a way to create this build in function like :


by using VB ?
If yes, how ? PLease show me. Thank a lot !
Question by:allquest
1 Comment
LVL 22

Accepted Solution

ture earned 30 total points
ID: 2179253

No, there is no SUB function, but you can use a formula similar to this:

=A1 - SUM(B1:D1)

Ture Magnusson
Karlstad, Sweden

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

589 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question