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.
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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)?
 
Upvote 0
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;
 
Upvote 0
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)))
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,251
Members
448,556
Latest member
peterhess2002

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.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

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

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

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
Back
Top