#### Get a percentage based on multiple conditions

```I would like to determine a percentage in Excel that is based on
multiple conditions.  This is for a serious a products on different
displays and the quantity on those displays.  I need to know out of
all the stores surveyed, what percentage of those stores had a lobby
display with more than 150 cases. If I had a small set of data I'm
sure I could just pivot the data a few ways and be done, but I have
over 50,000 rows.  See the sample set of data below for more detail.

Store	Display		Product		Qty
-------	--------------	--------------	----------
123	Lobby		Soda Cans	50
123	Aisle		Soda Cans	75
123	Perimeter	Soda Cans	75
123	Lobby		2 liter		120
123	Aisle		2 liter		200
123	Perimeter	2 liter		50
123	Lobby		20 oz		20
123	Aisle		20 oz		60
123	Perimeter	20 oz		0
456	Lobby		Soda Cans	100
456	Aisle		Soda Cans	50
456	Perimeter	Soda Cans	50
456	Lobby		2 liter		25
456	Aisle		2 liter		150
456	Perimeter	2 liter		25
456	Lobby		20 oz		20
456	Aisle		20 oz		60
456	Perimeter	20 oz		0
789	Lobby		Soda Cans	40
789	Aisle		Soda Cans	100
789	Perimeter	Soda Cans	20
789	Lobby		2 liter		80
789	Aisle		2 liter		200
789	Perimeter	2 liter		50
789	Lobby		20 oz		40
789	Aisle		20 oz		60
789	Perimeter	20 oz		0

>From this sample data, you would determine that out of the 3 stores
only 2 of them (66%) have a Lobby display with more than 150 cases. In
Excel 2003, how I can I do this? I cannot wrap my head around it.
Thank you in advance for your assistance.

```
 0
8/22/2007 8:09:05 PM
excel 39879 articles. 2 followers.

4 Replies
5218 Views

Similar Articles

[PageSpeed] 34

```On Aug 22, 2:09 pm, Matt <mcvanoli...@gmail.com> wrote:
> I would like to determine a percentage in Excel that is based on
> multiple conditions.  This is for a serious a products on different
> displays and the quantity on those displays.  I need to know out of
> all the stores surveyed, what percentage of those stores had a lobby
> display with more than 150 cases. If I had a small set of data I'm
> sure I could just pivot the data a few ways and be done, but I have
> over 50,000 rows.  See the sample set of data below for more detail.
>
> Store   Display         Product         Qty
> ------- --------------  --------------  ----------
> 123     Lobby           Soda Cans       50
> 123     Aisle           Soda Cans       75
> 123     Perimeter       Soda Cans       75
> 123     Lobby           2 liter         120
> 123     Aisle           2 liter         200
> 123     Perimeter       2 liter         50
> 123     Lobby           20 oz           20
> 123     Aisle           20 oz           60
> 123     Perimeter       20 oz           0
> 456     Lobby           Soda Cans       100
> 456     Aisle           Soda Cans       50
> 456     Perimeter       Soda Cans       50
> 456     Lobby           2 liter         25
> 456     Aisle           2 liter         150
> 456     Perimeter       2 liter         25
> 456     Lobby           20 oz           20
> 456     Aisle           20 oz           60
> 456     Perimeter       20 oz           0
> 789     Lobby           Soda Cans       40
> 789     Aisle           Soda Cans       100
> 789     Perimeter       Soda Cans       20
> 789     Lobby           2 liter         80
> 789     Aisle           2 liter         200
> 789     Perimeter       2 liter         50
> 789     Lobby           20 oz           40
> 789     Aisle           20 oz           60
> 789     Perimeter       20 oz           0
>
> >From this sample data, you would determine that out of the 3 stores
>
> only 2 of them (66%) have a Lobby display with more than 150 cases. In
> Excel 2003, how I can I do this? I cannot wrap my head around it.
> Thank you in advance for your assistance.

You might try the following formula:
=COUNTIF(D2:D50000,">=150")/COUNT(D2:D50000)

Scott

```
 0
maistrye (14)
8/22/2007 11:08:43 PM
```On Aug 22, 5:08 pm, Scott <maist...@gmail.com> wrote:
> On Aug 22, 2:09 pm, Matt <mcvanoli...@gmail.com> wrote:
>
>
>
> > I would like to determine a percentage in Excel that is based on
> > multiple conditions.  This is for a serious a products on different
> > displays and the quantity on those displays.  I need to know out of
> > all the stores surveyed, what percentage of those stores had a lobby
> > display with more than 150 cases. If I had a small set of data I'm
> > sure I could just pivot the data a few ways and be done, but I have
> > over 50,000 rows.  See the sample set of data below for more detail.
>
> > Store   Display         Product         Qty
> > ------- --------------  --------------  ----------
> > 123     Lobby           Soda Cans       50
> > 123     Aisle           Soda Cans       75
> > 123     Perimeter       Soda Cans       75
> > 123     Lobby           2 liter         120
> > 123     Aisle           2 liter         200
> > 123     Perimeter       2 liter         50
> > 123     Lobby           20 oz           20
> > 123     Aisle           20 oz           60
> > 123     Perimeter       20 oz           0
> > 456     Lobby           Soda Cans       100
> > 456     Aisle           Soda Cans       50
> > 456     Perimeter       Soda Cans       50
> > 456     Lobby           2 liter         25
> > 456     Aisle           2 liter         150
> > 456     Perimeter       2 liter         25
> > 456     Lobby           20 oz           20
> > 456     Aisle           20 oz           60
> > 456     Perimeter       20 oz           0
> > 789     Lobby           Soda Cans       40
> > 789     Aisle           Soda Cans       100
> > 789     Perimeter       Soda Cans       20
> > 789     Lobby           2 liter         80
> > 789     Aisle           2 liter         200
> > 789     Perimeter       2 liter         50
> > 789     Lobby           20 oz           40
> > 789     Aisle           20 oz           60
> > 789     Perimeter       20 oz           0
>
> > >From this sample data, you would determine that out of the 3 stores
>
> > only 2 of them (66%) have a Lobby display with more than 150 cases. In
> > Excel 2003, how I can I do this? I cannot wrap my head around it.
> > Thank you in advance for your assistance.
>
> You might try the following formula:
> =COUNTIF(D2:D50000,">=150")/COUNT(D2:D50000)
>
> Scott

Ok, Ignore me.. I didn't read. :-)

```
 0
maistrye (14)
8/22/2007 11:18:34 PM
```On Aug 22, 7:18 pm, Scott <maist...@gmail.com> wrote:
> On Aug 22, 5:08 pm, Scott <maist...@gmail.com> wrote:
>
>
>
>
>
> > On Aug 22, 2:09 pm, Matt <mcvanoli...@gmail.com> wrote:
>
> > > I would like to determine a percentage in Excel that is based on
> > > multiple conditions.  This is for a serious a products on different
> > > displays and the quantity on those displays.  I need to know out of
> > > all the stores surveyed, what percentage of those stores had a lobby
> > > display with more than 150 cases. If I had a small set of data I'm
> > > sure I could just pivot the data a few ways and be done, but I have
> > > over 50,000 rows.  See the sample set of data below for more detail.
>
> > > Store   Display         Product         Qty
> > > ------- --------------  --------------  ----------
> > > 123     Lobby           Soda Cans       50
> > > 123     Aisle           Soda Cans       75
> > > 123     Perimeter       Soda Cans       75
> > > 123     Lobby           2 liter         120
> > > 123     Aisle           2 liter         200
> > > 123     Perimeter       2 liter         50
> > > 123     Lobby           20 oz           20
> > > 123     Aisle           20 oz           60
> > > 123     Perimeter       20 oz           0
> > > 456     Lobby           Soda Cans       100
> > > 456     Aisle           Soda Cans       50
> > > 456     Perimeter       Soda Cans       50
> > > 456     Lobby           2 liter         25
> > > 456     Aisle           2 liter         150
> > > 456     Perimeter       2 liter         25
> > > 456     Lobby           20 oz           20
> > > 456     Aisle           20 oz           60
> > > 456     Perimeter       20 oz           0
> > > 789     Lobby           Soda Cans       40
> > > 789     Aisle           Soda Cans       100
> > > 789     Perimeter       Soda Cans       20
> > > 789     Lobby           2 liter         80
> > > 789     Aisle           2 liter         200
> > > 789     Perimeter       2 liter         50
> > > 789     Lobby           20 oz           40
> > > 789     Aisle           20 oz           60
> > > 789     Perimeter       20 oz           0
>
> > > >From this sample data, you would determine that out of the 3 stores
>
> > > only 2 of them (66%) have a Lobby display with more than 150 cases. In
> > > Excel 2003, how I can I do this? I cannot wrap my head around it.
> > > Thank you in advance for your assistance.
>
> > You might try the following formula:
> > =COUNTIF(D2:D50000,">=150")/COUNT(D2:D50000)
>
> > Scott
>
> Ok, Ignore me.. I didn't read. :-)- Hide quoted text -
>
> - Show quoted text -

Well, that may help in a small way, it will give me an idea of what
I'm working with, but unfortunately that still isn't the solution.  I
haven't been able to figure out a way to do this...

```
 0
8/23/2007 1:44:17 PM
```On Aug 23, 6:09 am, Matt <mcvanoli...@gmail.com> wrote:
> I would like to determine a percentage in Excel that is based on
> multiple conditions.  This is for a serious a products on different
> displays and the quantity on those displays.  I need to know out of
> all the stores surveyed, what percentage of those stores had a lobby
> display with more than 150 cases. If I had a small set of data I'm
> sure I could just pivot the data a few ways and be done, but I have
> over 50,000 rows.  See the sample set of data below for more detail.
>
> Store   Display         Product         Qty
> ------- --------------  --------------  ----------
> 123     Lobby           Soda Cans       50
> 123     Aisle           Soda Cans       75
> 123     Perimeter       Soda Cans       75
> 123     Lobby           2 liter         120
> 123     Aisle           2 liter         200
> 123     Perimeter       2 liter         50
> 123     Lobby           20 oz           20
> 123     Aisle           20 oz           60
> 123     Perimeter       20 oz           0
> 456     Lobby           Soda Cans       100
> 456     Aisle           Soda Cans       50
> 456     Perimeter       Soda Cans       50
> 456     Lobby           2 liter         25
> 456     Aisle           2 liter         150
> 456     Perimeter       2 liter         25
> 456     Lobby           20 oz           20
> 456     Aisle           20 oz           60
> 456     Perimeter       20 oz           0
> 789     Lobby           Soda Cans       40
> 789     Aisle           Soda Cans       100
> 789     Perimeter       Soda Cans       20
> 789     Lobby           2 liter         80
> 789     Aisle           2 liter         200
> 789     Perimeter       2 liter         50
> 789     Lobby           20 oz           40
> 789     Aisle           20 oz           60
> 789     Perimeter       20 oz           0
>
> >From this sample data, you would determine that out of the 3 stores
>
> only 2 of them (66%) have a Lobby display with more than 150 cases. In
> Excel 2003, how I can I do this? I cannot wrap my head around it.
> Thank you in advance for your assistance.

Enter the following as an array formula i.e. ... Ctrl Shft Enter,
rather than the usual ... Enter:

=COUNT(IF(\$B2:\$B50000="Lobby",IF(\$D2:\$D50000=150,\$D2:\$D50000))) /
COUNT(\$D\$2:\$D\$50000)

```
 0
daxmiller (1)
8/24/2007 9:28:55 AM

Similar Artilces:

XML serialization , validating against multiple schemas
Hi My web service receives an object of type say MyObject. I want to serialize this object,and then validate the xml against the main xsd. When validation happens, it should also validate against the included schema. The main schema includes one more schema and the actual types are described in the included schema. eg., <xs:schema xmlns:t="http://myschemas/base" xmlns=""> <xs:import schemaLocation="base.xsd" /> <xs:element name="MyObject"> <xs:complexType> <xs:sequence minOccurs="0"> <xs:element name=&...

How to get Calendar to send me reminders
I have changed my e-mail address but for some reason I cannot get Calendar to send reminders to my new address - I think I have carried out all that is necessary to effect the changover but I am not getting reminders sent. Can anyone help please? Is the Calendar Live ID based and accessible at Calendar.live.com ? -- ....winston ms-mvp mail "Dabardevon" wrote in message = news:FDC2B3B2-EDE4-41B1-BFC4-C0F9ED59CFB9@microsoft.com... I have changed my e-mail address but for some reason I cannot get = Calendar to send reminders to my new address - I think I have...

Some recipients get the attachment, some get winmail.dat
This one has me baffled. We are using Exchange 2000 and Outlook 2000 and have been for 8 months. No previous problems with attachments (.doc, .xls, .jpg). About 2 weeks ago, we started hearing from certain recipients that the attachment wasn't arriving; instead they were getting an unreadable file called winmail.dat. MS says that this is because the sender is using Rich Text to format the email. We have changed the senders to use Plain Text and still have the same problem. If the email is sent to several recipients, some will get the attachment fine, some will not. This didn'...

Hi, I have two files (a master and a detail) in which I pull through a column from the detail to the master, using "=[Detail.xls]Sheet1!\$A\$2" However I would like to configure the spreadsheets so that only data which meets a condition is pulled in the master, in other words using pseudo code as follows. If [link] in detail.xls = yes then display in master. I realise that the condition statement will probably need to sit in the master file but have no idea how this is done or whether possible at all. Any ideas? Mark -- madiba --------------------------------------------------...

How to get the CScrollBar's Handle in CTreeCtrl?
Hey,All: I thought I have a problem when I trid to get the CScrollBar's handle from my CTreeCtrl extended handle. Can anybody tell me whether I can get the handle of the CScrollBar from the CTreeCtrl? Thanks in advance! Carl :-| Carl wrote: > Hey,All: > > I thought I have a problem when I trid to get the CScrollBar's handle from > my CTreeCtrl extended handle. > Can anybody tell me whether I can get the handle of the CScrollBar from the > CTreeCtrl? > > Thanks in advance! > Carl > :-| > > Sorry, it is not that simple. The scroll bars that...

A Crystal Beginner
I am using Crystal 9.2.4.77 and have loaded the Crystal enhancements. Now I want to do against the CRM database. What do I do? I thought I would create a data source to the CRM SQLserver, which I did, then connect to it through Crystal Reports. That works, but when I drill down on the AAA_MSCRM database to choose my tables, it shows me dbo as the only option (where did this come from??) and under that are just a few generic tables. No CRM tables. Something's not quite right. What am I missing? file - log on to aps server "KBLawson" <klawson@aetinc.com> wrote in ...

Cannot get fast forward or fast reverse to work with WMP 11
I am running Vista Home Premium on a HP G 217-EM Notebook which comes pre-installed with Windows Media Player 11. When I play cds and try to fast forward or fast reverse by keeping the fast forward or fast reverse buttons constantly depressed nothing happens. Why is this, and can anyone come up with a solution? Many thanks This doesn't work on my system either, so it's probably just a limitation of WMP. Fast forward and fast reverse should work fine when you rip the CD's to MP3 or WMA files, and play these files instead. Regards -- Tim De Baets http://www....

Get paid while you get online!!
I found a great Internet company - Cashfiesta.com - that has created a product everyone can benefit from. They pay you while you work or play on your computer. All you need to do is keep their software - the FiestaBar=99 - active while you are online. They even pay you when your friends are using their computers. Unlike other companies, Cashfiesta gives you control over how much money you earn. They have an individual payrate based on the number of Special Offers you sign up for. As some of these offers are free, you can increase your payrate up to 33 times without spending a penny. It's...

Can't get auto-update (update) to install
Version: 2008 Operating System: Mac OS X 10.4 (Tiger) Processor: Power PC I've been trying to manually check for updates to Word 2008, and I get a &quot;critical update&quot; notice, asking me to install auto-update. When I try to install it, I cannot. It just keeps repeating the attempt, in an &quot;endless loop.&quot; What to do? <br> Thank you. ...

Hello All: I have a relatively large spreadsheet. I am getting errors (see after my signature line). What could be causing these errors? Is it that the spreadsheet is too large? Thanks Deguza -------------------------------------------------------- Microsoft Office Excel File Repair Log Errors were detected in file 'C:\Documents and Settings\deguza\My Documents\sales\Sales_2006_2007.xls' The following is a list of repairs: Global PivotTable report information was repaired due to integrity problems. Global PivotTable report information was repaired due to integrity problems. Glo...

inserting texts in cell based on conditions
Hi, I would very much appreciate if someone could help me solving a problem, illustrated by the following example: Column A B C 1 1 "LB" 2 1 "DK" 3 4 1 1 "LB/DK" If there's a 1 in column A, the corresponding cell in column C should get the text "LB" inserted into it. If there's a 1 in column C, the corresponding cell in column C should get the text "DK" inserted into it. If both column A and B have ones in them, the corresponding cell should get the...

Reg getting the next IV Document Number field !
Hi, I am creating a window in dexterity similar to the item transaction entry window (Transactions>Inventory> Transaction Entry). In the Item transaction Entry window, the Document number field defaults to the next document number when we move the focus to that field. I wanted to know if there is any function , or table that i can access to get the next document number in the new window that i am creating. Thanks, swetha -- swetha >In the Item transaction Entry window, the Document number field defaults to the next document number when we move the focus to that field.< T...

How do I get??
Sorry if this seems a fairly easy question to you guys. I have a spreadsheet and I need to get the current system time into a cell. The format of the time is hh:mm am/pm. Any assistance would be most helpful. Hi try =INT(NOW()) in this cell and format is to your needs -- Regards Frank Kabel Frankfurt, Germany PM wrote: > Sorry if this seems a fairly easy question to you guys. > > I have a spreadsheet and I need to get the current system time into a > cell. The format of the time is hh:mm am/pm. > > Any assistance would be most helpful. PM, in the cell you want pu...

send the same message to multiple recipients
I need to accomplish the assignment below every month, with a different list eachtime, what is the right way to do it? I DO KNOW the basics, but I'm having trouble with the finer points re: the best way to use email addresses that are not initially in Outlook, and the best way to use TO: and BCC: and distribution lists effectively to make the email look correct at the recipient's end. I'm starting with a .TXT file in Windows but it's external from Outlook. The file contains names and email addresses, approx 25 to 50 names. Here is a sample of the .TXT file (my real f...

enhanced conditional formatting
i want a conditional formatting system that is not limited like the current one. currently i can only set 3 conditions and the formating settings for each condition being true in the following scenario i would require 6 conditions that would require the values of more than 1 row/column to be of a specific value to create the desire effect. they are as follows: 1) if drivable is = yes and elapsed between 0 and 6 cell shadow green 2) if drivable is = no and elapsed between 0 and 3 cell shadow green 3) if drivable is = yes and elapsed between 6 and 9 cell shadow orange 4) if drivable is = no...

Get notified when Out of Office is on
I am using Outlook 2007. With 2003, when returning from leave, I used to get a notification that the Outlook out of office was still on and asking me if I wanted to switch it off. This reminder no longer appears with 2007. How can I switch this setting on so that I get the notification? "Mary Ann" <MaryAnn@discussions.microsoft.com> wrote in message news:ED5533A7-D0EA-41B8-B1A0-A9D15FB6FD98@microsoft.com... >I am using Outlook 2007. With 2003, when returning from leave, I used to get > a notification that the Outlook out of office was still on and asking me ...

Can the Item Description wrap to multiple lines on an invoice?
We have some long item descriptions (up to the 100 character limit), and we were trying to figure out how to get them to print on an invoice. If I spread the field all out on a single line, it's too long to fit on the document. If I create a box that's several lines tall, it does partially wrap, but it doesn't print the full description - it cuts off after around the 60th character or so. Has anyone successfully wrapped an item description on an invoice? -- Bud Cool, Accounting System Manager HDA, Inc. Hazelwood, MO GP 9.0, SP2 I think you'll need to parse it and then...

Getting Control ID in Active X control
GetWindowLong return 0. You need to call GetDlgCtrlID from outside the activex control as the function available within the control returns an arbitrary value of zero. Take a look at this article http://xendra.ens.uabc.mx/~sinfante/loo/libro/ch17_4.htm particularly the paragraph preceeding the title "MFC and Ambient Properties". This really begs the question why you want the ID in the first place as activex controls have to be fully self containing to operate - with a few exceptions where sibling controls need to be able to locate each other. - Tim "ytv" <...

over VPN, it gets stuck when sending outgoing email
When I use VPN to connect to work from home, the outlook can not finish sending outgoing emails. The progress bar moves to the end but then stops there forever. It can never finish. The receiving of new incoming emails work fine. All other network functionality works, e.g. internet browsing, telnet, ftp, etc, all work fine. My system is win2k. I use linksys wireless DSL router. I'd appreciate any hint! Are you using Exchange server? I'd set up your mail profile to prompt you to work offline or online - when using VPN, work offline with scheduled syncs. If not using exchange, pos...

Get photos from a camera
I have an asp.net intranet application that I need to upload 1 or all photos from a digital camera at a PC workstation. We are using DataGrids and GridViews to display them on the web once they are uploaded but need something at the client. I assume I need some sort of ActiveX process or something. Has anyone run into a solution for this need? Thanks. -- David "DavidC" <dlchase@lifetimeinc.com> wrote in message news:2B061F4F-B548-4AA4-96FA-2F87383192D2@microsoft.com... > I have an asp.net intranet application that I need to upload 1 or all > photos ...

how to get the format of this cell right?
When I let go: Selection.Replace " ", Replacement:="-", Lookat:=xlPart, _ SearchOrder:=xlByColumns, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=False " " is entered by means of an array: Words = Array(" ", "+", "/", "---", "--", "&") on a cell containing: 5 a I would expect to get: 5-a as a result. Unfortunately, it produces 5:00:00-AM. How can I solve this tiny but frustrating problem? best regards Pet...

Conditionally Change Print-Area
How Can I conditionally change Print-Area...something like Conditional Formula? Background: I have designed a template for a class-room to update the student's profile. I will distribute this template to every Class-Teacher S/he will the distribute among students. Initially, I have setup 8 columns. Problem I faced while printing is that suppose some class have 5 students some have 8 students or some have 12. How can i automatically setup print-area (include or exclude the unnecessary columns in print-area) Hope I will get some solution for this. Regards, Murtaza I had a similar pr...

How do I get my best friend back?
I NEED TO KNOW "monsterboy16" <monsterboy16@discussions.microsoft.com> wrote in message news:7918DF09-EB34-46E4-852E-8DAAC3FFF45F@microsoft.com... > I NEED TO KNOW Easy. Just lift the lid on your toilet seat and whistle. Dipshit! -- "Don't pick a fight with an old man. If he is too old to fight, he'll just kill you." Pretend that you're in a coma and unable to communicate in any way (such as posting messages in newsgroups). "monsterboy16" <monsterboy16@discussions.microsoft.com> wrote in message news...

how to get the pointer variable address from a dll
hi all, I have a DLL which has a output parameter LPVOID, A application calls this DLL function, the Dll responsibility is to assign a valid pointer to the lpBuffer, Till here it is OK, but once it returns to the Application this lpBuffer becomes NULL. Prototype, __declspec(dllexport) BOOL TRSTMonGetStatus(LPVOID lpBuffer) Please let me know what to do, I am stuck in this. try this __declspec(dllexport) BOOL TRSTMonGetStatus(LPVOID &lpBuffer) AliR. <karunyalakshmi@gmail.com> wrote in message news:1182179607.989434.318540@x35g2000prf.googlegroups.com... > > hi a...