### How JustAnswer Works:

• Ask an Expert
• Get a Professional Answer
• 100% Satisfaction Guarantee

The-PC-Guy, Computer Manager
Category: Microsoft Office
Satisfied Customers: 1402
Experience:  20 years experience providing remote computer support
62934938
Type Your Microsoft Office Question Here...
The-PC-Guy is online now

# I have a string in column A1 -A5001 with the same text for

### Resolved Question:

I have a string in column A1 -A5001 with the same text for the first 28 characters:

Example: /404.html?page=/find-a-park/

After that there is a 2-3 digit numeral and then different text that I need to Identify and count as an entry
Example:
11-text1
12-text2
101-text3
etc

So the string looks like this:
In Column A1:
/404.html?page=/find-a-park/11-Text1&from=http://www.domain.com/find-a-park/

Then in B1 there is the number of time this occurred: 3000

In column A2:
/404.html?page=/find-a-park/12-Text2&from=http://www.domain.com/find-a-park/

I have a count in B2: 2500

I might have much the same string in column A3 but where it came from is different:
/404.html?page=/find-a-park/11-Text1&from=http://www.domain2.com/

I have a count in B3: 250

I want to Identify and sum the count totals of column A So at the end I would have a report that states the following:

11-Text1 = 3250
12-Text2 = 2500
Submitted: 1 year ago.
Category: Microsoft Office
Expert:  Richard replied 1 year ago.
Thank you for your question, my name is Richard.

To do this, you would use a countif statement.

So for the cell next to the totals for 11-Text1

You would have

=countif(A1:A5001,"11-Text1")

Which will tell you how many times 11-Text1 occurs in Column A.

You can then sum these count totals at the bottom of the countif totals by using

=Sum(Start Cell:End Cell)

If you have difficulties doing this, upload the sheet and I can do it for you. Use my below instructions to do this please

- Click the following link: http://www.wikisend.com
- Upload the file to that website
- Once it is uploaded, the resulting page will display a "File ID" number.
- Please, give me that "File ID Number"

Thank you

Customer: replied 1 year ago.

You did not include the total counts in the B Column which is what I need to count.

A1: Text1 B1:3000

A2: Text2 B2:2500

A3: Text1 B3: 250

so on and so on for 5000 cells

because you did not even see the B column description, I wonder how much you studied my detailed question

Expert:  Richard replied 1 year ago.
Everything was 404 messages and not actual links Scott in your message, this is a part of it, but your entire message looked like this.

So the string looks like this:
In Column A1:
/404.html?page=/find-a-park/11-Text1&from=http://www.domain.com/find-a-park/

Then in B1 there is the number of time this occurred: 3000

In column A2:
/404.html?page=/find-a-park/12-Text2&from=http://www.domain.com/find-a-park/

I have a count in B2: 2500

I might have much the same string in column A3 but where it came from is different:
/404.html?page=/find-a-park/11-Text1&from=http://www.domain2.com/

This is why I ask for a copy of the file so I can view it correctly.

Customer: replied 1 year ago.
Expert:  Richard replied 1 year ago.
Scott,

Your request regarding the additional columns is not clear, if you scroll to the top of the page, you can see this.

this is why I asked for the file please, so I can see and do this myself.

- Click the following link: http://www.wikisend.com
- Upload the file to that website
- Once it is uploaded, the resulting page will display a "File ID" number.
- Please, give me that "File ID Number"

Thank you
Customer: replied 1 year ago.

You don't yet seem to understand what I am asking so it won;'t do any good to send you a file as the answer will still be wrong

Expert:  Richard replied 1 year ago.
Scott,

Did you see your explanation? Scroll up and have a look.

Customer: replied 1 year ago.
I have been on with this guy for 30 minutes and he still can't read my question
Expert:  The-PC-Guy replied 1 year ago.
Thanks for using JustAnswer. My name isXXXXX will do whatever I can to answer your question

I have an idea of what you are trying to do.

There are 2 things to do

If you would like to work with me let me know and I will help you
Customer: replied 1 year ago.

I just spent 30 minutes with the expert above and he never answered it because he never understood it. I am looking for an answer to an excel question. Are you an Excel expert?

Expert:  The-PC-Guy replied 1 year ago.
yes I am

So

if I am to understand what you want

you want to know how many times that particular portion of the text occurrs.

for example how many times 11-Text1 occurs, how many times 12-Text2 occurs, how many times 13-whateverthistextis occurrs, and so on?

And you want to know how many times just that part of column A occurs regardless of the ending url.

Unless I misunderstood your request.

Customer: replied 1 year ago.

The totals are in b1-b5000 but there are many different page referrals and its the total referrals in the B column I need to count. I am sending snapshot of what the report will look like using a small sample. The highlighted cells are the multiple park occurrences.

Expert:  The-PC-Guy replied 1 year ago.
ok, I know exactly what you need now.

Here is an example based on your screen shot

I had to add a 3rd column, We will call it collumn C for now, the formula in that column separates that specific part of the text in column A

The pivot table sheet, sums up all of B rows that match the text so you get the values you are looking for.

Both column C formula, and the pivot table must be added to your sheet for this to work.

If you need help integrating this into your sheet I can help with that, just let me know

When you are satisfied that my solution works

PLEASE RATE MY SERVICE

NOTE: You are rating my service, and your experience in working with me only, not your experience in working with any other expert, site issues, or with any software package.

---------------------------------------------------------------------------------------------------------------

if you have any questions in the future you can visit my profile

and ask a question right in my box,

also you can put "PC Guy only" in your question title if you want to get to me.
Customer: replied 1 year ago.

Ok So were close but the totals in your example for Text1 show 615,000 the actual number (SUM) is 620,000.

Once this is clarified then please help me get it in to my spreadsheet so I can test against the actual numbers. Then we should be done.

Customer: replied 1 year ago.

One other thing the example you sent had only 3 parks, I have 87 spread over 5000 links. so we have to pull the up the 3rd occurence of "-" to id it completely

Example:

/find-a-park/19-woodridge-ny-

/find-a-park/107-fredericksburg-texas-

Expert:  The-PC-Guy replied 1 year ago.
Ok, the easiest way for me to integrate this into your sheet would be to have you upload the actual file.

Setting up pivot tables can be a pain, and I would like to make this as easy as possible.

So can you upload your file to the

www.wikisend.com

paste that here, so I can put this directly into your sheet.
Expert:  The-PC-Guy replied 1 year ago.
if you have trouble uploading the file, let me know, and I will find another way to help you
Customer: replied 1 year ago.

so we have to pull the up the 3rd occurrence of "-" (after the first 28 characters) to id it completely

• File ID: 258560

Expert:  The-PC-Guy replied 1 year ago.
Expert:  The-PC-Guy replied 1 year ago.
are you having problems with what I did, or does it make sense?

When you are satisfied that my solution works

PLEASE RATE MY SERVICE - You may do so by click one of the smiley faces at the bottom of this screen

NOTE: You are rating my service, and your experience in working with me only, not your experience in working with any other expert, site issues, or with any software package.

---------------------------------------------------------------------------------------------------------------

if you have any questions in the future you can visit my profile

and ask a question right in my box,

also you can put "PC Guy only" in your question title if you want to get to me
Customer: replied 1 year ago.

I think so I have one count off I am using to check but I believe its because I have more rows then I sent you. Can you send me any directions I need to add the extra rows...That way I won;t hold up the process and I can close the question.

Expert:  The-PC-Guy replied 1 year ago.
yes

can you please tell me which version of excel you are using so I can give you specific instructions on how to update the data?
Customer: replied 1 year ago.

2010

Expert:  The-PC-Guy replied 1 year ago.
ok.

to add more rows

first on sheet 1

add whatever data you need to columns A and B

then copy the formula in column C down for as many rows as you have data

then goto the pivot table sheet

click anywhere on the pivot table data, clicking the heading in Row 3 works fine too.

then once you do that look at your Ribbon tool bar, that is the tool bar across the top with all of the icons on it. You will notice that Pivot Table Tools has been added and is in pink.

Under pivot table tools click the word "options"

then on the tool bar click the "refresh" icon, that will update the pivot table to include any new data.

Let me know if any of this is unclear

The-PC-Guy, Computer Manager
Category: Microsoft Office
Satisfied Customers: 1402
Experience: 20 years experience providing remote computer support
The-PC-Guy and 5 other Microsoft Office Specialists are ready to help you

### JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

### What Customers are Saying:

• My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
< Last | Next >
• My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed. One Happy Customer New York
• Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help. Mary C. Freshfield, Liverpool, UK
• This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!! Alex Los Angeles, CA
• Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult. GP Hesperia, CA
• I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, NC
• Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around. Esther Woodstock, NY
• Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know. Robin Elkton, Maryland

• ### jstinehelfer

#### Satisfied Customers:

36
A+ Comptia Certified computer repair
< Last | Next >

### jstinehelfer

#### Satisfied Customers:

36
A+ Comptia Certified computer repair

### JasonJames122

#### Satisfied Customers:

0
I manage all information systems (network of Windows PC's and servers with Microsoft Office products) for a small business

### Jess M.

#### Satisfied Customers:

301
Computer Software Specialist for more than 10 years

### The-PC-Guy

#### Satisfied Customers:

274
20 years experience providing remote computer support

### Steve Herrod

#### Satisfied Customers:

125
Trained in Microsoft Office from 2000 through to latest version 2010.

### Chris L.

#### Satisfied Customers:

124
Certified Expert with over 10 years experience.

### IT Miro

#### Satisfied Customers:

97
Bachelor's Degree in Information Technology, Microsoft Certified Professional

## Related Microsoft Office Questions

Chat Now With A Microsoft Office Technician
The-PC-Guy
327 Satisfied Customers
20 years experience providing remote computer support