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 tricky excel formula

I have the following columns of data:
Column A Column B
Product Number of faults
1 5
5 1
6 2
5 3
What formula (or set of formulas) will be able to tell me the proportion of
Product number 5's that have more than one fault? (Note - I want a formula
that does not require an autofilter to be applied to my columns of data)

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,089
Default tricky excel formula

=SUMIF(A:A,5,B:B)/SUM(B:B)

Regards

Trevor


"Godot" wrote in message
...
I have the following columns of data:
Column A Column B
Product Number of faults
1 5
5 1
6 2
5 3
What formula (or set of formulas) will be able to tell me the proportion
of
Product number 5's that have more than one fault? (Note - I want a formula
that does not require an autofilter to be applied to my columns of data)

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default tricky excel formula

One way:

=SUMPRODUCT(--(A2:A100=5),--(B2:B1001))/COUNTIF(A2:A100,5)

In article ,
Godot wrote:

I have the following columns of data:
Column A Column B
Product Number of faults
1 5
5 1
6 2
5 3
What formula (or set of formulas) will be able to tell me the proportion of
Product number 5's that have more than one fault? (Note - I want a formula
that does not require an autofilter to be applied to my columns of data)

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default tricky excel formula

If it is a proportion of all items, use

=AVERAGE(--((A2:A5=5)*(B2:B51)))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

If it is a proportion of just teh 5s, use

=SUMPRODUCT(--(A2:A5=5),--(B2:B51))/COUNTIF(A2:A5,5)

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Godot" wrote in message
...
I have the following columns of data:
Column A Column B
Product Number of faults
1 5
5 1
6 2
5 3
What formula (or set of formulas) will be able to tell me the proportion
of
Product number 5's that have more than one fault? (Note - I want a formula
that does not require an autofilter to be applied to my columns of data)

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
Tricky Formula steph44haf Excel Worksheet Functions 4 September 18th 06 08:53 PM
Tricky Formula andrewc Excel Discussion (Misc queries) 22 July 20th 06 11:39 AM
Help with a tricky formula...... nevi Excel Discussion (Misc queries) 1 May 31st 06 10:39 PM
Tricky formula Steve Excel Discussion (Misc queries) 3 April 17th 06 05:06 PM
Req, Tricky column formula stge Excel Worksheet Functions 1 November 9th 04 04:39 PM


All times are GMT +1. The time now is 12:35 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"