Message Box showing number of times a certain word followed by a digit occurs first in rows in column

Ironman

Well-known Member
Joined
Jan 31, 2004
Messages
1,069
Office Version
  1. 365
Platform
  1. Windows
Hi

Sheet 'Training 1981-1997' Column F2:F6210 contains text, with some rows that start with the word "Day" (without the commas) followed by a space and a number.

I need to cross-check to make sure I haven't skipped or duplicated a number in error. Therefore what I'd be grateful for is some double click event code I can run in any cell in Col G that will return a msgbox that has counted the number of cells in Col F2:F6210 with text beginning with the word "Day" followed by a space and a digit e.g. "Day 123". I've used the 'Find' function to do this so far, but it'll be faster just to double click.

Many thanks!
 
Last edited:
It would be easier to help if you could use the XL2BB add-in (icon in the menu) to attach a screenshot (not a picture) of your sheet. Alternately, you could upload a copy of your file to a free site such as www.box.com or www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file that you can post here. Explain in detail what you want to do referring to specific cells, rows, columns and sheets using a few examples from your data (de-sensitized if necessary).
 
Upvote 0

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
But your saying the script only shows 9 when run.
Well are you using my script?
I was able to use Mumps' script because he was able to adapt his code to the other scripts in the sheet so it didn't exit. Unfortunately yours won't run because it isn't adapted to the Exit Sub lines in the other scripts.
 
Upvote 0
If my code is not working, please see Post #31.
 
Upvote 0
I was able to use Mumps' script because he was able to adapt his code to the other scripts in the sheet so it didn't exit. Unfortunately yours won't run because it isn't adapted to the Exit Sub lines in the other scripts.
Well I will move on. I think your getting the help you need
 
Upvote 0
You have another BeforeDoubleClick macro referring to column 1 and column 3. Does this code need to be incorporated into the macro I suggested?
 
Upvote 0
Personally, I never like it when posters provide a link to their data
Because now only the ones who are willing to download the file see the entire situation see the code.
I never click on links and download files.
But that's just me. I see a lot of requests here on the forum for doing such.
 
Upvote 0
You have another BeforeDoubleClick macro referring to column 1 and column 3. Does this code need to be incorporated into the macro I suggested?
Yes please, that would be great, thank you.
 
Upvote 0
Personally, I never like it when posters provide a link to their data
Because now only the ones who are willing to see the entire situation see the code.
I never click on links and download files.
But that's just me. I see a lot of requests here on the forum for doing such.
Equally I don't understand why some people are convinced there are folk hanging around, waiting to give them a virus. I'm looking for help, so it's not a very good idea for me to give a virus to anyone trying to help me.
 
Upvote 0

Forum statistics

Threads
1,215,061
Messages
6,122,922
Members
449,094
Latest member
teemeren

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top