Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PAL PAL is offline
external usenet poster
 
Posts: 200
Default How long for the first group

I have a spreadsheet with many rows (1000s) and columns. I am trying to
determine how long it took for a percentage of franchises to open. Lets say
I have:

Column A: Company Name
Column B: Date when product was ready (ie Company A would have the same date
on each row )
Column C: Franchise Name
Column D: Date franchise opened.
Column E: Col D - Col B

If there were a 1000 rows, 500 of which were for company A. I would like to
find the amount of time it took for 50% (the first 50 sites for this example)
of the franchises to open. I am thinking it has to order the dates in column
D, then find the franchise that was 50th and then take column E as the
answer.

I get that it is an array, but get stuck after that.

Ideas.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default How long for the first group

Pal,

=INDEX(E:E,SUMPRODUCT((D1:D20000=(LARGE(IF(A1:A200 00="Company
A",D1:D20000),COUNTIF(A1:A20000,"Company A")/2)))*(A1:A20000="Company
A")*ROW(A1:A20000)))

Array entered using Ctrl-Shift-Enter. "Company A" can also be a cell
reference, in case you want to make a table - use advanced filtering to
extract the unique list from your column of company names.

HTH,
Bernie
MS Excel MVP






"PAL" wrote in message
...
I have a spreadsheet with many rows (1000s) and columns. I am trying to
determine how long it took for a percentage of franchises to open. Lets
say
I have:

Column A: Company Name
Column B: Date when product was ready (ie Company A would have the same
date
on each row )
Column C: Franchise Name
Column D: Date franchise opened.
Column E: Col D - Col B

If there were a 1000 rows, 500 of which were for company A. I would like
to
find the amount of time it took for 50% (the first 50 sites for this
example)
of the franchises to open. I am thinking it has to order the dates in
column
D, then find the franchise that was 50th and then take column E as the
answer.

I get that it is an array, but get stuck after that.

Ideas.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default How long for the first group

Also, I should have noted that I have assumed that the dates are unique in
column D for any one company - i.e., they did not open multiple franchises
on the same day.

Bernie

"Bernie Deitrick" <deitbe @ consumer dot org wrote in message
...
Pal,

=INDEX(E:E,SUMPRODUCT((D1:D20000=(LARGE(IF(A1:A200 00="Company
A",D1:D20000),COUNTIF(A1:A20000,"Company A")/2)))*(A1:A20000="Company
A")*ROW(A1:A20000)))

Array entered using Ctrl-Shift-Enter. "Company A" can also be a cell
reference, in case you want to make a table - use advanced filtering to
extract the unique list from your column of company names.

HTH,
Bernie
MS Excel MVP






"PAL" wrote in message
...
I have a spreadsheet with many rows (1000s) and columns. I am trying to
determine how long it took for a percentage of franchises to open. Lets
say
I have:

Column A: Company Name
Column B: Date when product was ready (ie Company A would have the same
date
on each row )
Column C: Franchise Name
Column D: Date franchise opened.
Column E: Col D - Col B

If there were a 1000 rows, 500 of which were for company A. I would like
to
find the amount of time it took for 50% (the first 50 sites for this
example)
of the franchises to open. I am thinking it has to order the dates in
column
D, then find the franchise that was 50th and then take column E as the
answer.

I get that it is an array, but get stuck after that.

Ideas.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PAL PAL is offline
external usenet poster
 
Posts: 200
Default How long for the first group

This is great. Thank you. A few points to fine tune....

I changed "large" to "small" in order for it to start from the smallest
(10th, 25th percentile....).

Also,

1) multiple franchises can be opened on the same day.
2) it is possible that product ready, col B, may be blank. Anyway to force
a blank instead of #"Val"
3) if the number of franchise is "1" we get the "#NUM!". Anway to force a
blank.
4) I also noticed if the number of franchises is "2" or "3". That while it
calucates a 50th or 80th percentile it gives the "#NUM!" for the 25th
percentile.

Any thoughts to clean this up is appreciated, but regardless thanks much.

"Bernie Deitrick" wrote:

Also, I should have noted that I have assumed that the dates are unique in
column D for any one company - i.e., they did not open multiple franchises
on the same day.

Bernie

"Bernie Deitrick" <deitbe @ consumer dot org wrote in message
...
Pal,

=INDEX(E:E,SUMPRODUCT((D1:D20000=(LARGE(IF(A1:A200 00="Company
A",D1:D20000),COUNTIF(A1:A20000,"Company A")/2)))*(A1:A20000="Company
A")*ROW(A1:A20000)))

Array entered using Ctrl-Shift-Enter. "Company A" can also be a cell
reference, in case you want to make a table - use advanced filtering to
extract the unique list from your column of company names.

HTH,
Bernie
MS Excel MVP






"PAL" wrote in message
...
I have a spreadsheet with many rows (1000s) and columns. I am trying to
determine how long it took for a percentage of franchises to open. Lets
say
I have:

Column A: Company Name
Column B: Date when product was ready (ie Company A would have the same
date
on each row )
Column C: Franchise Name
Column D: Date franchise opened.
Column E: Col D - Col B

If there were a 1000 rows, 500 of which were for company A. I would like
to
find the amount of time it took for 50% (the first 50 sites for this
example)
of the franchises to open. I am thinking it has to order the dates in
column
D, then find the franchise that was 50th and then take column E as the
answer.

I get that it is an array, but get stuck after that.

Ideas.



.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default How long for the first group

See my comments in-line....


This is great. Thank you.



You're welcome.

A few points to fine tune....

I changed "large" to "small" in order for it to start from the smallest
(10th, 25th percentile....).

Also,

1) multiple franchises can be opened on the same day.


On second thought, this really shouldn't matter, since the value in column E
should be the same.


2) it is possible that product ready, col B, may be blank. Anyway to
force
a blank instead of #"Val"


We weren't using column B andywhere... perhaps wrap the formula in

=IF(B2=""","",LongFormula)

3) if the number of franchise is "1" we get the "#NUM!". Anway to force a
blank.


=IF(COUNTIF(A1:A20000,"Company A")=1,"",IF(B2=""","",LongFormula))
or
=IF(COUNTIF(A1:A20000,"Company A")=1,E2,IF(B2=""","",LongFormula))


4) I also noticed if the number of franchises is "2" or "3". That while it
calucates a 50th or 80th percentile it gives the "#NUM!" for the 25th
percentile.


Use the same technique, along the lines of

=IF(COUNTIF(A1:A20000,"Company A")<3,"Something other than 25th
percentile",Rest of the formula here)

HTH,
Bernie
MS Excel MVP




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
PAL PAL is offline
external usenet poster
 
Posts: 200
Default How long for the first group

Lots going on in this one. If I focus in on #2 only, I get the blank I am
looking for, but when it is not blank it returns a "false".

=IF(COUNTIF(A1:A20000,P2)=1,"",IF(B2=""",""",INDEX (H:H,SUMPRODUCT(($F$2:$F$1045=(SMALL(IF($A$2:$A$10 45=P2,$F$2:$F$1045),COUNTIF($A$2:$A$1045,P2)/4)))*($A$2:$A$1045=P2)*ROW($A$2:$A$1045)))))

"Bernie Deitrick" wrote:

See my comments in-line....


This is great. Thank you.



You're welcome.

A few points to fine tune....

I changed "large" to "small" in order for it to start from the smallest
(10th, 25th percentile....).

Also,

1) multiple franchises can be opened on the same day.


On second thought, this really shouldn't matter, since the value in column E
should be the same.


2) it is possible that product ready, col B, may be blank. Anyway to
force
a blank instead of #"Val"


We weren't using column B andywhere... perhaps wrap the formula in

=IF(B2=""","",LongFormula)

3) if the number of franchise is "1" we get the "#NUM!". Anway to force a
blank.


=IF(COUNTIF(A1:A20000,"Company A")=1,"",IF(B2=""","",LongFormula))
or
=IF(COUNTIF(A1:A20000,"Company A")=1,E2,IF(B2=""","",LongFormula))


4) I also noticed if the number of franchises is "2" or "3". That while it
calucates a 50th or 80th percentile it gives the "#NUM!" for the 25th
percentile.


Use the same technique, along the lines of

=IF(COUNTIF(A1:A20000,"Company A")<3,"Something other than 25th
percentile",Rest of the formula here)

HTH,
Bernie
MS Excel MVP


.

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
Clearing cells takes long, long time unclemuffin Excel Discussion (Misc queries) 9 August 17th 07 02:22 AM
Using long brackets to group rows mpickard Excel Discussion (Misc queries) 2 August 16th 06 01:27 PM
Find a group of names in a long list Carl_Monday Excel Discussion (Misc queries) 1 August 9th 06 03:49 PM
Taking age group Ie ages 20-29 and picking out net sales for group viabello Excel Worksheet Functions 1 April 25th 06 04:19 AM
How do I group worksheets (Lotus 123 function is "Sheet>Group Shee jaking Excel Worksheet Functions 2 August 30th 05 02:09 PM


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