Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How do I calculate text data in 2 different columns?

I have names "McCreight, Doug" in one column and their single letter job code
"M" in next column over. How do I calculate
1. how many rows have a name and a job code?
2. how many rows have entry "vacant" and a job code

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default How do I calculate text data in 2 different columns?

Maybe something like these would suffice:
1. =SUMPRODUCT((OR(A2:A10<{"","vacant"}))*(B2:B10<" "))
2. =SUMPRODUCT((A2:A10="vacant")*(B2:B10<""))
assuming names/"vacant" in col A, job codes in col B
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"dougmcr8" wrote:
I have names "McCreight, Doug" in one column and their single letter job code
"M" in next column over. How do I calculate
1. how many rows have a name and a job code?
2. how many rows have entry "vacant" and a job code

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default How do I calculate text data in 2 different columns?

I will assume names in A1:A100, code in B1:B100
Has a name and a jobe code
=SUMPRODUCT(--(A1:A100""),--(B1:B100''") )
' that is two negatives in a row - and - ; and two double quotes " and
"
Has a name and code is M
=SUMPRODUCT(--(A1:A100""),--(B1:B100=''M"))

No name, but has code
=SUMPRODUCT(--(ISBLANK(A1:A100)),--(NOT(ISBLANK(B1:B100))))

For more details on SUMPRODUCT
Bob Phillips
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
J.E McGimpsey
http://mcgimpsey.com/excel/formulae/doubleneg.html
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email

"dougmcr8" wrote in message
...
I have names "McCreight, Doug" in one column and their single letter job
code
"M" in next column over. How do I calculate
1. how many rows have a name and a job code?
2. how many rows have entry "vacant" and a job code

Thanks



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
problem with Data|Text to Columns P D Sterling New Users to Excel 2 January 2nd 08 03:35 PM
Text to Columns help with my data smoloco Excel Worksheet Functions 1 December 13th 06 03:16 AM
Split text without using data-text to columns Jambruins Excel Discussion (Misc queries) 7 January 21st 06 02:16 PM
Linking text columns with text and data columns Edd Excel Worksheet Functions 0 March 17th 05 04:23 PM
Data Text to Columns RTP Excel Discussion (Misc queries) 4 December 10th 04 06:58 PM


All times are GMT +1. The time now is 10:30 PM.

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"