+ Reply to Thread
Results 1 to 10 of 10

Count every time i change a components ID changes

  1. #1
    Registered User
    Join Date
    10-02-2016
    Location
    Göteborg
    MS-Off Ver
    2016
    Posts
    4

    Lightbulb Count every time i change a components ID changes

    Skärmklipp1.PNG
    I Want to count every time we make a component switch on the train to make a follow up.
    I want to make counter in the column to the right of DATE2.
    Hope i could get som help in here

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count every time i change a components ID changes

    Many members are unable to see images in the *.png format due to forum compatibility issues with some browsers.

    If you need to post an image post it in the *.jpg format.

    Even better than posting images... post a SMALL sample file. That way we can test solutions directly in the file with the relevant data.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    10-02-2016
    Location
    Göteborg
    MS-Off Ver
    2016
    Posts
    4

    Re: Count every time i change a components ID changes

    Í´ll post a jpeg. couse it seems i cant upload my example file.
    Skärmklipp1.JPG

    Ok. Got it uploaded, Excelforum.xlsx
    Last edited by ThommyN; 10-02-2016 at 12:39 PM.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count every time i change a components ID changes

    Here's your data along with your comment:

    Data Range
    E
    1
    Component ID
    2
    2255100002
    3
    T-0486
    4
    T-0492
    5
    0055
    6
    0081
    7
    158899
    8
    158888
    9
    2255200002


    I wish to count every time i change Component ID
    Show us what results you expect.

  5. #5
    Registered User
    Join Date
    10-02-2016
    Location
    Göteborg
    MS-Off Ver
    2016
    Posts
    4
    I'll try to explain it.
    I work with a train fleet in sweden.
    Lets say i switch a component with an uniqe ID, on the train.
    Then i enter the new uniqe ID. When i do that i want excel to count that switch. Is that possible?

    Quote Originally Posted by Tony Valko View Post
    Here's your data along with your comment:

    Data Range
    E
    1
    Component ID
    2
    2255100002
    3
    T-0486
    4
    T-0492
    5
    0055
    6
    0081
    7
    158899
    8
    158888
    9
    2255200002



    Show us what results you expect.

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count every time i change a components ID changes

    Still not following you.

    That's why I asked:

    Show us what results you expect.

  7. #7
    Registered User
    Join Date
    10-02-2016
    Location
    Göteborg
    MS-Off Ver
    2016
    Posts
    4

    Re: Count every time i change a components ID changes

    Ok. Lets se if my example file is helping :P
    Excelforum2.xlsx

    I need the changes to be logged.

  8. #8
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count every time i change a components ID changes

    Sorry, I don't understand what you're wanting to do.

  9. #9
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,324

    Re: Count every time i change a components ID changes

    My vba is not so good but take al look at this:

    http://stackoverflow.com/questions/2...rent-worksheet
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,676

    Re: Count every time i change a components ID changes

    First thing will be to change the formatting on column K from 'Text' to 'General'.
    Paste the following array entered formula* in K13 and activate by pressing Ctrl, Shift and Enter Simultaneously:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Copy down to K20
    While K13:K20 are still selected press Ctrl C (copy)
    Select K23 and press Ctrl V (paste)
    Note: while the formula finds the changes in rows 17 and 27 it did not find, nor did I by visual inspection, a change in row 24 (compared to row 14).
    Let me know if you have any questions.

    Edit: Thinking about this some more if the only possible change is with the component ID, as per title then change the formula to: =IF(E3=E13,"",K3+1) which is not an array entered formula, so just pressing Enter will suffice.
    Last edited by JeteMc; 10-02-2016 at 06:24 PM. Reason: Added Edit and Formula
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Count every time cell values change in a column?
    By tavlrb in forum Excel General
    Replies: 4
    Last Post: 02-04-2016, 06:21 AM
  2. Count a Value 1 Time and then don't change that number
    By joshuah2003 in forum Excel General
    Replies: 1
    Last Post: 12-10-2015, 11:28 AM
  3. Count if formula with nested components... please help
    By Dr M in forum Excel - New Users/Basics
    Replies: 12
    Last Post: 11-06-2015, 10:02 AM
  4. [SOLVED] For every change in Station (G) count, and calculate time
    By Hang Glider in forum Excel General
    Replies: 5
    Last Post: 04-07-2015, 04:37 PM
  5. [SOLVED] only count Components that have a status.
    By Red fuji in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-14-2013, 10:51 PM
  6. Replies: 3
    Last Post: 11-06-2012, 01:37 AM
  7. Locking components BUT Still allowing to change settings via VBA
    By Stan The Man in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-17-2005, 11:05 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