+ Reply to Thread
Results 1 to 4 of 4

adding and dividing with vba code in excel for sheet val change

Hybrid View

  1. #1
    Registered User
    Join Date
    10-29-2015
    Location
    banaglore
    MS-Off Ver
    2007
    Posts
    8

    adding and dividing with vba code in excel for sheet val change

    Dear Friends

    I am writing fe programs in excel in VBA & i want to use this formula BY VBA coding.
    =SUM(F2:H2)
    for the columns F and H

    can any body help

    thanks in advance

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: adding and dividing with vba code in excel for sheet val change

    try,

    Range("A1").Formula = "=SUM(F2:H2)"
    or

    Range("A1").Value = Application.Sum(Range("F2:H2"))
    and change cell A1.

  3. #3
    Registered User
    Join Date
    10-29-2015
    Location
    banaglore
    MS-Off Ver
    2007
    Posts
    8

    Re: adding and dividing with vba code in excel for sheet val change

    Dear Friend

    thank you.

    i am new to coding

    i am working in a sheet under this

    Private Sub Worksheet_Change(ByVal Target As Range)

    now almost all my work is finished and i cannot insert any new column or change. my column A is already used & all the columns up to X

    i want my result in column I

    can u suggest

    with regards

  4. #4
    Registered User
    Join Date
    10-29-2015
    Location
    banaglore
    MS-Off Ver
    2007
    Posts
    8

    Re: adding and dividing with vba code in excel for sheet val change

    Dear Friend

    thank you.

    i am new to coding

    i am working in a sheet under this

    Private Sub Worksheet_Change(ByVal Target As Range)

    now almost all my work is finished and i cannot insert any new column or change. my column A is already used & all the columns up to X

    i want my result in column I

    can u suggest

    with regards

+ 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. [SOLVED] Dividing and adding time in formula.
    By cornick68 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 12-11-2014, 11:58 AM
  2. [SOLVED] Spreadsheet Problems with Dividing and adding Totals
    By JonesBell in forum Excel General
    Replies: 5
    Last Post: 11-13-2014, 04:47 PM
  3. [SOLVED] Adding two cells then dividing by another
    By KJC in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-20-2013, 11:17 PM
  4. Conditionally Dividing & Adding simultaneously.
    By Kakarott99 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-09-2013, 03:05 AM
  5. HELP: Adding and Dividing by Conditionals
    By joshgumby87 in forum Excel General
    Replies: 4
    Last Post: 11-27-2012, 01:46 AM
  6. Adding then dividing
    By Holyhabanero in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-18-2006, 02:20 PM
  7. cumulative adding and dividing problems!
    By Judi-mae in forum Excel General
    Replies: 1
    Last Post: 01-04-2006, 07:54 AM

Tags for this Thread

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