search
Japanese Chinese Nederlands Espanol Italiano Deutsch Francais Twitter Rss Feeds
Office GroupsView
Excel
Excel Charting
Excel Crashesgpfs
Excel Misc
Excel Newusers
Excel Programming
Excel Setup
Excel Worksheet Functions
Office Communicator
Office Developer Automation
Office Developer Com Add_Ins
Office Developer Visual Basica
Office Misc
Office Setup
Office Templates Misc
Officeupdate
Onenote
Outlook
Outlook Bcm
Outlook Calendaring
Outlook Contacts
Outlook General
Outlook Installation
Outlook Program_Addins
Outlook Program_Forms
Outlook Program_Visual Basica
Outlookexpress General
Project
Project Developer
Project Server
Visio
Visio Developer
Visio General
Word Application Errors
Word Customization Menustoolbars
Word Drawing Graphics
Word Mailmerge Fields
Word Pagelayout
Word Programming
Word Tables
Word Visual Basica Beginners
Word Visual Basica Customization
Word Visual Basica General
Works Win

Group SummariesView
.NET Framework
Access
BizTalk
Certifications
CRM
DDK
Exchange Server
FoxPro
French
French .NET
Games
German
German .NET
Graphic Design
IIS
Internet
ISA Server
Italian
Italian .NET
Maps
MCIS
Miscellaneous
Mobile Application Development
Money
MSN
Networking
Office
Ops Mgr
Publisher
Security
SharePoint
Small Business
Spanish
Spanish .NET
SQL Server
Systems Management Server
Transaction Server
Virtual PC / Virtual Server
Visual Studio
Win32
Windows 2000
Windows 2003 Server
Windows 7
Windows Live
Windows Media
Windows Update
Windows Vista
Windows XP
 

View All Microsoft Excel Worksheet Functions Posts  Ask A New Question 

If, Count & Array - jun

Wednesday, April 23, 2008 12:28 AM

All

I have the following scenario

ADL	PC	NOTEBOOK	IN-USE
MEL	LCD	17 INCH	                SPARE
MEL	PC	NOTEBOOK	IN-USE
MEL	PC	NOTEBOOK	IN-USE
SYD	PC	DESKTOP	                SPARE
SYD	PC	NOTEBOOK	IN-USE

I need to count how many in use, pc, notebooks, in syd.  I'm thinking I
would use If, count and then an array to look over the range.  I would like
it in either vba (just learning) or the easiest way to write the formula

I hope I have put enough details and explained myself
TIA
Bec
(it's grey and raining in Sydney, Aus)
reply
 

Bec --Try - pdberge

Wednesday, April 23, 2008 12:44 AM

Bec --
Try this:

=SUMPRODUCT(--(A1:A100="SYD"),--(B1:B100="PC"),--(C1:C100="NOTEBOOK IN-USE"))

Set the range to the right number of rows.

HTH
reply

Assuming you have 4 columns of data - T. Valko

Wednesday, April 23, 2008 12:45 AM

Assuming you have 4 columns of data there:


=SUMPRODUCT(--(A1:A6="syd"),--(B1:B6="PC"),--(C1:C6="notebook"),--(D1:D6="in-use"))

Better if you use cells to hold the criteria:

J1 = syd
K1 = PC
L1 = notebook
M1 = in-use

=SUMPRODUCT(--(A1:A6=J1),--(B1:B6=K1),--(C1:C6=L1),--(D1:D6=M1))


--
Biff
Microsoft Excel MVP
reply
 
 

Previous Microsoft Excel Worksheet Functions conversation.