lea cohen
Member
Members
Forum Posts: 248
Member Since:
March 10, 2016
March 10, 2016
Offline
Hi, in the attached file which is just an example - in column A there are answers I received to the questionnaire.
In the report on the side I need him to look for the word Cousult
in a column and count how many times it is written.
I will note that the word counsel is written within a sentence.
How do you do it??
In my work file there are 20 comments and I can't search them manually one by one..
Thank you very much...
Alan Sidman
Steamboat Springs, CO
Member
Members
Trusted Members
Trusted Members
Forum Posts: 204
Member Since:
October 18, 2018
October 18, 2018
Offline
Here is a Macro solution for Consult which you can adapt for your other counts
Option ExplicitSub Lea()Dim i As Long, lr As Long, x As Longlr = Range("A" & Rows.Count).End(xlUp).Rowx = 0For i = 2 To lrIf InStr(Range("A" & i), "consult") > 0 Thenx = x + 1End IfNext iRange("C3") = xEnd Sub
lea cohen
Member
Members
Forum Posts: 248
Member Since:
March 10, 2016
March 10, 2016
Offline
Thanks!!!
I need the answer to many cells in the report on the side.
So I would love to understand how to activate the macro and how to get the answer in all the cells. Thanks!!!!
And it is not possible to write this in a normal function in Excel? Why do you need a macro code?
If you could send me the answer in the file, it would help me a lot, thanks!!!
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online:
Guest(s) 6
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Catalin Bombea: 1939
SunnyKow: 1432
Anders Sehlstedt: 917
Purfleet: 415
Frans Visser: 349
Hans Hallebeek: 331
David_Ng: 306
lea cohen: 248
Jessica Stewart: 219
A.Maurizio: 216
Newest Members:
Ahsan AYUB
Daniel Neilson
Joy Nicholes
Earl Hanlon
Paulo Pinto
Tavonga Machigere
Marc Poulopoulos
Viki Hennon
David Tucker
Garima Lal
Forum Stats:
Groups: 3
Forums: 25
Topics: 7058
Posts: 30931
Member Stats:
Guest Posters: 49
Members: 34427
Moderators: 2
Admins: 3
Administrators: Mynda Treacy, Philip Treacy, Jessica
Moderators: Velouria, Riny van Eekelen
© Simple:Press —