Computing when a product was introduced

lmarkowi

New Member
Joined
Apr 5, 2006
Messages
29
I have a list of different products (3000) going down column A.

Then going across I have periods 1-60.

The data are sales figures(see below example)

I need to figure out which period each product was introduced in. I was thinking an HLookup, but couldnt get it to work.

The ultimate goal is to get an average sales number after the first time the sales figures show up. There are periods after a product is introduced where 0 sales occur and I would like to include those in the average.

Period 1 2 3 4 5 6
Product
A 0 0 0 5 0 0
B 2 0 0 2 0 0
C 0 0 0 0 0 10


For I want to know for product A that it was introduced in period 4, and the average is 1.6 sales per year (5/3).

Any ideas of how I could accomplish this goal?

thanks everyone.
 

Some videos you may like

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,201
I have a list of different products (3000) going down column A.

Then going across I have periods 1-60.

The data are sales figures(see below example)

I need to figure out which period each product was introduced in. I was thinking an HLookup, but couldnt get it to work.

The ultimate goal is to get an average sales number after the first time the sales figures show up. There are periods after a product is introduced where 0 sales occur and I would like to include those in the average.

Period 1 2 3 4 5 6
Product
A 0 0 0 5 0 0
B 2 0 0 2 0 0
C 0 0 0 0 0 10


For I want to know for product A that it was introduced in period 4, and the average is 1.6 sales per year (5/3).

Any ideas of how I could accomplish this goal?

thanks everyone.

To determine the period a product is "introduced"...

=INDEX($A$1:$H$1,MATCH(TRUE,A2:H2 > 0,0))

which needs to be confirmed with control+shift+enter, not just with enter.

Why is the average 1.6 (that is, 5/3)?
 

lmarkowi

New Member
Joined
Apr 5, 2006
Messages
29
5/3

because we want to include in the average every period after the introduction of the product even if no sales were registered.


Thanks for your help;
 

Aladin Akyurek

MrExcel MVP
Joined
Feb 14, 2002
Messages
85,201
Re: 5/3

because we want to include in the average every period after the introduction of the product even if no sales were registered.


Thanks for your help;
Book2
ABCDEFGHI
1Period
2Product123456IntroAvg
3A00050041.666667
4B20020010.666667
5C0000010610
6
Sheet1


H3:

=INDEX($B$2:$G$2,MATCH(TRUE,B3:G3>0,0))

which you need to confirm with control+shift+enter (not just with enter) and copied down.

I3, copied down:

=AVERAGE(INDEX(B3:G3,H3):INDEX(B3:G3,MATCH(9.99999999999999E+307,B3:G3)))
 

Watch MrExcel Video

Forum statistics

Threads
1,114,060
Messages
5,545,761
Members
410,704
Latest member
Cobber2008
Top