+ Reply to Thread
Results 1 to 8 of 8

Marco that inserts a formula if cell is changed on sheet with in a named range

  1. #1
    Valued Forum Contributor meabrams's Avatar
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007, 2010, 2013, 2016
    Posts
    451

    Marco that inserts a formula if cell is changed on sheet with in a named range

    I am looking for the proper way to have a formula inserted into a cell if another cell is change and doesn't equal "Rotating".
    The Named Range is Shift_Select and I need it to look in the Second column of the named range (the change actual column is F2:F) and change if cell value <> "Rotating". If that is true then insert a basic
    equals formula in the first column in the Named Range (the actual column is E2:E)

    something like

    =F"cellrow"

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Marco that inserts a formula if cell is changed on sheet with in a named range

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  3. #3
    Valued Forum Contributor meabrams's Avatar
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007, 2010, 2013, 2016
    Posts
    451

    Re: Marco that inserts a formula if cell is changed on sheet with in a named range

    Here is the sample The Sheet Name is MSF
    SampleWithUpdates.zip

  4. #4
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Marco that inserts a formula if cell is changed on sheet with in a named range

    I'm not sure what you want to do here, your explanation is a little confusing.

    Regarding your named range, you are using a CountA formula so right now that formula is making the resultant range E5:F8 because row 1 is not blank and you have 2 cells farther down the page in column E that are also not blank.

    Hit F5 and then where it says reference type SHift_Select and hit ok to see what I am talking about. Is this what you expected to see?

    I don't know what this means F2:F, you write F2 but no other number so I don't know what you mean.

    It would be best if you would just refer to specific cells.
    Just give some one cell examples of what you want.
    A simple example not related to your sheet would be, check cell A1, if it is blank the formula in B1 would be Sum(C1:Z1), otherwise B1 = Today's date. Something specific like that would be very helpful.

  5. #5
    Valued Forum Contributor meabrams's Avatar
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007, 2010, 2013, 2016
    Posts
    451

    Re: Marco that inserts a formula if cell is changed on sheet with in a named range

    I need a simple equals formula to insert when the cell next to it is changed to anything so if
    F2 is changed then formula auto inserted into E2 something as simple as =F2

    I know that it has to be placed in
    Please Login or Register  to view this content.
    but Im not sure haw to make it do what I want it to

    I did fix my Named Range so it does now grab all that is used
    Please Login or Register  to view this content.

  6. #6
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Marco that inserts a formula if cell is changed on sheet with in a named range

    Okay it sounds like you know what you want and want to do it yourself.
    Hopefully this will help you.
    If you make a change to 1 cell at a time to any cell in your named range in the F column this will make the formula in the cell next to it as you asked for.
    You change F2 and the formula in E2 is =F2.

    Please Login or Register  to view this content.
    Last edited by skywriter; 10-12-2015 at 02:10 AM.

  7. #7
    Valued Forum Contributor meabrams's Avatar
    Join Date
    10-03-2014
    Location
    USA
    MS-Off Ver
    2007, 2010, 2013, 2016
    Posts
    451

    Re: Marco that inserts a formula if cell is changed on sheet with in a named range

    That's what I needed thank you

  8. #8
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Marco that inserts a formula if cell is changed on sheet with in a named range

    My pleasure, thanks for the rep. points.

+ 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] CommandButton inserts a row; now make it expand the named range
    By dazimon in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-14-2015, 07:16 PM
  2. Replies: 7
    Last Post: 08-06-2015, 09:10 PM
  3. Excel VBA - Creating a macro that inserts the active sheet name inside another sheet cell'
    By brandonstockwell in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-09-2014, 12:29 AM
  4. [SOLVED] Changed named range not updating in formulas
    By jason.holtzen in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-16-2013, 03:42 PM
  5. 1. Sheet Range Tab colour changed based on Cell value referenced against 3 lists
    By james 35 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-13-2013, 07:20 AM
  6. marco that inserts rows?
    By lloydyleg11 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-06-2006, 07:40 PM
  7. marco that inserts rows?
    By lloydyleg11 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-03-2006, 12:00 AM

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