Results 1 to 10 of 11

Thread: Adding value of two cells to get result in 3rd cell

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    10,457
    Rep Power
    10
    this is your worksheet

    _____ Workbook: Book1.xlsm ( Using Excel 2007 32 bit )
    Row\Col
    A
    B
    C
    D
    E
    F
    1
    2
    3
    5
    2
    4
    Worksheet: Sheet1

    This is your macro, as given by you in your uploaded file. It is incorrect. It will not work.
    Code:
    Sub add()
    Range("C8").Value = Range("B3").Value + Range("E2").Value
    End Sub
    

    This next macro below works fine for me. This is the correct macro for your worksheet
    Code:
    Sub add()
    Range("C8").Value = Range("B3").Value + Range("E3").Value
    End Sub
    Last edited by DocAElstein; 08-26-2020 at 06:57 PM.
    ….If you are my competitor, I will try all I can to beat you. But if I do, I will not belittle you. I will Salute you, because without you, I am nothing.
    If you are my enemy, we will try to kick the fucking shit out of you…..
    Winston Churchill, 1939
    Save your Forum..._
    KILL A MODERATOR!!

  2. #2
    Member
    Join Date
    May 2020
    Posts
    66
    Rep Power
    6
    Well, then there may be some fault by my side which I'm unable to find out.
    I'm using latest build of MS Office Pro Plus 2019. I should check the code with older version. It may help.
    Thank you!!

Similar Threads

  1. Replies: 3
    Last Post: 02-11-2014, 08:31 PM
  2. Replies: 2
    Last Post: 07-23-2013, 06:54 PM
  3. Adding specfic number to a available number in previous cell.
    By Rajesh Kr Joshi in forum Excel Help
    Replies: 2
    Last Post: 03-02-2013, 01:55 AM
  4. Replies: 2
    Last Post: 01-24-2013, 09:03 PM
  5. Trim Text after 3rd Underscore but retain format
    By trankim in forum Excel Help
    Replies: 4
    Last Post: 05-13-2012, 10:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •