Hi guys,
This is my first post to the forum, and was essentially my reason for joining up...as it is something that has got me quite stumped.
What I'm trying to do is create a macro based on a formula that can display the number instances of a certain word occurs in a range of data. I am also trying to whittle it down so that it can reveal how many times this word occured on any given day of a month.
My example here will be an =COUNTIF function searching for the word 'Logged'.
Now, I'm working with the month of May. Each day will have anything from 10 to 100+ entries. Say I have 1300 rows, within which is contained data for all 31 days of May. Another example: 06/05/2011 might have 43 entries. Within these rows, perhaps 25 of them relate to the word I am looking for (Logged), the others display various other pieces of data that also occured on this day.
It's very simply boiled down to; Have a day you want to search for, return all the instances of 'Logged' on that day; return/display this number in a cell.
The current formula that is simple enough to use, but is not specific enough to what I'm trying to find.I've got a separate worksheet setup for the results, the worksheet with the data on it, is low-and-behold called 'Data'. So the formula is as follows:
=COUNTIF(Data!F:F,"Logged")
This is fine for finding all of the instances across the whole range, but of course not specific to day.
I could do this by counting say 04/05/2011 (e.g F340:F413) and use the formula:
=COUNTIF(Data!F340:F413,"Logged")
Not only is this pretty much a manual process. But this is to become a template that will be easily able to apply to a new set of data on a month by month basis. Thus if I was singling out the data with specific cell ranges, it would not be cross-compatible with the next month -- where data will have varied greatly.
The end result of this, will end up with the user being able to enter a date, and have the number for the amount of 'Logged' that appear within the data for that day.
I've got a system whereby I can use hidden buttons assigned with macros over the top of a calendar design, so it'd be a one-click process.
Any help here would be much appreciated.
Thanks in advance!
Bookmarks