+ Reply to Thread
Results 1 to 6 of 6

How to calculate the value

  1. #1
    Registered User
    Join Date
    01-16-2015
    Location
    Canada
    MS-Off Ver
    365
    Posts
    97

    How to calculate the value

    Hi Excel Guru,
    I am looking for the VBA code to appear in cell A14. Formula is Sumif

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: How to calculate the value

    What about
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

  3. #3
    Registered User
    Join Date
    01-16-2015
    Location
    Canada
    MS-Off Ver
    365
    Posts
    97

    Re: How to calculate the value

    Hi Yaseer
    Thanks for the formula. It works. But please see my new attachment. I have a formula in column C to replicate the duplicates in column B. In this case wheni apply the below formula result coming as error instead of 30.

    Sub Test()

    Dim CloseUP As Integer

    CloseUP = Range.Formula = "=SUMIF(C2:C13,C1,B2:B13)"
    Range("B15").Value = CloseUP
    End Sub

    Appreciate your help
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: How to calculate the value

    If you need to get the value of the formula use that code
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    01-16-2015
    Location
    Canada
    MS-Off Ver
    365
    Posts
    97

    Re: How to calculate the value

    Thanks It works

  6. #6
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: How to calculate the value

    You're welcome. Glad I can offer some help for you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 06-11-2017, 01:51 AM
  2. [SOLVED] Formula: If cell 3 is blank have cell 1 calculate, if cell 3 filled have cell 2 calculate
    By Vicious00013 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-05-2016, 09:34 AM
  3. Code to Calculate the product of two matrices won't calculate
    By njrobby in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-05-2015, 01:37 AM
  4. Target.Calculate to Me.Calculate breaks Copy/Paste
    By vayana in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-27-2013, 10:36 AM
  5. [SOLVED] Calculate values in col B based on value in col B but only calculate final 5 instances
    By arnoldd99 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-04-2013, 11:53 AM
  6. how do I calculate a mean
    By higgypop in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-26-2005, 09:06 AM

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