Hi guys,
Re the attached Excel doc, I need to identify changed codes, would someone have a piece of VBA code that creates a count for the data?
Many thanks in advance!
T
Hi guys,
Re the attached Excel doc, I need to identify changed codes, would someone have a piece of VBA code that creates a count for the data?
Many thanks in advance!
T
sure...![]()
Please Login or Register to view this content.
If your question has been satisfactorily addressed, please consider marking it solved. Click the Thread Tools dropdown and select Mark thread as solved.
Also, you might want to add to the user's reputation by clicking the star icon in the lower left corner of the post with the answer- it's why we do what we do...
Thomas Lafferty
Analyst/Programmer
In the worksheet, use the formula:
=COUNTIF(A:A,"Code Changed")
and using VBA:
![]()
Please Login or Register to view this content.
Gary's Student
This works:
![]()
Please Login or Register to view this content.
![]()
Please Login or Register to view this content.
If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)
You can't do one thing. XLAdept
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin
Many thanks for the code Thomas, it worked great
xladept, jakobshavn - thanks for adding your code as well.
Cheers,
L
You're welcome!
Hi thomas,
How would I expand the code to incorporate the unchanged data, and also for a column containing approx 12 pieces of data?
Many thanks in advance,
T
Hello thompsy,
Here is one way to do it. Change "A1" to the first cell of the range. The macro will find the last cell in the range automatically. Both counts are tallied and displayed in a message dialog.
![]()
Please Login or Register to view this content.
Sincerely,
Leith Ross
Remember To Do the Following....
1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.2. Thank those who have helped you by clicking the Starbelow the post.
3. Please mark your post [SOLVED] if it has been answered satisfactorily.
Old Scottish Proverb...
Luathaid gu deanamh maille! (Rushing causes delays!)
Hi Leigh, code works greatOne final question, how do I add a full count of all rows?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks