Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tom B
 
Posts: n/a
Default In Excel, How do i add Words together.

I need to find a formula that will allow me to add words in a column and only
the specific words i want.

iEx. in a column i will have the words: Broker, Agent, Agent, Agent, Loan
Officer, Agent, Loan Officer. I need the formula to add and total the
number of Brokers and Agetns that are there and not the Loan Officers.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bpeltzer
 
Posts: n/a
Default In Excel, How do i add Words together.

You can count the number of cells that match a specific string using countif:
=countif(a:a,"Broker")

"Tom B" wrote:

I need to find a formula that will allow me to add words in a column and only
the specific words i want.

iEx. in a column i will have the words: Broker, Agent, Agent, Agent, Loan
Officer, Agent, Loan Officer. I need the formula to add and total the
number of Brokers and Agetns that are there and not the Loan Officers.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default In Excel, How do i add Words together.

Let's try this one piece at a time, then you can combine them later:

With your list in Cell A1.
Count of Agent is...
B1: Agent
C1: =(LEN(UPPER(A1))-LEN(SUBSTITUTE(UPPER(A1),UPPER(B1),"")))/LEN(B1)

Count of Broker is.....
B2: Broker
C2: =(LEN(UPPER(A2))-LEN(SUBSTITUTE(UPPER(A2),UPPER(B2),"")))/LEN(B2)

Does that help?

***********
Regards,
Ron


"Tom B" wrote:

I need to find a formula that will allow me to add words in a column and only
the specific words i want.

iEx. in a column i will have the words: Broker, Agent, Agent, Agent, Loan
Officer, Agent, Loan Officer. I need the formula to add and total the
number of Brokers and Agetns that are there and not the Loan Officers.


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Whoops...misunderstood the question

I calculated how many times a word was found in a single cell.

Like...
A1: Broker, Agent, Agent, Agent, Loan Officer, Agent, Loan Officer.


***********
Regards,
Ron


"Ron Coderre" wrote:

Let's try this one piece at a time, then you can combine them later:

With your list in Cell A1.
Count of Agent is...
B1: Agent
C1: =(LEN(UPPER(A1))-LEN(SUBSTITUTE(UPPER(A1),UPPER(B1),"")))/LEN(B1)

Count of Broker is.....
B2: Broker
C2: =(LEN(UPPER(A2))-LEN(SUBSTITUTE(UPPER(A2),UPPER(B2),"")))/LEN(B2)

Does that help?

***********
Regards,
Ron


"Tom B" wrote:

I need to find a formula that will allow me to add words in a column and only
the specific words i want.

iEx. in a column i will have the words: Broker, Agent, Agent, Agent, Loan
Officer, Agent, Loan Officer. I need the formula to add and total the
number of Brokers and Agetns that are there and not the Loan Officers.


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default See if this works

Try this:
=SUMPRODUCT(--ISNUMBER(SEARCH(B1:B10,"Broker~agent")))

Adjust the range to suit your situation.

Does that help?

***********
Regards,
Ron


"Tom B" wrote:

yes and no... i think you had it right the first time. each word is in a
separate cell. sample below:

Name Position email phone
A B C
D
1 Jim Smith Agent 12345
2 John Smith Broker
12345
3 Jane Smith Loan Officer
12345
4 Jake Smith Agent jake @email.com
12345

Total Agent/Broker 3
(this is what I need)

I need it to add all the agents in the column and not add the 'Loan Officer'

"Ron Coderre" wrote:

I calculated how many times a word was found in a single cell.

Like...
A1: Broker, Agent, Agent, Agent, Loan Officer, Agent, Loan Officer.


***********
Regards,
Ron


"Ron Coderre" wrote:

Let's try this one piece at a time, then you can combine them later:

With your list in Cell A1.
Count of Agent is...
B1: Agent
C1: =(LEN(UPPER(A1))-LEN(SUBSTITUTE(UPPER(A1),UPPER(B1),"")))/LEN(B1)

Count of Broker is.....
B2: Broker
C2: =(LEN(UPPER(A2))-LEN(SUBSTITUTE(UPPER(A2),UPPER(B2),"")))/LEN(B2)

Does that help?

***********
Regards,
Ron


"Tom B" wrote:

I need to find a formula that will allow me to add words in a column and only
the specific words i want.

iEx. in a column i will have the words: Broker, Agent, Agent, Agent, Loan
Officer, Agent, Loan Officer. I need the formula to add and total the
number of Brokers and Agetns that are there and not the Loan Officers.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Value Errors with EXCEL XP not showing up in EXCEL 2000 goodguy Links and Linking in Excel 0 July 19th 05 02:38 PM
How do I add header information to an Excel file? In other words,. Alvin M. New Users to Excel 2 January 26th 05 06:33 PM
Difference in number of Excel NewsGroups Hari Prasadh Excel Discussion (Misc queries) 1 January 25th 05 11:32 AM
how do I add accents for foreign words when using excel? devlys Excel Discussion (Misc queries) 2 January 11th 05 05:57 PM
Parsing words in excel cells Acfonseca Excel Worksheet Functions 2 January 10th 05 02:02 PM


All times are GMT +1. The time now is 11:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"