+ Reply to Thread
Results 1 to 6 of 6

Auto update List

Hybrid View

  1. #1
    Registered User
    Join Date
    02-26-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    8

    Auto update List

    Hi everyone,

    I have a sheet in which some data automatically updated. Due to this in one cell the data is auto changed.

    for example


    in cell d5 some times ''on'' displays some time ''off'' displays some time ''neutral' displays. I want a formula which list all tha changes in a column.

    means when d5= on then e1 should be on when d5= off then e2 should be off when d5= neutral then e3 should be neutral when d5= on then e4 should be on.

    Kindly help me on this i'll be very thankful to you.


    Regards,
    Sameer

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Auto update List

    Here!

    Put this on E1 & E4 - =IF(D5="On","On","")
    On E2 - =IF(D5="Off","Off","")
    On E3 - =IF(D5="Neutral","Neutral","")

    Hope this is what you want.. If not, please clarify!
    Cheers!
    Deep Dave

  3. #3
    Registered User
    Join Date
    02-26-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    8

    Re: Auto update List

    sorry you are not getting my point. If i put your formula then when d5 changes all E column will be change. I want a formula which shows every new indicator from d5 in column E. if the data changes 1000 times then E columns 1000 rows should be filled.

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Auto update List

    Sorry!

    Put this in your regular code module -

    Sub UpdateChanges()
        
        Dim LRColE As Integer, ValStart As String
        
        Application.EnableEvents = False
        
        ValStart = Range("D5").Value
        
        LRColE = Cells(Rows.Count, "E").End(xlUp).Row
        
        If Cells(LRColE, "E").Value <> "" Then LRColE = LRColE + 1
        
        Cells(LRColE, "E").Value = ValStart
        
        Application.EnableEvents = True
    
    End Sub
    And put this on your worksheet module -

    Private Sub Worksheet_Change(ByVal Target As Range)
        UpdateChanges
    End Sub
    Last edited by NeedForExcel; 04-29-2015 at 02:17 AM.

  5. #5
    Registered User
    Join Date
    02-26-2015
    Location
    India
    MS-Off Ver
    2007
    Posts
    8

    Re: Auto update List

    thank you for your code. As I am totally new to VBA can you please tell me where to put those formulas.....

  6. #6
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,879

    Re: Auto update List

    First of all you will have to Enable The Developer Tab -

    http://www.needforexcel.com/#!Enable...7-85EDEE74C7C5

    Once the Developer Tab is enabled, then use Alt+F11 > Inset Tab > Module

    Put the Larger Code here

    Then On the Worksheet you want the code to run > Right Click On the Sheet Tab Name > View Code

    Put the smaller code here.

    Do not forget to keep macros enabled.

    I am unable to attach sheet for some reason, else would have helped you with it..

+ 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] Auto update a list I can select from
    By tlacloche in forum Excel General
    Replies: 7
    Last Post: 05-03-2014, 10:51 AM
  2. [SOLVED] how to auto update a price list from another excel?
    By jetlee in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-10-2014, 11:36 AM
  3. Auto extend and update list
    By Jactey in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-21-2012, 04:21 AM
  4. auto update validation list.
    By Jurado01 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-12-2009, 11:23 AM
  5. [SOLVED] Auto Update A Validation List
    By Dmorri254 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-03-2005, 04:06 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