+ Reply to Thread
Results 1 to 4 of 4

Macro - Copy Cell Above, Change Specific Value

  1. #1
    Registered User
    Join Date
    04-26-2017
    Location
    Aquasco, MD
    MS-Off Ver
    MS 2013
    Posts
    4

    Macro - Copy Cell Above, Change Specific Value

    I'm sure there is a cleaner way to do this - I was hoping a Macro would help

    I'm trying to copy the cell above the target cell which contains a formula [=IF(A10=1,E150,IF(A10=2,ROUND(E150*C154,2),IF(A10=3,ROUND(E150*C155,2),IF(A10=4,ROUND(E150*C156,2)))))]

    And paste the formula in the cell directly below with minor edits (changing each "A10" value to "A11")


    This is the easiest solution I've found since excel is not properly cascading my formula through the worksheet.


    Any help would be appreciated.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,762

    Re: Macro - Copy Cell Above, Change Specific Value

    If you only want A10 to change, use
    =IF(A10=1,E$150,IF(A10=2,ROUND(E$150*C$154,2),IF(A10=3,ROUND(E$150*C$155,2),IF(A10=4,ROUND(E$150*C$156,2)))))
    Then you can drag the formula down

  3. #3
    Registered User
    Join Date
    04-26-2017
    Location
    Aquasco, MD
    MS-Off Ver
    MS 2013
    Posts
    4

    Re: Macro - Copy Cell Above, Change Specific Value

    Thanks! Knew there had to be an easier way

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,762

    Re: Macro - Copy Cell Above, Change Specific Value

    Glad to help & thanks for the feedback

+ 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. VBA Macro: Copy and Paste Specific Row Range based on the Specific Value in a Cell.
    By SolidSmoke in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 10-10-2016, 02:40 PM
  2. Macro to Change Font Size Based on if Cell Contains Specific Text
    By karpfy19 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2016, 08:12 PM
  3. [SOLVED] VBA To change Date format in Column A and Copy a cell if it contains specific Text
    By zaska in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-10-2016, 10:45 AM
  4. [SOLVED] Macro for Automatic calculate sheet after specific cell update or change
    By x_ampl1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-03-2015, 05:11 AM
  5. Macro to change colour of cell based on finding a specific word in the cell
    By Shelby761 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-24-2014, 09:46 AM
  6. Macro to copy specific line from text file and paste into specific cell in excel
    By keeneye in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2013, 10:35 AM
  7. [SOLVED] Worksheet change macro on a change in a specific cell
    By dzuspann in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-07-2012, 04:19 PM

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