+ Reply to Thread
Results 1 to 5 of 5

Range sum, multiplication

  1. #1
    Registered User
    Join Date
    05-12-2020
    Location
    Lima,Peru
    MS-Off Ver
    2016
    Posts
    25

    Range sum, multiplication

    Hello Masters of the Universe of VBA Excel
    I am starting to use VBA Macro and I search try to find a way to reduce this code that I need replicate many times.
    All cells have integers. Cells(19,6) is a constant value.
    How I can reduce this operations? Using a variable?
    Please guide me with your expertise.

    Thanks

    Please Login or Register  to view this content.
    Last edited by alansidman; 05-12-2020 at 07:05 PM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Range sum, multiplication

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 05-12-2020 at 05:29 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    05-12-2020
    Location
    Lima,Peru
    MS-Off Ver
    2016
    Posts
    25

    Re: Range sum, multiplication

    Oh Great!! Thanks very much for your solution.
    I promise study more about FormulaR1C1
    Now I can reduce so much lines of code.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2505 Win 11
    Posts
    24,754

    Re: Range sum, multiplication

    Code Tags Added
    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Registered User
    Join Date
    05-12-2020
    Location
    Lima,Peru
    MS-Off Ver
    2016
    Posts
    25

    Re: Range sum, multiplication

    OK sorry, I take care next time.

+ 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] Value Multiplication
    By jani.pk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-08-2019, 03:48 PM
  2. [SOLVED] Sequential multiplication of numbers in range
    By T.I. in forum Excel General
    Replies: 5
    Last Post: 04-30-2019, 05:15 PM
  3. [SOLVED] Sum of multiplication and add-up
    By Seifptv in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-19-2018, 07:42 PM
  4. [SOLVED] Product and IF multiplication of percentage on range in different tab
    By brooksteen in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-06-2017, 10:28 AM
  5. Replies: 1
    Last Post: 07-20-2012, 11:34 AM
  6. Subset a range for array multiplication
    By mpm166 in forum Excel General
    Replies: 5
    Last Post: 04-16-2012, 06:57 PM
  7. Multiplication
    By kmarie630 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-25-2009, 03:59 PM

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