+ Reply to Thread
Results 1 to 7 of 7

Sum formulas and none formulas

Hybrid View

  1. #1
    Registered User
    Join Date
    12-20-2011
    Location
    Israel
    MS-Off Ver
    Excel 2013
    Posts
    31

    Sum formulas and none formulas

    Hi.
    I have a list of names. Some of them are text, others are formulas (hyperlinks, in blue).
    I need the sums of the numbers in column B for regulars, and for the hyperlinked.
    What's the quickest way to do it?
    Thanks!
    Sample.xlsx

  2. #2
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Sum formulas and none formulas

    Hi Nighteg..

    None of your Look-A-Like HYLERLINK cells are actual LINK..

    Do you want sum according to FontColor & Underline..
    Or sum according to Link & Non-Link Text..
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  3. #3
    Registered User
    Join Date
    12-20-2011
    Location
    Israel
    MS-Off Ver
    Excel 2013
    Posts
    31

    Re: Sum formulas and none formulas

    Hi Debraj.
    In my workbook they are
    So please sum according to Link and non-link.
    Thanks.

  4. #4
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Sum formulas and none formulas

    Hi Nighteg..

    try this..
    Sub Deb()
        Dim c As Range, s As String
        On Error Resume Next
        For Each c In Range("A4:A9")
            s = c.Hyperlinks(1).SubAddress
                If Err = 0 Then
                    HSUM = HSUM + c.Offset(, 1)
                Else
                    nhsum = nhsum + c.Offset(, 1)
                End If
            Err.Clear
        Next
        MsgBox "SUM OF Hypelink :" & HSUM & Chr(10) & "Sum Of NonHyperlink :" & nhsum
    End Sub
    In the meanwhile.. trying to figure out if possible through FORMULA, or NamedRange or Get.CELL..

  5. #5
    Registered User
    Join Date
    12-20-2011
    Location
    Israel
    MS-Off Ver
    Excel 2013
    Posts
    31

    Re: Sum formulas and none formulas

    Thanks a lot, but i need it with a formula. I have lots of tabs like these, and the range varies from 10, to over 200, and changes every month. I'd have to edit the macro for each one of them

  6. #6
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Sum formulas and none formulas

    If you can upload a sample file, then I can help to create a macro for the same..

  7. #7
    Registered User
    Join Date
    12-20-2011
    Location
    Israel
    MS-Off Ver
    Excel 2013
    Posts
    31

    Re: Sum formulas and none formulas

    Let's try it this way: is there any formula in excel that checks if a cell contains a formula (and gives true or false)?
    p.s. i've uploaded a sample with the hyperlinks.
    Attached Files Attached Files

+ 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