+ Reply to Thread
Results 1 to 3 of 3

Totalling column in Excel when cells contain forumulas

  1. #1
    Joni
    Guest

    Totalling column in Excel when cells contain forumulas

    I do not know how to add a column of figures when the cells contain formulas

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,787
    You should just be able to sum them normally. Whether they're generated by formulas or not makes no difference, as long as they are numbers.

    Have you tried something like

    =SUM(A1:A100)

    If this doesn't work it might be because the "numbers" generated by your formulas are, in fact, text. If so this can probably be rectified by altering the formulas, can you give an example of the formulas?

  3. #3
    Bob Phillips
    Guest

    Re: Totalling column in Excel when cells contain forumulas

    You need a UDF

    Function CountFormulae(rng As Range)
    Dim cell As Range
    Dim iLastRow As Long
    iLastRow = Cells(Rows.Count, rng.Column).End(xlUp).Row
    For Each cell In rng.Cells(1, 1).Resize(iLastRow)
    If cell.HasFormula Then
    CountFormulae = CountFormulae + 1
    End If
    Next cell
    End Function

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Joni" <[email protected]> wrote in message
    news:[email protected]...
    > I do not know how to add a column of figures when the cells contain

    formulas



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1