# Computing when a product was introduced

#### lmarkowi

##### New Member
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.

### Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
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)?

5/3

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

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.

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)))

Replies
0
Views
123
Replies
4
Views
202
Replies
0
Views
352
Replies
3
Views
356
Replies
8
Views
743

1,219,887
Messages
6,150,743
Members
450,983
Latest member
Dustt24

### We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.

### Which adblocker are you using?

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

### Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

### Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back