+ Reply to Thread
Results 1 to 4 of 4

The code for sum is not giving correct output, help require

  1. #1
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    The code for sum is not giving correct output, help require

    Hi friends,
    I want to sum the following columns:

    A … B … A+B
    Columns: d+e = F
    Columns: J+K = L
    Columns: P+Q = R
    Columns: V+W = X
    Columns: AB+AC = AD
    Columns: AH+AI = AJ
    Columns: AN+AO = AP
    Columns: AT+AU = AV
    Columns: AZ+BA = BB

    The code is working fine without error but it is adding the columns ‘d and e’ for all subjects. I want the sum of each particular subjects in their A+B column mentioned above.

    Please suggest me a correction.

    Thanking you.
    Attached Files Attached Files
    Sincerely,

    mso3

  2. #2
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: The code for sum is not giving correct output, help require

    delete the following line from your code, and then see if it works alright.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: The code for sum is not giving correct output, help require

    Hi Jewel Sharma,
    Thank you. If I delete the line then the macro is working fine but I want to change formula to value. So how to achieve it?

    Thank you.

  4. #4
    Forum Contributor
    Join Date
    06-29-2014
    Location
    India
    MS-Off Ver
    2010 Windows 10 64 bits
    Posts
    1,269

    Re: The code for sum is not giving correct output, help require

    Hi Jewel Sharma,
    Thank you. I inserted the following lines in the code and it's working fine.

    Please Login or Register  to view this content.
    The cell range for each column is different. It's only a sample code.

    Thank you for the assistance.

+ 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. Help require to correct the sum formula
    By mso3 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-10-2014, 02:12 AM
  2. [SOLVED] Formula not giving correct output
    By aakhan2011 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 03-24-2014, 03:21 AM
  3. Require correct format of output
    By mukeshbaviskar in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-12-2014, 08:49 AM
  4. [SOLVED] Code not giving the ouptut but syntactically correct
    By Veena Anoohya in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-16-2014, 05:52 AM
  5. Is VBA possible on this output or does this require just a SUMIF formula?
    By geng in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-31-2010, 03:24 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